refutationalist / saur

Sam's AUR -- personal Arch packages
4 stars 5 forks source link

xen: Automatically enable gfx_passthru if IGD is assigned #17

Closed RA-Kooi closed 3 months ago

RA-Kooi commented 3 months ago

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.