OSDN Git Service

vfio-pci: Fix Nvidia MSI ACK through 0x88000 quirk
authorAlex Williamson <alex.williamson@redhat.com>
Fri, 6 Dec 2013 18:16:23 +0000 (11:16 -0700)
committerAlex Williamson <alex.williamson@redhat.com>
Fri, 6 Dec 2013 18:16:23 +0000 (11:16 -0700)
commit96eeeba0db38b856eb2cae0e4a2a620d8d65771a
treec4e9f3db14104dd10a3a9f9342c4b55dbbbc9bd2
parent5b49ab188ff0339aa3097ce7f5309f1306092f9e
vfio-pci: Fix Nvidia MSI ACK through 0x88000 quirk

When MSI is enabled on Nvidia GeForce cards the driver seems to
acknowledge the interrupt by writing a 0xff byte to the MSI capability
ID register using the PCI config space mirror at offset 0x88000 from
BAR0.  Without this, the device will only fire a single interrupt.
VFIO handles the PCI capability ID/next registers as virtual w/o write
support, so any write through config space is currently dropped.  Add
a check for this and allow the write through the BAR window.  The
registers are read-only anyway.

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