Skip to content

vfio-pci: pass the aer error to guest

Chen Fan qemu-devel 11 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v11 Latest15 patches 4 repliesIn review
  2. v10 RFC19 patches 7 repliesSuperseded
  3. v9 RFC18 patches 13 repliesSuperseded
Earlier versions · 8
VersionPostedPatchesRepliesStatus
v8 RFC13 patches1 replySuperseded
v7 RFC11 patches12 repliesSuperseded
v6 RFC11 patches3 repliesSuperseded
v57 patches45 repliesSuperseded
v4 RFC9 patches13 repliesSuperseded
v3 RFC10 patches10 repliesSuperseded
v2 RFC8 patches10 repliesSuperseded
v1 RFC4 patches11 repliesSuperseded

Patches in v11 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15vfio: extract vfio_get_hot_reset_info as a single functionhw/vfio/pci.c+48 -181 reply
2/15vfio: squeeze out vfio_pci_do_hot_reset for support bus resethw/vfio/pci.c+44 -310 replies
3/15pcie: modify the capability size asserthw/pci/pcie.c+1 -10 replies
4/15vfio: make the 4 bytes aligned for capability sizehw/vfio/pci.c+2 -10 replies
5/15vfio: add pcie extanded capability supporthw/vfio/pci.c+71 -10 replies
6/15aer: impove pcie_aer_init to support vfio devicehw/pci-bridge/ioh3420.c hw/pci-bridge/xio3130_downstream.c hw/pci-bridge/xio3130_upstream.c +2 more+6 -60 replies
7/15vfio: add aer support for vfio devicehw/vfio/pci.c+87 -20 replies
8/15vfio: add check host bus reset is support or nothw/vfio/pci.c+206 -71 reply
9/15pci: add bus reset_notifiers callbacks for host bus resethw/pci/pci.c hw/pci/pci_bridge.c include/hw/pci/pci.h +1 more+28 -00 replies
10/15vfio: add sec_bus_reset notifier to notify physical bus reset is neededhw/vfio/pci.c+83 -00 replies
11/15vfio: modify vfio_pci_hot_reset to support bus resethw/vfio/pci.c+13 -00 replies
12/15vfio: do hot bus reset when do virtual secondary bus resethw/vfio/pci.c+31 -00 replies
13/15pcie_aer: expose pcie_aer_msg() interfacehw/pci/pcie_aer.c include/hw/pci/pcie_aer.h+2 -10 replies
14/15vfio-pci: pass the aer error to guesthw/vfio/pci.c+39 -60 replies
15/15vfio: add 'aer' property to expose aercaphw/vfio/pci.c+2 -00 replies

Reviews trailers per patch

2 of 15 patches have a Reviewed-by or Acked-by.

PatchMarcel Apfelbaum
1/15
2/15
3/15R-b
4/15
5/15
6/15
7/15
8/15
9/15
10/15
11/15
12/15
13/15R-b
14/15
15/15

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v11 thread

Cover letter [Qemu-devel] [v11 00/15] vfio-pci: pass the aer error to guest

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 patches add aer capability support for vfio device, and pass the error to guest, and have guest driver to recover from the error.
and turning on SERR# for error forwording in bridge control register patch in seabios has been merged.

notes: this series patches enable aer support single/multi-function, for multi-function, require all the function of the slot assigned to VM and on the same slot.

Chen Fan (15):
vfio: extract vfio_get_hot_reset_info as a single function
vfio: squeeze out vfio_pci_do_hot_reset for support bus reset
pcie: modify the capability size assert
vfio: make the 4 bytes aligned for capability size
vfio: add pcie extanded capability support
aer: impove pcie_aer_init to support vfio device
vfio: add aer support for vfio device
vfio: add check host bus reset is support or not
pci: add bus reset_notifiers callbacks for host bus reset
vfio: add sec_bus_reset notifier to notify physical bus reset is
needed
vfio: modify vfio_pci_hot_reset to support bus reset
vfio: do hot bus reset when do virtual secondary bus reset
pcie_aer: expose pcie_aer_msg() interface
vfio-pci: pass the aer error to guest
vfio: add 'aer' property to expose aercap

 hw/pci-bridge/ioh3420.c            |   2 +-
 hw/pci-bridge/xio3130_downstream.c |   2 +-
 hw/pci-bridge/xio3130_upstream.c   |   2 +-
 hw/pci/pci.c                       |  16 +
 hw/pci/pci_bridge.c                |   6 +
 hw/pci/pcie.c                      |   2 +-
 hw/pci/pcie_aer.c                  |   6 +-
 hw/vfio/pci.c                      | 688 +++++++++++++++++++++++++++++++++----
 include/hw/pci/pci.h               |   4 +
 include/hw/pci/pci_bus.h           |   2 +
 include/hw/pci/pcie_aer.h          |   3 +-
 11 files changed, 661 insertions(+), 72 deletions(-)
Signature · 1 line
1.9.3