qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Memory and PCI definitions for emulated ATS
@ 2025-06-20  5:56 CLEMENT MATHIEU--DRIF
  2025-06-20  5:56 ` [PATCH 1/2] pci: Add a memory attribute for pre-translated DMA operations CLEMENT MATHIEU--DRIF
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: CLEMENT MATHIEU--DRIF @ 2025-06-20  5:56 UTC (permalink / raw)
  To: qemu-devel@nongnu.org
  Cc: pbonzini@redhat.com, peterx@redhat.com, david@redhat.com,
	philmd@linaro.org, mst@redhat.com, marcel.apfelbaum@gmail.com,
	Ethan MILON, CLEMENT MATHIEU--DRIF

This short series adds the 'address type' bit (concept from PCIe) to the
memory attributes and extends the IOMMUAccessFlags enum. This
will be required to implement ATS support for the virtual IOMMUs.

Address type: Field present in the PCIe R/W requests, it allows devices to
tell the IOMMU if the address provided in the request is physical or not.
In other words, it allows the devices to use a physical address obtained
via ATS and to prevent the IOMMU from trying to remap it on the fly.

Additional IOMMU access flags:
    - Execute Requested
    - Privileged Mode Requested
    - Global
    - Untranslated Only (cannot be used with 'Address type = translated')

Clement Mathieu--Drif (2):
  pci: Add a memory attribute for pre-translated DMA operations
  memory: Add permissions in IOMMUAccessFlags

 include/exec/memattrs.h |  3 +++
 include/hw/pci/pci.h    |  9 +++++++++
 include/system/memory.h | 23 +++++++++++++++++++++--
 3 files changed, 33 insertions(+), 2 deletions(-)

-- 
2.49.0


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

end of thread, other threads:[~2025-06-24  5:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-20  5:56 [PATCH 0/2] Memory and PCI definitions for emulated ATS CLEMENT MATHIEU--DRIF
2025-06-20  5:56 ` [PATCH 1/2] pci: Add a memory attribute for pre-translated DMA operations CLEMENT MATHIEU--DRIF
2025-06-20  5:56 ` [PATCH 2/2] memory: Add permissions in IOMMUAccessFlags CLEMENT MATHIEU--DRIF
2025-06-20 14:35 ` [PATCH 0/2] Memory and PCI definitions for emulated ATS Peter Xu
2025-06-23  5:43   ` CLEMENT MATHIEU--DRIF
2025-06-23 13:15     ` Peter Xu
2025-06-24  5:02       ` CLEMENT MATHIEU--DRIF

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