If an Intel Graphics Device (IGD) is passed through it requires gfx_passthrough to be set while making the VM.
If the option is not specified qemu will refuse to start. So to stop qemu from complaining and having users be confused about why their VM won't start, specify this option when we detect that an IGD is being passed through to the VM. This is not required for other graphics devices, such as NVIDIA GPUs.
This change also fixes IGD passthrough when using libvirt, which doesn't expose the gfx_passthru option.
If an Intel Graphics Device (IGD) is passed through it requires gfx_passthrough to be set while making the VM.
If the option is not specified qemu will refuse to start. So to stop qemu from complaining and having users be confused about why their VM won't start, specify this option when we detect that an IGD is being passed through to the VM. This is not required for other graphics devices, such as NVIDIA GPUs.
This change also fixes IGD passthrough when using libvirt, which doesn't expose the
gfx_passthru
option.