qemu uefi virtio-gpu-gl example hi performance config
Posted: Tue Sep 17, 2024 7:43 pm
https://github.com/tholin/OVMF-win7-hyp ... n7_code.fd
Use VirtIO 1.0 Devices
If your hardware and QEMU version support it, you can enable VirtIO 1.0 devices for improved performance over legacy VirtIO. These devices are typically more efficient and faster.
USB 3 controller example:
Code: Select all
qemu-system-x86_64 \
-enable-kvm \
-m 4G \
-mem-prealloc \
-mem-path /dev/hugepages \
-smp 8,sockets=1,cores=8,threads=1 \
-cpu host \
-drive file=void-linux.vdi,format=vdi,if=none,id=drive0 \
-object iothread,id=iothread0 \
-device virtio-blk-pci,drive=drive0,iothread=iothread0 \
-vga none \
-device virtio-gpu-gl-pci,max_outputs=1 \
-display sdl,gl=on \
-netdev user,id=usernet,hostfwd=tcp::2222-:22 \
-device virtio-net-pci,netdev=usernet \
-bios /usr/share/OVMF/OVMF_CODE.fd \
-boot menu=on
Use VirtIO 1.0 Devices
If your hardware and QEMU version support it, you can enable VirtIO 1.0 devices for improved performance over legacy VirtIO. These devices are typically more efficient and faster.
Code: Select all
qemu-system-x86_64 \
-enable-kvm \
-m 4G \
-mem-prealloc \
-mem-path /dev/hugepages \
-smp 8,sockets=1,cores=8,threads=1 \
-cpu host \
-drive file=void-linux.vdi,format=vdi,if=none,id=drive0 \
-object iothread,id=iothread0 \
-device virtio-blk-pci,drive=drive0,disable-modern=off,iothread=iothread0 \
-vga none \
-device virtio-gpu-gl-pci,max_outputs=1 \
-display sdl,gl=on \
-netdev user,id=usernet,hostfwd=tcp::2222-:22 \
-device virtio-net-pci,disable-modern=off,netdev=usernet \
-bios /usr/share/OVMF/OVMF_CODE.fd \
-boot menu=on
USB 3 controller example:
Code: Select all
qemu-system-x86_64 \
-enable-kvm \
-m 4G \
-mem-prealloc \
-mem-path /dev/hugepages \
-smp 8,sockets=1,cores=8,threads=1 \
-cpu host \
-drive file=void-linux.vdi,format=vdi,if=none,id=drive0 \
-object iothread,id=iothread0 \
-device virtio-blk-pci,drive=drive0,disable-modern=off,iothread=iothread0 \
-vga none \
-device virtio-gpu-gl-pci,max_outputs=1 \
-display sdl,gl=on \
-netdev user,id=usernet,hostfwd=tcp::2222-:22 \
-device virtio-net-pci,disable-modern=off,netdev=usernet \
-bios /usr/share/OVMF/OVMF_CODE.fd \
-boot menu=on \
-usb \
-device qemu-xhci,id=xhci \
-device usb-host,vendorid=0x0b05,productid=0x17cb