From: Tony Krowiak <akrowiak@linux.ibm.com>
To: qemu-devel@nongnu.org
Cc: qemu-s390x@nongnu.org, mjrosato@linux.ibm.com,
jjherne@linux.ibm.com, pasic@linux.ibm.com, fiuczy@linux.ibm.com,
thuth@redhat.com, farman@linux.ibm.com,
borntraeger@linux.ibm.com, clg@redhat.com, cohuck@redhat.com,
Tony Krowiak <akrowiak@linux.ibm.com>
Subject: [PATCH v2 0/2] s390x/ap: fix hang when mdev attached to guest is removed
Date: Fri, 2 Jun 2023 10:11:23 -0400 [thread overview]
Message-ID: <20230602141125.448833-1-akrowiak@linux.ibm.com> (raw)
When a user attempts to remove a vfio-ap mediated device attached to a
guest, the operation hangs until the mdev's fd is closed by the guest
(i.e., the guest is shut down). This patch series provides userspace
(i.e., qemu) code to handle device unplug requests for AP. When notified
that the mdev is being removed, the handler will unplug the device, thus
avoiding the hang condition.
Link: https://lore.kernel.org/r/20230530223538.279198-4-akrowiak@linux.ibm.com
Tony Krowiak (2):
linux-headers: Update with vfio_ap IRQ index mapping
s390x/ap: Wire up the device request notifier interface
hw/vfio/ap.c | 113 ++++++++++++++++++
include/standard-headers/linux/const.h | 2 +-
include/standard-headers/linux/virtio_blk.h | 18 +--
.../standard-headers/linux/virtio_config.h | 6 +
include/standard-headers/linux/virtio_net.h | 1 +
linux-headers/asm-arm64/kvm.h | 33 +++++
linux-headers/asm-riscv/kvm.h | 53 +++++++-
linux-headers/asm-riscv/unistd.h | 9 ++
linux-headers/asm-s390/unistd_32.h | 1 +
linux-headers/asm-s390/unistd_64.h | 1 +
linux-headers/asm-x86/kvm.h | 3 +
linux-headers/linux/const.h | 2 +-
linux-headers/linux/kvm.h | 12 +-
linux-headers/linux/psp-sev.h | 7 ++
linux-headers/linux/userfaultfd.h | 17 ++-
linux-headers/linux/vfio.h | 9 ++
16 files changed, 271 insertions(+), 16 deletions(-)
--
2.31.1
next reply other threads:[~2023-06-02 14:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-02 14:11 Tony Krowiak [this message]
2023-06-02 14:11 ` [PATCH v2 1/2] linux-headers: Update with vfio_ap IRQ index mapping Tony Krowiak
2023-07-03 16:31 ` Cédric Le Goater
2023-07-03 20:31 ` Anthony Krowiak
2023-06-02 14:11 ` [PATCH v2 2/2] s390x/ap: Wire up the device request notifier interface Tony Krowiak
2023-06-02 14:28 ` Cédric Le Goater
2023-06-02 15:00 ` Anthony Krowiak
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=20230602141125.448833-1-akrowiak@linux.ibm.com \
--to=akrowiak@linux.ibm.com \
--cc=borntraeger@linux.ibm.com \
--cc=clg@redhat.com \
--cc=cohuck@redhat.com \
--cc=farman@linux.ibm.com \
--cc=fiuczy@linux.ibm.com \
--cc=jjherne@linux.ibm.com \
--cc=mjrosato@linux.ibm.com \
--cc=pasic@linux.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-s390x@nongnu.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).