For now, for vfio pci passthough devices when qemu receives an error from host aer report, there just terminate the guest, but usually user want to know what error occurred but stop the guest, so this patch add aer capability support for vfio device, and pass the error to guest, and have guest driver to recover from the error.
for turning on SERR# patch in seabios list, pls see: http://www.seabios.org/pipermail/seabios/2015-January/008591.html v1-v2: 1. turn on SERR# for bridge control register in firmware. 2. initilize aer capability for vfio device. 3. fix some trivial bug. Chen Fan (8): pcie_aer: fix typos in pcie_aer_inject_error comment vfio-pci: add aer capability support pcie_aer: expose pcie_aer_msg() interface vfio-pci: pass the aer error to guest pcie_aer: fix a trivial typo in PCIEAERMsg comments vfio_pci: fix a wrong check in vfio_pci_reset vfio_pci: change vfio device features bit macro to enum definition vfio-pci: add VFIO_FEATURE_ENABLE_AER_CAP feature hw/pci/pcie_aer.c | 8 +-- hw/vfio/pci.c | 123 ++++++++++++++++++++++++++++++++++++++++++---- include/hw/compat.h | 4 ++ include/hw/pci/pcie_aer.h | 3 +- 4 files changed, 124 insertions(+), 14 deletions(-) -- 1.9.3