From: Chen Fan <[email protected]>
v5-v6:
1. register resume handler both qemu and kernel to ensure the
reset in order.
2. fix the patches 6/12, 7/12 as Alex and MST sugguestion.
v4-v5:
1. add back the common function 0 hotplug code in pci core.
2. fix a sporadic device stuck on D3 problem when doing aer recovery.
3. fix patches 5/12 ~ 9/12 as Alex sugguestion.
v3-v4:
1. rebase patchset to fit latest master branch.
2. modifying patches 5/10 ~ 8/10 as Alex sugguestion(Thanks).
v2-v3:
1. fix patch 4/9, 5/9 as Alex sugguestion.
2. patches 5/9 ~ 8/9 are made to force limiting that all vfio functions
are combined in the same way as on the host.
v1-v2:
1. limit all devices on same bus in guest are on same bus in host in patch
5/11.
2. patch 05/11 ~ 09/11 has been changed.
Chen Fan (12):
vfio: extract vfio_get_hot_reset_info as a single function
vfio: squeeze out vfio_pci_do_hot_reset for support bus reset
vfio: add pcie extended capability support
vfio: add aer support for vfio device
vfio: refine function vfio_pci_host_match
vfio: add check host bus reset is support or not
pci: add a pci_function_is_valid callback to check function if valid
vfio: add check aer functionality for hotplug device
vfio: vote the function 0 to do host bus reset when aer occurred
vfio-pci: pass the aer error to guest
vfio: register aer resume notification handler for aer resume
vfio: add 'aer' property to expose aercap
hw/pci/pci.c | 49 +++
hw/vfio/pci.c | 738 +++++++++++++++++++++++++++++++++++++++++----
hw/vfio/pci.h | 7 +
include/hw/pci/pci.h | 1 +
linux-headers/linux/vfio.h | 1 +
5 files changed, 730 insertions(+), 66 deletions(-)
--
1.9.3