Skip to content
Snippets Groups Projects
Commit 003d0c7e authored by Matthew Rosato's avatar Matthew Rosato Committed by Michael Tokarev
Browse files

s390x/pci: drive ISM reset from subsystem reset


ISM devices are sensitive to manipulation of the IOMMU, so the ISM device
needs to be reset before the vfio-pci device is reset (triggering a full
UNMAP).  In order to ensure this occurs, trigger ISM device resets from
subsystem_reset before triggering the PCI bus reset (which will also
trigger vfio-pci reset).  This only needs to be done for ISM devices
which were enabled for use by the guest.
Further, ensure that AIF is disabled as part of the reset event.

Fixes: ef153590 ("s390x: do a subsystem reset before the unprotect on reboot")
Fixes: 03451953 ("s390x/pci: reset ISM passthrough devices on shutdown and system reset")
Reported-by: default avatarCédric Le Goater <clg@redhat.com>
Signed-off-by: default avatarMatthew Rosato <mjrosato@linux.ibm.com>
Message-ID: <20240118185151.265329-4-mjrosato@linux.ibm.com>
Reviewed-by: default avatarEric Farman <farman@linux.ibm.com>
Reviewed-by: default avatarCédric Le Goater <clg@redhat.com>
Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
(cherry picked from commit 68c691ca99a2538d6a53a70ce8a9ce06ee307ff1)
Signed-off-by: default avatarMichael Tokarev <mjt@tls.msk.ru>
parent c2985e38
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment