Today, vfio-pci unconditionally stops the VM when any error event is reported by device. This prevents guest-driven error handling and recovery for platforms that support PCIe AER.
This series adds an optional vfio-pci extension parameter, "x-forward-aer=on", to forward AER errors to the guest instead of forcing an immediate VM stop. If the endpoint supports AER, the error is forwarded directly; otherwise, checks the upstream PCIe bridge and forwards the error there when supported.If neither device nor PCIe bridge supports AER, the VM is immediately stopped when the error is reported. Requesting for comments from vfio maintainers and AER experts for this patch series. Signed-off-by: Satyanarayana K V P <[email protected]> Cc: Michał Winiarski <[email protected]> Cc: Michal Wajdeczko <[email protected]> Cc: Matthew Brost <[email protected]> Cc: Alex Williamson <[email protected]> Cc: Cédric Le Goater <[email protected]> Satyanarayana K V P (1): vfio/pci: Forward AER errors to guest optionally hw/vfio/pci.c | 80 ++++++++++++++++++++++++++++++++++++++++++++------- hw/vfio/pci.h | 1 + 2 files changed, 70 insertions(+), 11 deletions(-) -- 2.43.0
