Date: Fri, 20 May 2011 22:24:27 +0000 (UTC) From: Jung-uk Kim <jkim@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org Subject: svn commit: r222151 - in stable/7/sys: amd64/amd64 amd64/include i386/i386 i386/include Message-ID: <201105202224.p4KMOR0f003255@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105202224.p4KMOR0f003255>