From owner-svn-src-head@FreeBSD.ORG Thu Apr 28 22:23:39 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B3C81106566C; Thu, 28 Apr 2011 22:23:39 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 892738FC0C; Thu, 28 Apr 2011 22:23:39 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p3SMNdnt068708; Thu, 28 Apr 2011 22:23:39 GMT (envelope-from jkim@svn.freebsd.org) Received: (from jkim@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p3SMNdeJ068703; Thu, 28 Apr 2011 22:23:39 GMT (envelope-from jkim@svn.freebsd.org) Message-Id: <201104282223.p3SMNdeJ068703@svn.freebsd.org> From: Jung-uk Kim Date: Thu, 28 Apr 2011 22:23:39 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r221188 - in head/sys: amd64/amd64 amd64/include i386/i386 i386/include X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Apr 2011 22:23:39 -0000 Author: jkim Date: Thu Apr 28 22:23:39 2011 New Revision: 221188 URL: http://svn.freebsd.org/changeset/base/221188 Log: Define "Hypervisor Present" bit. This bit is used by several hypervisors to identify CPUs running under emulation. Currently QEMU-KVM, Xen-HVM, VMware, and MS Hyper-V are known to set this bit. MFC after: 3 days Modified: head/sys/amd64/amd64/identcpu.c head/sys/amd64/include/specialreg.h head/sys/i386/i386/identcpu.c head/sys/i386/include/specialreg.h Modified: head/sys/amd64/amd64/identcpu.c ============================================================================== --- head/sys/amd64/amd64/identcpu.c Thu Apr 28 22:21:53 2011 (r221187) +++ head/sys/amd64/amd64/identcpu.c Thu Apr 28 22:23:39 2011 (r221188) @@ -296,7 +296,7 @@ printcpuinfo(void) "\035" "\036" "\037" - "\040" + "\040HV" /* Hypervisor */ ); } Modified: head/sys/amd64/include/specialreg.h ============================================================================== --- head/sys/amd64/include/specialreg.h Thu Apr 28 22:21:53 2011 (r221187) +++ head/sys/amd64/include/specialreg.h Thu Apr 28 22:23:39 2011 (r221188) @@ -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: head/sys/i386/i386/identcpu.c ============================================================================== --- head/sys/i386/i386/identcpu.c Thu Apr 28 22:21:53 2011 (r221187) +++ head/sys/i386/i386/identcpu.c Thu Apr 28 22:23:39 2011 (r221188) @@ -773,7 +773,7 @@ printcpuinfo(void) "\035" "\036" "\037" - "\040" + "\040HV" /* Hypervisor */ ); } Modified: head/sys/i386/include/specialreg.h ============================================================================== --- head/sys/i386/include/specialreg.h Thu Apr 28 22:21:53 2011 (r221187) +++ head/sys/i386/include/specialreg.h Thu Apr 28 22:23:39 2011 (r221188) @@ -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