Bug 221462

Summary: vtnet gets stuck when assigning IP on aarch64
Product: Base System Reporter: gergely.czuczy
Component: kernAssignee: freebsd-virtualization (Nobody) <virtualization>
Status: New ---    
Severity: Affects Many People CC: freebsd-arm, gergely.czuczy
Priority: ---    
Version: CURRENT   
Hardware: arm64   
OS: Any   

Description gergely.czuczy 2017-08-13 06:06:09 UTC

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
        ether 52:54:00:12:34:56
        media: Ethernet 10Gbase-T <full-duplex>
        status: active
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,