|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v7 3/8] xen: Add xen_mr_is_memory()
Hi Edgar, On 24/5/24 12:51, Edgar E. Iglesias wrote: From: "Edgar E. Iglesias" <edgar.iglesias@xxxxxxx> 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@xxxxxxx> Reviewed-by: Stefano Stabellini <sstabellini@xxxxxxxxxx> Acked-by: David Hildenbrand <david@xxxxxxxxxx> --- hw/xen/xen-hvm-common.c | 10 ++++++++-- include/sysemu/xen.h | 8 ++++++++ 2 files changed, 16 insertions(+), 2 deletions(-)
To consolidate we could add:
static MemoryRegion xen_memory;
MemoryRegion *xen_mr_memory_init(uint64_t block_len)
{
assert(!xen_memory.size);
memory_region_init_ram(&xen_memory, NULL, "xen.ram", block_len,
&error_fatal);
return &xen_memory;
}
and remove the extern declaration.
No need for the stub, just always declare xen_mr_is_memory() ... +} + #endif /* CONFIG_XEN_IS_POSSIBLE */ ... here. #endif Removing the stub: Reviewed-by: Philippe Mathieu-Daudé <philmd@xxxxxxxxxx>
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |