From mboxrd@z Thu Jan 1 00:00:00 1970 From: jd Subject: Re: KVM Guest detection Date: Wed, 13 Aug 2008 14:05:11 -0700 (PDT) Message-ID: <800147.45092.qm@web35804.mail.mud.yahoo.com> References: <48A32F12.1000602@codemonkey.ws> Reply-To: jdsw2002@yahoo.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: KVM List To: Anthony Liguori Return-path: Received: from web35804.mail.mud.yahoo.com ([66.163.179.173]:25609 "HELO web35804.mail.mud.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751855AbYHMVFM (ORCPT ); Wed, 13 Aug 2008 17:05:12 -0400 In-Reply-To: <48A32F12.1000602@codemonkey.ws> Sender: kvm-owner@vger.kernel.org List-ID: Thanks. Good to know that most hypervisors are using this mechanism. /Jd --- On Wed, 8/13/08, Anthony Liguori wrote: > From: Anthony Liguori > Subject: Re: KVM Guest detection > To: jdsw2002@yahoo.com > Cc: "KVM List" > Date: Wednesday, August 13, 2008, 11:59 AM > jd wrote: > > Hi > > > > Is there a way to detect if a particular machine is a > VM running on KVM hypervisor or not. i.e from within a guest > can one figure out if it is running on top of a hypervisor > and not physical machine ? [For both Linux guests and > Windows guests ] > > > > The preferred way of doing this is checking CPUID leaf > 0x4000 0000 for > the signature "KVMKVMKVM". > > Most hypervisors (KVM, Xen, VMware, and Hyper-V) are > adopting this as > the preferred detection mechanism. > > Regards, > > Anthony Liguori > > > /Jd > > > > > > > > > > -- > > To unsubscribe from this list: send the line > "unsubscribe kvm" in > > the body of a message to majordomo@vger.kernel.org > > More majordomo info at > http://vger.kernel.org/majordomo-info.html > > > > -- > To unsubscribe from this list: send the line > "unsubscribe kvm" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at > http://vger.kernel.org/majordomo-info.html