From: Hongyan Xia <[email protected]> This avoids the assumption that boot pages are in the direct map.
Signed-off-by: Hongyan Xia <[email protected]> Signed-off-by: Julien Grall <[email protected]> ---- Changes since Hongyan's version: * vmap_boot_pages() was renamed to vmap_contig_pages() --- xen/arch/x86/srat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xen/arch/x86/srat.c b/xen/arch/x86/srat.c index 56749ddca526..1fd178e89d28 100644 --- a/xen/arch/x86/srat.c +++ b/xen/arch/x86/srat.c @@ -139,7 +139,8 @@ 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_pages(mfn, PFN_UP(slit->header.length)); + BUG_ON(!acpi_slit); memcpy(acpi_slit, slit, slit->header.length); } -- 2.38.1
