On 2024-10-06 17:49, Daniel P. Smith wrote:
This changes the type for the initrd parameter of dom0_construct_pv to be struct
boot_module. This conversion requires several adjustments throughout
dom0_construct_pv
to account for the type change. Removes the usage of early_mod field for
ramdisk module.
Signed-off-by: Daniel P. Smith <dpsm...@apertussolutions.com>
diff --git a/xen/arch/x86/pv/dom0_build.c b/xen/arch/x86/pv/dom0_build.c
index 7b6afe64d799..16b8c1e40998 100644
--- a/xen/arch/x86/pv/dom0_build.c
+++ b/xen/arch/x86/pv/dom0_build.c
@@ -367,7 +367,8 @@ static int __init dom0_construct(struct domain *d,
unsigned long nr_pt_pages;
unsigned long alloc_spfn;
unsigned long alloc_epfn;
- unsigned long initrd_pfn = -1, initrd_mfn = 0;
+ unsigned long initrd_pfn = -1;
+ mfn_t initrd_mfn = { 0 };
= _mfn(0);
With that:
Reviewed-by: Jason Andryuk <jason.andr...@amd.com>
unsigned long count;
struct page_info *page = NULL;
unsigned int flush_flags = 0;