v3 changelog: 1. Address all comments from MST in patch 3, include remove the flag pci_aer_non_fatal & passive_reset, also the boilerplate code. The corresponding kernel patch is v6.
Test: Test with func1 passthroughed while func0 doesn't have user. Cao jin (3): pcie aer: verify if AER functionality is available vfio pci: new function to init AER capability vfio-pci: process non fatal error of AER hw/pci/pcie_aer.c | 28 ++++++ hw/vfio/pci.c | 243 ++++++++++++++++++++++++++++++++++++++++++++- hw/vfio/pci.h | 3 + linux-headers/linux/vfio.h | 2 + 4 files changed, 271 insertions(+), 5 deletions(-) -- 1.8.3.1