|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH 05/22] x86/srat: vmap the pages for acpi_slit
From: Hongyan Xia <hongyxia@xxxxxxxxxx>
This avoids the assumption that boot pages are in the direct map.
Signed-off-by: Hongyan Xia <hongyxia@xxxxxxxxxx>
Signed-off-by: Julien Grall <jgrall@xxxxxxxxxx>
----
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
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |