[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 04/15] exec/memory: Expose memory_region_access_valid()
From: |
Thomas Huth |
Subject: |
[PULL 04/15] exec/memory: Expose memory_region_access_valid() |
Date: |
Fri, 6 Jan 2023 09:28:42 +0100 |
From: Philippe Mathieu-Daudé <philmd@linaro.org>
Instead of having hardware device poking into memory
internal API, expose memory_region_access_valid().
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20221217152454.96388-2-philmd@linaro.org>
Reviewed-by: Eric Farman <farman@linux.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
include/exec/memory-internal.h | 4 ----
include/exec/memory.h | 4 ++++
hw/s390x/s390-pci-inst.c | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/include/exec/memory-internal.h b/include/exec/memory-internal.h
index 9fcc2af25c..100c1237ac 100644
--- a/include/exec/memory-internal.h
+++ b/include/exec/memory-internal.h
@@ -38,10 +38,6 @@ void flatview_unref(FlatView *view);
extern const MemoryRegionOps unassigned_mem_ops;
-bool memory_region_access_valid(MemoryRegion *mr, hwaddr addr,
- unsigned size, bool is_write,
- MemTxAttrs attrs);
-
void flatview_add_to_dispatch(FlatView *fv, MemoryRegionSection *section);
AddressSpaceDispatch *address_space_dispatch_new(FlatView *fv);
void address_space_dispatch_compact(AddressSpaceDispatch *d);
diff --git a/include/exec/memory.h b/include/exec/memory.h
index 91f8a2395a..c37ffdbcd1 100644
--- a/include/exec/memory.h
+++ b/include/exec/memory.h
@@ -2442,6 +2442,10 @@ void memory_global_dirty_log_stop(unsigned int flags);
void mtree_info(bool flatview, bool dispatch_tree, bool owner, bool disabled);
+bool memory_region_access_valid(MemoryRegion *mr, hwaddr addr,
+ unsigned size, bool is_write,
+ MemTxAttrs attrs);
+
/**
* memory_region_dispatch_read: perform a read directly to the specified
* MemoryRegion.
diff --git a/hw/s390x/s390-pci-inst.c b/hw/s390x/s390-pci-inst.c
index 9abe95130c..2eee5db7e1 100644
--- a/hw/s390x/s390-pci-inst.c
+++ b/hw/s390x/s390-pci-inst.c
@@ -13,7 +13,7 @@
#include "qemu/osdep.h"
#include "exec/memop.h"
-#include "exec/memory-internal.h"
+#include "exec/memory.h"
#include "qemu/error-report.h"
#include "sysemu/hw_accel.h"
#include "hw/s390x/s390-pci-inst.h"
--
2.31.1
- [PULL 00/15] First batch of s390x, qtests and misc fixes in 2023, Thomas Huth, 2023/01/06
- [PULL 01/15] qemu-iotests/stream-under-throttle: do not shutdown QEMU, Thomas Huth, 2023/01/06
- [PULL 04/15] exec/memory: Expose memory_region_access_valid(),
Thomas Huth <=
- [PULL 05/15] hw/s390x/pv: Restrict Protected Virtualization to sysemu, Thomas Huth, 2023/01/06
- [PULL 02/15] tests/vm: Update get_default_jobs() to work on non-x86_64 non-KVM hosts, Thomas Huth, 2023/01/06
- [PULL 06/15] target/s390x/tcg/misc_helper: Remove unused "memory.h" include, Thomas Huth, 2023/01/06
- [PULL 07/15] target/s390x/tcg/excp_helper: Restrict system headers to sysemu, Thomas Huth, 2023/01/06
- [PULL 09/15] tests/readconfig: spice doesn't support unix socket on windows yet, Thomas Huth, 2023/01/06
- [PULL 08/15] target/s390x: Restrict sysemu/reset.h to system emulation, Thomas Huth, 2023/01/06
- [PULL 03/15] MAINTAINERS: Add MIPS-related docs and configs to the MIPS architecture section, Thomas Huth, 2023/01/06
- [PULL 10/15] i386: Deprecate the -no-hpet QEMU command line option, Thomas Huth, 2023/01/06
- [PULL 14/15] error handling: Use RETRY_ON_EINTR() macro where applicable, Thomas Huth, 2023/01/06
- [PULL 12/15] Update scripts/meson-buildoptions.sh, Thomas Huth, 2023/01/06