Message ID | 20240116185056.15000-7-eliasely@amazon.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [v2] x86/srat: vmap the pages for acpi_slit | expand |
diff --git a/xen/arch/x86/srat.c b/xen/arch/x86/srat.c index 3f70338e6e..688f410287 100644 --- a/xen/arch/x86/srat.c +++ b/xen/arch/x86/srat.c @@ -135,7 +135,9 @@ void __init acpi_numa_slit_init(struct acpi_table_slit *slit) return; } mfn = alloc_boot_pages(PFN_UP(slit->header.length), 1); - acpi_slit = mfn_to_virt(mfn_x(mfn)); + acpi_slit = vmap_contig(mfn, PFN_UP(slit->header.length)); + if ( !acpi_slit ) + panic("Unable to map the ACPI SLIT. Retry with numa=off"); memcpy(acpi_slit, slit, slit->header.length); }