summary refs log tree commit diff stats
path: root/system/physmem.c
diff options
context:
space:
mode:
authorSteve Sistare <steven.sistare@oracle.com>2025-07-02 14:58:44 -0700
committerCédric Le Goater <clg@redhat.com>2025-07-03 13:42:28 +0200
commitd7ae4a740c8e49962ccfbbf41da0b3b8314518ce (patch)
treed7b03c440b339b9c8bfd51b12254a021b8bad542 /system/physmem.c
parentab48cedc648a60a3e51db73acf12148d90f19c4c (diff)
downloadfocaccia-qemu-d7ae4a740c8e49962ccfbbf41da0b3b8314518ce.tar.gz
focaccia-qemu-d7ae4a740c8e49962ccfbbf41da0b3b8314518ce.zip
physmem: qemu_ram_get_fd_offset
Define qemu_ram_get_fd_offset, so CPR can map a memory region using
IOMMU_IOAS_MAP_FILE in a subsequent patch.

Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Link: https://lore.kernel.org/qemu-devel/1751493538-202042-8-git-send-email-steven.sistare@oracle.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'system/physmem.c')
-rw-r--r--system/physmem.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/system/physmem.c b/system/physmem.c
index ff0ca40222..130c148ffb 100644
--- a/system/physmem.c
+++ b/system/physmem.c
@@ -1593,6 +1593,11 @@ ram_addr_t qemu_ram_get_offset(RAMBlock *rb)
     return rb->offset;
 }
 
+ram_addr_t qemu_ram_get_fd_offset(RAMBlock *rb)
+{
+    return rb->fd_offset;
+}
+
 ram_addr_t qemu_ram_get_used_length(RAMBlock *rb)
 {
     return rb->used_length;