]> git.ipfire.org Git - thirdparty/qemu.git/commit
util: Add functions for s390x mmio read/write
authorFarhan Ali <alifm@linux.ibm.com>
Wed, 30 Apr 2025 18:50:10 +0000 (11:50 -0700)
committerStefan Hajnoczi <stefanha@redhat.com>
Thu, 8 May 2025 14:03:07 +0000 (10:03 -0400)
commitb17d69a1dab6dd5acf2646f24866d1ee66983ae0
tree3a579ff57c5fedfd90acc24075fc08f92d22dc69
parent57b6f8d07f1478375f85a4593a207e936c63ff59
util: Add functions for s390x mmio read/write

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 <stefanha@redhat.com>
Reviewed-by: Niklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: Farhan Ali <alifm@linux.ibm.com>
Acked-by: Thomas Huth <thuth@redhat.com>
Message-id: 20250430185012.2303-2-alifm@linux.ibm.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
include/qemu/s390x_pci_mmio.h [new file with mode: 0644]
util/meson.build
util/s390x_pci_mmio.c [new file with mode: 0644]