[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH-for-9.0 5/9] hw/xen/hvm: Expose xen_read_physmap() prototype
|
From: |
Philippe Mathieu-Daudé |
|
Subject: |
[PATCH-for-9.0 5/9] hw/xen/hvm: Expose xen_read_physmap() prototype |
|
Date: |
Tue, 14 Nov 2023 17:31:19 +0100 |
In a pair of commit we are going to call xen_read_physmap()
out of hw/i386/xen/xen-hvm.c.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
include/hw/xen/xen-hvm-common.h | 1 +
hw/i386/xen/xen-hvm.c | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/include/hw/xen/xen-hvm-common.h b/include/hw/xen/xen-hvm-common.h
index 0fed15ed04..536712dc83 100644
--- a/include/hw/xen/xen-hvm-common.h
+++ b/include/hw/xen/xen-hvm-common.h
@@ -97,6 +97,7 @@ void xen_register_ioreq(XenIOState *state, unsigned int
max_cpus,
void cpu_ioreq_pio(ioreq_t *req);
+void xen_read_physmap(XenIOState *state);
void xen_arch_handle_ioreq(XenIOState *state, ioreq_t *req);
void xen_arch_set_memory(XenIOState *state,
MemoryRegionSection *section,
diff --git a/hw/i386/xen/xen-hvm.c b/hw/i386/xen/xen-hvm.c
index a65a96f0de..789779d02c 100644
--- a/hw/i386/xen/xen-hvm.c
+++ b/hw/i386/xen/xen-hvm.c
@@ -525,7 +525,7 @@ static void handle_vmport_ioreq(XenIOState *state, ioreq_t
*req)
}
#ifdef XEN_COMPAT_PHYSMAP
-static void xen_read_physmap(XenIOState *state)
+void xen_read_physmap(XenIOState *state)
{
XenPhysmap *physmap = NULL;
unsigned int len, num, i;
@@ -573,7 +573,7 @@ static void xen_read_physmap(XenIOState *state)
free(entries);
}
#else
-static void xen_read_physmap(XenIOState *state)
+void xen_read_physmap(XenIOState *state)
{
}
#endif
--
2.41.0
- [RFC PATCH-for-9.0 0/9] hw/xen: Have ARM targets use common xen_memory_listener, Philippe Mathieu-Daudé, 2023/11/14
- [PATCH-for-9.0 1/9] hw/xen/hvm: Inline TARGET_PAGE_ALIGN() macro, Philippe Mathieu-Daudé, 2023/11/14
- [PATCH-for-9.0 2/9] hw/xen/hvm: Propagate page_mask to a pair of functions, Philippe Mathieu-Daudé, 2023/11/14
- [PATCH-for-9.0 3/9] hw/xen/hvm: Get target page size at runtime, Philippe Mathieu-Daudé, 2023/11/14
- [PATCH-for-9.0 4/9] hw/xen/hvm: Expose xen_memory_listener declaration, Philippe Mathieu-Daudé, 2023/11/14
- [PATCH-for-9.0 5/9] hw/xen/hvm: Expose xen_read_physmap() prototype,
Philippe Mathieu-Daudé <=
- [RFC PATCH-for-9.0 6/9] hw/xen/hvm: Initialize xen_physmap QLIST in xen_read_physmap(), Philippe Mathieu-Daudé, 2023/11/14
- [PATCH-for-9.0 7/9] hw/xen/hvm: Extract common code to xen-hvm-common.c, Philippe Mathieu-Daudé, 2023/11/14
- [RFC PATCH-for-9.0 8/9] hw/xen/hvm: Merge xen-hvm-common.c files, Philippe Mathieu-Daudé, 2023/11/14
- [PATCH-for-9.0 9/9] hw/xen/hvm: Inline xen_arch_set_memory(), Philippe Mathieu-Daudé, 2023/11/14