qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] s390x/pci: relax I/O address translation requirement
@ 2024-12-09 19:29 Matthew Rosato
  2024-12-09 19:29 ` [PATCH 1/2] s390x/pci: add support for guests that request direct mapping Matthew Rosato
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Matthew Rosato @ 2024-12-09 19:29 UTC (permalink / raw)
  To: qemu-s390x
  Cc: farman, schnelle, thuth, pasic, borntraeger, richard.henderson,
	david, iii, clegoate, qemu-devel

This series introduces the concept of the relaxed translation requirement
for s390x guests in order to allow bypass of the guest IOMMU for more
efficient PCI passthrough.

With this series, QEMU can indicate to the guest that an IOMMU is not
strictly required for a zPCI device.  This would subsequently allow a
guest linux to use iommu.passthrough=1 and bypass their guest IOMMU for
PCI devices.

When this occurs, QEMU will note the behavior via an intercepted MPCIFC
instruction and will fill the host iommu with mappings of the entire
guest address space in response.

There is a kernel series [1] that adds the relevant behavior needed to
exploit this new feature from within a s390x linux guest.

[1]: https://lore.kernel.org/linux-s390/20241209192403.107090-1-mjrosato@linux.ibm.com/

Matthew Rosato (2):
  s390x/pci: add support for guests that request direct mapping
  s390x/pci: indicate QEMU supports relaxed translation for passthrough

 hw/s390x/s390-pci-bus.c         | 23 ++++++++++++++++++
 hw/s390x/s390-pci-inst.c        | 42 +++++++++++++++++++++++++++++++--
 hw/s390x/s390-pci-vfio.c        |  4 +++-
 include/hw/s390x/s390-pci-bus.h |  2 ++
 include/hw/s390x/s390-pci-clp.h |  1 +
 5 files changed, 69 insertions(+), 3 deletions(-)

-- 
2.47.0



^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2024-12-13 22:47 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-09 19:29 [PATCH 0/2] s390x/pci: relax I/O address translation requirement Matthew Rosato
2024-12-09 19:29 ` [PATCH 1/2] s390x/pci: add support for guests that request direct mapping Matthew Rosato
2024-12-09 21:01   ` David Hildenbrand
2024-12-09 21:45     ` Matthew Rosato
2024-12-09 22:09       ` David Hildenbrand
2024-12-09 23:22         ` Matthew Rosato
2024-12-10  8:58           ` David Hildenbrand
2024-12-13 22:46             ` Matthew Rosato
2024-12-11 11:34   ` Thomas Huth
2024-12-11 14:40   ` Cédric Le Goater
2024-12-11 15:17     ` Matthew Rosato
2024-12-09 19:29 ` [PATCH 2/2] s390x/pci: indicate QEMU supports relaxed translation for passthrough Matthew Rosato
2024-12-11 11:40   ` Thomas Huth
2024-12-12  9:10 ` [PATCH 0/2] s390x/pci: relax I/O address translation requirement Thomas Huth
2024-12-12 14:42   ` Matthew Rosato
2024-12-13  9:07     ` Cédric Le Goater
2024-12-13  9:24     ` Thomas Huth

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).