summaryrefslogtreecommitdiffstats
path: root/include/exec
diff options
context:
space:
mode:
authorPeter Maydell2022-01-18 16:06:08 +0100
committerPeter Maydell2022-01-18 16:06:08 +0100
commit8b846207151955a7d4de2d33d07645991824e345 (patch)
treed9e80da7eb15170d386d6555f24f6b422b0bd732 /include/exec
parentMerge remote-tracking branch 'remotes/mcayland/tags/qemu-openbios-20220115' i... (diff)
parentdocs/devel: add some clarifying text for aliases (diff)
downloadqemu-8b846207151955a7d4de2d33d07645991824e345.tar.gz
qemu-8b846207151955a7d4de2d33d07645991824e345.tar.xz
qemu-8b846207151955a7d4de2d33d07645991824e345.zip
Merge remote-tracking branch 'remotes/philmd/tags/memory-api-20220118' into staging
Memory API patches - Directly dispatch MemoryRegion alias accesses - Remove duplicated Address Space information in 'info mtree' - Cleanups around memory_region_is_mapped() - Fix incorrect calls of log_global_start/stop() - Use dma_addr_t type definition when relevant - Let dma_buf_read() / dma_buf_write() propagate MemTxResult - Clarify MemoryRegion aliases documentation # gpg: Signature made Tue 18 Jan 2022 12:01:10 GMT # gpg: using RSA key FAABE75E12917221DCFD6BB2E3E32C2CDEADC0DE # gpg: Good signature from "Philippe Mathieu-Daudé (F4BUG) <f4bug@amsat.org>" [unknown] # gpg: WARNING: This key is not certified with a trusted signature! # gpg: There is no indication that the signature belongs to the owner. # Primary key fingerprint: FAAB E75E 1291 7221 DCFD 6BB2 E3E3 2C2C DEAD C0DE * remotes/philmd/tags/memory-api-20220118: docs/devel: add some clarifying text for aliases hw/dma: Let dma_buf_read() / dma_buf_write() propagate MemTxResult hw/dma: Use dma_addr_t type definition when relevant hw/dma: Move ScatterGatherEntry / QEMUSGList declarations around hw/dma: Fix format string issues using dma_addr_t hw/scsi: Rename SCSIRequest::resid as 'residual' hw/rdma/rdma_utils: Rename rdma_pci_dma_map 'len' argument hw/dma: Remove CONFIG_USER_ONLY check hw/pci: Document pci_dma_map() hw/pci: Restrict pci-bus stub to sysemu hw/nvram: Restrict fw_cfg QOM interface to sysemu and tools stubs: Restrict fw_cfg to system emulation memory: Fix incorrect calls of log_global_start/stop memory: Update description of memory_region_is_mapped() memory: Make memory_region_is_mapped() succeed when mapped via an alias machine: Use host_memory_backend_is_mapped() in machine_consume_memdev() memory: Have 'info mtree' remove duplicated Address Space information memory: Split mtree_info() as mtree_info_flatview() + mtree_info_as() memory: Directly dispatch alias accesses on origin memory region Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include/exec')
-rw-r--r--include/exec/memory.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/exec/memory.h b/include/exec/memory.h
index 20f1b27377..63be794a06 100644
--- a/include/exec/memory.h
+++ b/include/exec/memory.h
@@ -738,6 +738,7 @@ struct MemoryRegion {
const MemoryRegionOps *ops;
void *opaque;
MemoryRegion *container;
+ int mapped_via_alias; /* Mapped via an alias, container might be NULL */
Int128 size;
hwaddr addr;
void (*destructor)(MemoryRegion *mr);
@@ -2296,7 +2297,8 @@ bool memory_region_present(MemoryRegion *container, hwaddr addr);
/**
* memory_region_is_mapped: returns true if #MemoryRegion is mapped
- * into any address space.
+ * into another memory region, which does not necessarily imply that it is
+ * mapped into an address space.
*
* @mr: a #MemoryRegion which should be checked if it's mapped
*/