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

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

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

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

Modified: stable/8/sys/amd64/include/specialreg.h
==============================================================================
--- stable/8/sys/amd64/include/specialreg.h     Fri May 20 22:20:23 2011        
(r222149)
+++ stable/8/sys/amd64/include/specialreg.h     Fri May 20 22:22:56 2011        
(r222150)
@@ -134,6 +134,7 @@
 #define        CPUID2_MOVBE    0x00400000
 #define        CPUID2_POPCNT   0x00800000
 #define        CPUID2_AESNI    0x02000000
+#define        CPUID2_HV       0x80000000
 
 /*
  * Important bits in the Thermal and Power Management flags

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

Modified: stable/8/sys/i386/include/specialreg.h
==============================================================================
--- stable/8/sys/i386/include/specialreg.h      Fri May 20 22:20:23 2011        
(r222149)
+++ stable/8/sys/i386/include/specialreg.h      Fri May 20 22:22:56 2011        
(r222150)
@@ -131,6 +131,7 @@
 #define        CPUID2_MOVBE    0x00400000
 #define        CPUID2_POPCNT   0x00800000
 #define        CPUID2_AESNI    0x02000000
+#define        CPUID2_HV       0x80000000
 
 /*
  * Important bits in the Thermal and Power Management flags
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to