qemu vfio-pci: Add support for VGA MMIO and I/O port access
commitf15689c7e4422d5453ae45628df5b83a53e518ed
authorAlex Williamson <alex.williamson@redhat.com>
Mon, 1 Apr 2013 19:33:44 +0000 (1 13:33 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 1 Apr 2013 19:33:44 +0000 (1 13:33 -0600)
tree8d3d66e49c884a6da24d16a63e9626af442f32cf
parent96adc5c7c2178d02f0db2db368ba3e4aacef931a
qemu vfio-pci: Add support for VGA MMIO and I/O port access

Most VGA cards need some kind of quirk to fully operate since they
hide backdoors to get to other registers outside of PCI config space
within the registers, but this provides the base infrastructure.  If
we could identity map PCI resources for assigned devices we would need
a lot fewer quirks.

To enable this, use a kernel side vfio-pci driver that incorporates
VGA support (v3.9), and use the -vga none option and add the x-vga=on
option for the vfio-pci device.  The "x-" denotes this as an
experimental feature.  You may also need to use a cached copy of the
VGA BIOS for your device, passing it to vfio-pci using the romfile=
option.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
hw/vfio_pci.c