mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
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>
This commit is contained in:
parent
57b6f8d07f
commit
b17d69a1da
3 changed files with 172 additions and 0 deletions
|
@ -131,4 +131,6 @@ elif cpu in ['ppc', 'ppc64']
|
|||
util_ss.add(files('cpuinfo-ppc.c'))
|
||||
elif cpu in ['riscv32', 'riscv64']
|
||||
util_ss.add(files('cpuinfo-riscv.c'))
|
||||
elif cpu == 's390x'
|
||||
util_ss.add(files('s390x_pci_mmio.c'))
|
||||
endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue