Bug 221462 - vtnet gets stuck when assigning IP on aarch64
Summary: vtnet gets stuck when assigning IP on aarch64
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: arm64 Any
: --- Affects Many People
Assignee: freebsd-virtualization (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-13 06:06 UTC by gergely.czuczy
Modified: 2017-08-15 19:29 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gergely.czuczy 2017-08-13 06:06:09 UTC
Hello,

In a qemu VM, when trying to have networking using the virtio-net-device device, assigning an IP address to the vtnet0 device gets ifconfig stuck in an uninterruptable state.

Tried it with qemu 2.8.0, 2.8.1 and 2.9.0.

FreeBSD version:
# uname -a
FreeBSD build-aarch64.marvin.harmless.hu 12.0-CURRENT FreeBSD 12.0-CURRENT #0 r322371: Thu Aug 10 21:09:06 CEST 2017     toor@marvin.harmless.hu:/tank/rpi3/obj/arm64.aarch64/tank/rpi3/src/sys/GENERIC-NODEBUG  arm64

vtnet0 device:
vtnet0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=80028<VLAN_MTU,JUMBO_MTU,LINKSTATE>
        ether 52:54:00:12:34:56
        media: Ethernet 10Gbase-T <full-duplex>
        status: active
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
vtnet0: <VirtIO Networking Adapter> on virtio_mmio30
vtnet0: Ethernet address: 52:54:00:12:34:56


QEMU cmdline:
qemu-system-aarch64 -m 4096M -cpu cortex-a57 -M virt  \
                    -accel tcg,thread=single \
                    -bios QEMU_EFI.fd -serial telnet::4444,server -nographic \
                    -drive if=none,file=${image},id=hd0,format=raw \
                    -device virtio-blk-device,drive=hd0 \
                    -device virtio-net-device,netdev=net0 \
                    -netdev tap,id=net0,ifname=tap0,script=/tank/rpi3/build/qemu-ifup.sh

Should be easy to reproduce, just add a vtnet device into a qemu-system-aarch64 VM, and try assigning an IP.

Best regards,
Gergely