Re: [Qemu-devel] [PATCH v6 6/8] vfio/pci: Intel graphics legacy mode assignment

2016-05-18 Thread Alex Williamson
On Wed, 18 May 2016 16:21:58 +0200 Gerd Hoffmann wrote: > On Di, 2016-05-17 at 14:19 -0600, Alex Williamson wrote: > > +static int igd_gen(VFIOPCIDevice *vdev) > > +{ > > +if ((vdev->device_id & 0xfff) == 0xa84) { > > +return 8; /* Broxton */ > > +} > > + > > +switch (vdev->de

Re: [Qemu-devel] [PATCH v6 6/8] vfio/pci: Intel graphics legacy mode assignment

2016-05-18 Thread Gerd Hoffmann
On Di, 2016-05-17 at 14:19 -0600, Alex Williamson wrote: > +static int igd_gen(VFIOPCIDevice *vdev) > +{ > +if ((vdev->device_id & 0xfff) == 0xa84) { > +return 8; /* Broxton */ > +} > + > +switch (vdev->device_id & 0xff00) { > +/* Old, untested, unavailable, unknown */ > +

[Qemu-devel] [PATCH v6 6/8] vfio/pci: Intel graphics legacy mode assignment

2016-05-17 Thread Alex Williamson
Enable quirks to support SandyBridge and newer IGD devices as primary VM graphics. This requires new vfio-pci device specific regions added in kernel v4.6 to expose the IGD OpRegion, the shadow ROM, and config space access to the PCI host bridge and LPC/ISA bridge. VM firmware support, SeaBIOS on