aboutsummaryrefslogtreecommitdiff
path: root/rust/qemu-api/src
diff options
context:
space:
mode:
authorMatthew Rosato <mjrosato@linux.ibm.com>2025-02-26 16:00:12 -0500
committerThomas Huth <thuth@redhat.com>2025-03-07 09:24:00 +0100
commitdfcee1ea4c52ac60e0a06221eafb7b6253eb10c3 (patch)
tree107123548c9382b0e8b74588030fa14efd8c21c2 /rust/qemu-api/src
parent9cbff6f29ee099e7cb331802a1bf9b179c4c3934 (diff)
downloadqemu-dfcee1ea4c52ac60e0a06221eafb7b6253eb10c3.zip
qemu-dfcee1ea4c52ac60e0a06221eafb7b6253eb10c3.tar.gz
qemu-dfcee1ea4c52ac60e0a06221eafb7b6253eb10c3.tar.bz2
s390x/pci: add support for guests that request direct mapping
When receiving a guest mpcifc(4) or mpcifc(6) instruction without the T bit set, treat this as a request to perform direct mapping instead of address translation. In order to facilitate this, pin the entirety of guest memory into the host iommu. Pinning for the direct mapping case is handled via vfio and its memory listener. Additionally, ram discard settings are inherited from vfio: coordinated discards (e.g. virtio-mem) are allowed while uncoordinated discards (e.g. virtio-balloon) are disabled. Subsequent guest DMA operations are all expected to be of the format guest_phys+sdma, allowing them to be used as lookup into the host iommu table. Signed-off-by: Matthew Rosato <mjrosato@linux.ibm.com> Reviewed-by: David Hildenbrand <david@redhat.com> Message-ID: <20250226210013.238349-2-mjrosato@linux.ibm.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'rust/qemu-api/src')
0 files changed, 0 insertions, 0 deletions