svn commit: r222151 - in stable/7/sys: amd64/amd64 amd64/include i386/i386 i386/include

Jung-uk Kim jkim at FreeBSD.org
Fri May 20 22:24:27 UTC 2011


Author: jkim
Date: Fri May 20 22:24:26 2011
New Revision: 222151
URL: http://svn.freebsd.org/changeset/base/222151

Log:
  MFC:	r221188
  
  Define "Hypervisor Present" bit.  This bit is used by several hypervisors to
  identify CPUs running under emulation.

Modified:
  stable/7/sys/amd64/amd64/identcpu.c
  stable/7/sys/amd64/include/specialreg.h
  stable/7/sys/i386/i386/identcpu.c
  stable/7/sys/i386/include/specialreg.h
Directory Properties:
  stable/7/sys/   (props changed)
  stable/7/sys/cddl/contrib/opensolaris/   (props changed)
  stable/7/sys/contrib/dev/acpica/   (props changed)
  stable/7/sys/contrib/pf/   (props changed)

Modified: stable/7/sys/amd64/amd64/identcpu.c
==============================================================================
--- stable/7/sys/amd64/amd64/identcpu.c	Fri May 20 22:22:56 2011	(r222150)
+++ stable/7/sys/amd64/amd64/identcpu.c	Fri May 20 22:24:26 2011	(r222151)
@@ -270,7 +270,7 @@ printcpuinfo(void)
 				"\035<b28>"
 				"\036<b29>"
 				"\037<b30>"
-				"\040<b31>"
+				"\040HV"	/* Hypervisor */
 				);
 			}
 

Modified: stable/7/sys/amd64/include/specialreg.h
==============================================================================
--- stable/7/sys/amd64/include/specialreg.h	Fri May 20 22:22:56 2011	(r222150)
+++ stable/7/sys/amd64/include/specialreg.h	Fri May 20 22:24:26 2011	(r222151)
@@ -131,6 +131,7 @@
 #define	CPUID2_X2APIC	0x00200000
 #define	CPUID2_MOVBE	0x00400000
 #define	CPUID2_POPCNT	0x00800000
+#define	CPUID2_HV	0x80000000
 
 /*
  * Important bits in the Thermal and Power Management flags

Modified: stable/7/sys/i386/i386/identcpu.c
==============================================================================
--- stable/7/sys/i386/i386/identcpu.c	Fri May 20 22:22:56 2011	(r222150)
+++ stable/7/sys/i386/i386/identcpu.c	Fri May 20 22:24:26 2011	(r222151)
@@ -758,7 +758,7 @@ printcpuinfo(void)
 				"\035<b28>"
 				"\036<b29>"
 				"\037<b30>"
-				"\040<b31>"
+				"\040HV"	/* Hypervisor */
 				);
 			}
 

Modified: stable/7/sys/i386/include/specialreg.h
==============================================================================
--- stable/7/sys/i386/include/specialreg.h	Fri May 20 22:22:56 2011	(r222150)
+++ stable/7/sys/i386/include/specialreg.h	Fri May 20 22:24:26 2011	(r222151)
@@ -128,6 +128,7 @@
 #define	CPUID2_X2APIC	0x00200000
 #define	CPUID2_MOVBE	0x00400000
 #define	CPUID2_POPCNT	0x00800000
+#define	CPUID2_HV	0x80000000
 
 /*
  * Important bits in the Thermal and Power Management flags


More information about the svn-src-all mailing list