]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
xen: change quality of the MADT ACPI enumerator
authorRoger Pau Monné <royger@FreeBSD.org>
Mon, 4 Aug 2014 08:56:20 +0000 (08:56 +0000)
committerRoger Pau Monné <royger@FreeBSD.org>
Mon, 4 Aug 2014 08:56:20 +0000 (08:56 +0000)
commitd9aa19f1f461ab8bcd9064d8850c14504bfd2d95
tree6c8a2890b364ac80e14d012f8bf6a114a15516f0
parenta36a5425c700c97cff17c53ff2e2b21c73d9b7db
xen: change quality of the MADT ACPI enumerator

Lower the quality of the MADT ACPI enumerator, so on Xen Dom0 we can
force the usage of the Xen mptable enumerator even when ACPI is
detected.

This is needed because Xen might restrict the number of vCPUs
available to Dom0, but the MADT ACPI table parsed in FreeBSD is the
native one (which enumerates all the CPUs available in the system).

Sponsored by: Citrix Systems R&D
Reviewed by: gibbs

x86/acpica/madt.c:
 - Lower MADT enumerator quality to -50.

x86/xen/pvcpu_enum.c:
 - Rise Xen PV enumerator to 0.
sys/x86/acpica/madt.c
sys/x86/xen/pvcpu_enum.c