Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Aug 2014 08:56:21 +0000 (UTC)
From:      Roger Pau Monné <royger@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r269511 - in head/sys/x86: acpica xen
Message-ID:  <53df4ab5.5c6e.5f2645f5@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: royger
Date: Mon Aug  4 08:56:20 2014
New Revision: 269511
URL: http://svnweb.freebsd.org/changeset/base/269511

Log:
  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.

Modified:
  head/sys/x86/acpica/madt.c
  head/sys/x86/xen/pvcpu_enum.c

Modified: head/sys/x86/acpica/madt.c
==============================================================================
--- head/sys/x86/acpica/madt.c	Mon Aug  4 08:54:34 2014	(r269510)
+++ head/sys/x86/acpica/madt.c	Mon Aug  4 08:56:20 2014	(r269511)
@@ -102,7 +102,7 @@ madt_probe(void)
 	madt_physaddr = acpi_find_table(ACPI_SIG_MADT);
 	if (madt_physaddr == 0)
 		return (ENXIO);
-	return (0);
+	return (-50);
 }
 
 /*

Modified: head/sys/x86/xen/pvcpu_enum.c
==============================================================================
--- head/sys/x86/xen/pvcpu_enum.c	Mon Aug  4 08:54:34 2014	(r269510)
+++ head/sys/x86/xen/pvcpu_enum.c	Mon Aug  4 08:56:20 2014	(r269511)
@@ -67,7 +67,7 @@ static struct apic_enumerator xenpv_enum
 static int
 xenpv_probe(void)
 {
-	return (-100);
+	return (0);
 }
 
 /*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53df4ab5.5c6e.5f2645f5>