aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEdgar E. Iglesias <edgar.iglesias@amd.com>2024-04-30 18:49:36 +0200
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2024-06-04 11:53:34 +0200
commit1be974bc2658b2f1d9a3aaacda2657dc85c208d2 (patch)
treefff73fd943effeb7014cf262e35bf745609fa9cf /include
parent638181a180bd4815eb4db64cfc50092cc3e5035e (diff)
xen: Add xen_mr_is_memory()
Add xen_mr_is_memory() to abstract away tests for the xen_memory MR. No functional changes. Signed-off-by: Edgar E. Iglesias <edgar.iglesias@amd.com> Reviewed-by: Stefano Stabellini <sstabellini@kernel.org> Acked-by: David Hildenbrand <david@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-ID: <20240529140739.1387692-4-edgar.iglesias@gmail.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'include')
-rw-r--r--include/sysemu/xen.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sysemu/xen.h b/include/sysemu/xen.h
index 754ec2e6cb..3445888e39 100644
--- a/include/sysemu/xen.h
+++ b/include/sysemu/xen.h
@@ -49,4 +49,5 @@ static inline void xen_ram_alloc(ram_addr_t ram_addr, ram_addr_t size,
#endif /* CONFIG_XEN_IS_POSSIBLE */
+bool xen_mr_is_memory(MemoryRegion *mr);
#endif