The 2 patches fix MSIx lost after PE reset. Otherwise, the MSIx entries can't be restored successfully after PE reset and the EEH recovery fails on broadcom tg3 adapter (as tested) in guest.
The reset path (restarting machine) has the same problem. Also, the MSI has the same problem as well. Note: The patchset "EEH support for guest" isn't merged yet, those 2 patches are based on Alex Graf's "ppc-next" branch + the patchset supporting EEH for guest, which can be checked out from below link: g...@github.com:gwshan/qemu.git (branch: eeh) *** SUBJECT HERE *** *** BLURB HERE *** Gavin Shan (2): VFIO: Drop vfio_container_do_ioctl() VFIO: Clear stale interrupt vectors during reset hw/misc/vfio.c | 99 +++++++++++++++++++++++++++++++++++++++++----------------- 1 file changed, 70 insertions(+), 29 deletions(-) -- 1.8.3.2