mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-26 03:21:44 +03:00
4fa172215d
Starting with qemu 1.6, the qemu-system-arm vexpress-a9 model has a hardcoded virtio-mmio transport which enables attaching all virtio devices. On the command line, we have to use virtio-XXX-device rather than virtio-XXX-pci, thankfully s390 already set the precedent here so it's fairly straight forward. At the XML level, this adds a new device address type virtio-mmio. The controller and addressing don't have any subelements at the moment because we they aren't needed for this usecase, but could be added later if needed. Add a test case for an ARM guest with one of every virtio device enabled.
15 lines
869 B
Plaintext
15 lines
869 B
Plaintext
LC_ALL=C PATH=/bin HOME=/home/test USER=test LOGNAME=test QEMU_AUDIO_DRV=none \
|
|
/usr/bin/qemu-system-arm -S -M vexpress-a9 -m 1024 -smp 1 -nographic \
|
|
-nodefconfig -nodefaults -monitor unix:/tmp/test-monitor,server,nowait \
|
|
-boot c -kernel /arm.kernel -initrd /arm.initrd -append \
|
|
'console=ttyAMA0,115200n8 rw root=/dev/vda3 rootwait physmap.enabled=0' \
|
|
-dtb /arm.dtb -device virtio-serial-device,id=virtio-serial0 -usb \
|
|
-drive file=/arm.raw,if=none,id=drive-virtio-disk0 \
|
|
-device virtio-blk-device,drive=drive-virtio-disk0,id=virtio-disk0 \
|
|
-device virtio-net-device,vlan=0,id=net0,mac=52:54:00:09:a4:37 \
|
|
-net user,vlan=0,name=hostnet0 -serial pty -chardev pty,id=charconsole1 \
|
|
-device virtconsole,chardev=charconsole1,id=console1 \
|
|
-device virtio-balloon-device,id=balloon0 \
|
|
-object rng-random,id=rng0,filename=/dev/random \
|
|
-device virtio-rng-device,rng=rng0
|