This avoids the assumption that boot pages are in the direct map.
Signed-off-by: Hongyan Xia <hongyxia@amazon.com>
Signed-off-by: Julien Grall <jgrall@amazon.com>
Signed-off-by: Elias El Yandouzi <eliasely@amazon.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
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);
}