From: Eric Farman <farman@linux.ibm.com>
To: Matthew Rosato <mjrosato@linux.ibm.com>, qemu-s390x@nongnu.org
Cc: thuth@redhat.com, clg@redhat.com, frankja@linux.ibm.com,
pasic@linux.ibm.com, borntraeger@linux.ibm.com,
richard.henderson@linaro.org, david@redhat.com,
iii@linux.ibm.com, qemu-devel@nongnu.org, qemu-stable@nongnu.org
Subject: Re: [PATCH v2 3/3] s390x/pci: drive ISM reset from subsystem reset
Date: Thu, 18 Jan 2024 14:25:28 -0500 [thread overview]
Message-ID: <120531a4bb642bb9e7f9509d0e0027ed6a1a0d2e.camel@linux.ibm.com> (raw)
In-Reply-To: <20240118185151.265329-4-mjrosato@linux.ibm.com>
On Thu, 2024-01-18 at 13:51 -0500, Matthew Rosato wrote:
> 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: ef1535901a ("s390x: do a subsystem reset before the unprotect
> on reboot")
> Fixes: 03451953c7 ("s390x/pci: reset ISM passthrough devices on
> shutdown and system reset")
> Reported-by: Cédric Le Goater <clg@redhat.com>
> Signed-off-by: Matthew Rosato <mjrosato@linux.ibm.com>
> ---
> hw/s390x/s390-pci-bus.c | 26 +++++++++++++++++---------
> hw/s390x/s390-virtio-ccw.c | 8 ++++++++
> include/hw/s390x/s390-pci-bus.h | 1 +
> 3 files changed, 26 insertions(+), 9 deletions(-)
Thanks for the reminder on ISM/interpretation in v1.
Reviewed-by: Eric Farman <farman@linux.ibm.com>
next prev parent reply other threads:[~2024-01-18 19:26 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-18 18:51 [PATCH v2 0/3] s390x/pci: fix ISM reset Matthew Rosato
2024-01-18 18:51 ` [PATCH v2 1/3] s390x/pci: avoid double enable/disable of aif Matthew Rosato
2024-01-18 18:51 ` [PATCH v2 2/3] s390x/pci: refresh fh before disabling aif Matthew Rosato
2024-01-18 18:51 ` [PATCH v2 3/3] s390x/pci: drive ISM reset from subsystem reset Matthew Rosato
2024-01-18 19:25 ` Eric Farman [this message]
2024-01-19 21:07 ` Halil Pasic
2024-01-22 15:06 ` Matthew Rosato
2024-01-23 11:48 ` Halil Pasic
2024-01-18 19:43 ` [PATCH v2 0/3] s390x/pci: fix ISM reset Cédric Le Goater
2024-01-22 10:18 ` Michael Tokarev
2024-01-22 10:31 ` Michael Tokarev
2024-01-22 10:49 ` Thomas Huth
2024-01-22 15:06 ` Matthew Rosato
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=120531a4bb642bb9e7f9509d0e0027ed6a1a0d2e.camel@linux.ibm.com \
--to=farman@linux.ibm.com \
--cc=borntraeger@linux.ibm.com \
--cc=clg@redhat.com \
--cc=david@redhat.com \
--cc=frankja@linux.ibm.com \
--cc=iii@linux.ibm.com \
--cc=mjrosato@linux.ibm.com \
--cc=pasic@linux.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-s390x@nongnu.org \
--cc=qemu-stable@nongnu.org \
--cc=richard.henderson@linaro.org \
--cc=thuth@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).