rhv-self-hosted

GPU passthrough:

add qemu_cmd_line custom properties:

see for more information: https://www.ovirt.org/develop/developer-guide/vdsm/hook/qemucmdline/

engine-config -s "UserDefinedVMProperties=qemu_cmdline=^.*$"

add the following custom parameter on the VM:

version < 4.3

["-enable-kvm","-cpu","host,kvm=off,hv_time,hv_relaxed,hv_vapic,hv_spinlocks=0x1fff,hv_vendor_id=Nvidia43FIX","-drive","if=pflash,format=raw,readonly,file=/usr/share/edk2.git/ovmf-x64/OVMF_CODE-pure-efi.fd"]

version >= 4.3:

["-enable-kvm","-cpu","host,kvm=off,hv_time,hv_relaxed,hv_vapic,hv_synic,hv_stimer,hv_spinlocks=0x1fff,hv_vendor_id=Nvidia43FIX","-drive","if=pflash,format=raw,readonly,file=/usr/share/edk2.git/ovmf-x64/OVMF_CODE-pure-efi.fd"]

run the following

echo "options kvm ignore_msrs=1" > /etc/modprobe.d/kvm.conf