On 30/04/2025 20.50, Farhan Ali wrote:
Starting with z15 (or newer) we can execute mmio
instructions from userspace. On older platforms
where we don't have these instructions available
we can fallback to using system calls to access
the PCI mapped resources.
This patch adds helper functions for mmio reads
and writes for s390x.
Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>
Reviewed-by: Niklas Schnelle <schne...@linux.ibm.com>
Signed-off-by: Farhan Ali <al...@linux.ibm.com>
---
include/qemu/s390x_pci_mmio.h | 24 ++++++
util/meson.build | 2 +
util/s390x_pci_mmio.c | 146 ++++++++++++++++++++++++++++++++++
3 files changed, 172 insertions(+)
create mode 100644 include/qemu/s390x_pci_mmio.h
create mode 100644 util/s390x_pci_mmio.c
FWIW,
Acked-by: Thomas Huth <th...@redhat.com>