mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 22:55:23 +00:00
ef8da2ad11
For virtio-blk-pci disks with the disk iothread attribute that are running the correct emulator, add the "iothread=iothread#" to the -device command line in order to enable iothreads for the disk as long as the command is available, the disk iothread value provided is valid, and is supported for the disk device being added
18 lines
793 B
Plaintext
18 lines
793 B
Plaintext
LC_ALL=C PATH=/bin HOME=/home/test USER=test LOGNAME=test QEMU_AUDIO_DRV=none \
|
|
/usr/bin/qemu -S -M \
|
|
pc -m 214 -smp 2 \
|
|
-object iothread,id=iothread1 \
|
|
-object iothread,id=iothread2 \
|
|
-nographic -nodefaults -monitor \
|
|
unix:/tmp/test-monitor,server,nowait -no-acpi -boot c -usb \
|
|
-drive file=/dev/HostVG/QEMUGuest1,if=none,id=drive-ide0-0-0 \
|
|
-device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 \
|
|
-drive file=/var/lib/libvirt/images/iothrtest1.img,if=none,\
|
|
id=drive-virtio-disk1 \
|
|
-device virtio-blk-pci,iothread=iothread1,bus=pci.0,addr=0x4,\
|
|
drive=drive-virtio-disk1,id=virtio-disk1 \
|
|
-drive file=/var/lib/libvirt/images/iothrtest2.img,if=none,\
|
|
id=drive-virtio-disk2 \
|
|
-device virtio-blk-pci,iothread=iothread2,bus=pci.0,addr=0x3,\
|
|
drive=drive-virtio-disk2,id=virtio-disk2
|