linux-sg2042/drivers/vfio/pci
Gavin Shan b8f02af096 vfio/pci: Restore MSIx message prior to enabling
The MSIx vector table lives in device memory, which may be cleared as
part of a backdoor device reset. This is the case on the IBM IPR HBA
when the BIST is run on the device. When assigned to a QEMU guest,
the guest driver does a pci_save_state(), issues a BIST, then does a
pci_restore_state(). The BIST clears the MSIx vector table, but due
to the way interrupts are configured the pci_restore_state() does not
restore the vector table as expected. Eventually this results in an
EEH error on Power platforms when the device attempts to signal an
interrupt with the zero'd table entry.

Fix the problem by restoring the host cached MSI message prior to
enabling each vector.

Reported-by: Wen Xiong <wenxiong@linux.vnet.ibm.com>
Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
2014-09-29 10:16:24 -06:00
..
Kconfig drivers/vfio: remove depends on CONFIG_EXPERIMENTAL 2013-02-24 09:59:44 -07:00
Makefile vfio: Add PCI device driver 2012-07-31 08:16:24 -06:00
vfio_pci.c drivers/vfio: Enable VFIO if EEH is not supported 2014-08-08 10:39:16 -06:00
vfio_pci_config.c vfio/pci: Fix sizing of DPA and THP express capabilities 2014-05-30 10:50:31 -06:00
vfio_pci_intrs.c vfio/pci: Restore MSIx message prior to enabling 2014-09-29 10:16:24 -06:00
vfio_pci_private.h vfio-pci: Attempt bus/slot reset on release 2014-08-07 11:12:07 -06:00
vfio_pci_rdwr.c vfio-pci: Add support for VGA region access 2013-02-18 10:11:13 -07:00