Skip to content

Commit

Permalink
xen: disable ACPI NUMA for PV guests
Browse files Browse the repository at this point in the history
Xen does not currently expose PV-NUMA information to PV
guests. Therefore disable NUMA for the time being to prevent the
kernel picking up on an host-level NUMA information which it might
come across in the firmware.

[ Added comment - Jeremy ]

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
  • Loading branch information
Ian Campbell authored and Konrad Rzeszutek Wilk committed Jan 10, 2011
1 parent d1b758e commit c1f5db1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions arch/x86/xen/enlighten.c
Original file line number Diff line number Diff line change
Expand Up @@ -1174,6 +1174,15 @@ asmlinkage void __init xen_start_kernel(void)

xen_smp_init();

#ifdef CONFIG_ACPI_NUMA
/*
* The pages we from Xen are not related to machine pages, so
* any NUMA information the kernel tries to get from ACPI will
* be meaningless. Prevent it from trying.
*/
acpi_numa = -1;
#endif

pgd = (pgd_t *)xen_start_info->pt_base;

if (!xen_initial_domain())
Expand Down

0 comments on commit c1f5db1

Please sign in to comment.