From: Eric Auger <eric.auger@redhat.com>
To: eric.auger.pro@gmail.com, eric.auger@redhat.com,
qemu-devel@nongnu.org, qemu-arm@nongnu.org,
peter.maydell@linaro.org, pbonzini@redhat.com,
alex.williamson@redhat.com, peterx@redhat.com
Cc: mst@redhat.com
Subject: [Qemu-devel] [PATCH v1 0/6] Allow memory_region_register_iommu_notifier() to fail
Date: Fri, 13 Sep 2019 10:36:09 +0200 [thread overview]
Message-ID: <20190913083615.14719-1-eric.auger@redhat.com> (raw)
This series allows the memory_region_register_iommu_notifier()
to fail. As of now, when a MAP notifier is attempted to be
registered along with SMMUv3, Intel iommu without caching mode
or AMD IOMMU, we exit in the IOMMU MR notify_flag_changed()
callback. In case of VFIO assigned device hotplug, this could be
handled more nicely directly within the VFIO code, simply rejecting
the hotplug without exiting. This is what the series achieves
by handling the memory_region_register_iommu_notifier() returned
value.
Best Regards
Eric
This series can be found at:
https://github.com/eauger/qemu/tree/v4.1.0_register_iommu_notifier_fail_v1
History:
Follow-up of "VFIO/SMMUv3: Fail on VFIO/HW nested paging detection"
https://patchew.org/QEMU/20190829090141.21821-1-eric.auger@redhat.com/
Eric Auger (6):
memory: allow memory_region_register_iommu_notifier() to fail
vfio/common: Handle memory_region_register_iommu_notifier() failure
exec: assert on memory_region_register_iommu_notifier() failure
vhost: assert on memory_region_register_iommu_notifier() failure
intel_iommu: Let vtd_iommu_notify_flag_changed() fail
amd_iommu: Let amdvi_iommu_notify_flag_changed() fail
exec.c | 3 ++-
hw/arm/smmuv3.c | 8 +++++---
hw/i386/amd_iommu.c | 9 +++++----
hw/i386/intel_iommu.c | 9 +++++----
hw/ppc/spapr_iommu.c | 7 ++++---
hw/vfio/common.c | 8 ++++++--
hw/virtio/vhost.c | 2 +-
include/exec/memory.h | 18 +++++++++++++-----
memory.c | 28 ++++++++++++++++++----------
9 files changed, 59 insertions(+), 33 deletions(-)
--
2.20.1
next reply other threads:[~2019-09-13 8:38 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-13 8:36 Eric Auger [this message]
2019-09-13 8:36 ` [Qemu-devel] [PATCH v1 1/6] memory: allow memory_region_register_iommu_notifier() to fail Eric Auger
2019-09-16 3:23 ` Peter Xu
2019-09-19 11:45 ` Auger Eric
2019-09-13 8:36 ` [Qemu-devel] [PATCH v1 2/6] vfio/common: Handle memory_region_register_iommu_notifier() failure Eric Auger
2019-09-13 8:36 ` [Qemu-devel] [PATCH v1 3/6] exec: assert on " Eric Auger
2019-09-13 9:20 ` Andrew Jones
2019-09-13 8:36 ` [Qemu-devel] [PATCH v1 4/6] vhost: " Eric Auger
2019-09-13 8:36 ` [Qemu-devel] [PATCH v1 5/6] intel_iommu: Let vtd_iommu_notify_flag_changed() fail Eric Auger
2019-09-16 3:33 ` Peter Xu
2019-09-13 8:36 ` [Qemu-devel] [PATCH v1 6/6] amd_iommu: Let amdvi_iommu_notify_flag_changed() fail Eric Auger
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=20190913083615.14719-1-eric.auger@redhat.com \
--to=eric.auger@redhat.com \
--cc=alex.williamson@redhat.com \
--cc=eric.auger.pro@gmail.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=peterx@redhat.com \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
/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).