kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: jdsw2002@yahoo.com
Cc: KVM List <kvm@vger.kernel.org>
Subject: Re: KVM  Guest detection
Date: Wed, 13 Aug 2008 13:59:30 -0500	[thread overview]
Message-ID: <48A32F12.1000602@codemonkey.ws> (raw)
In-Reply-To: <173499.50107.qm@web35806.mail.mud.yahoo.com>

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
>   


  parent reply	other threads:[~2008-08-13 19:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-13 17:57 KVM Guest detection jd
2008-08-13 18:40 ` David Mair
2008-08-13 18:59 ` Anthony Liguori [this message]
2008-08-13 21:05   ` jd
  -- strict thread matches above, loose matches on Subject: below --
2015-02-06 20:08 KVM Guest Detection Chris J Arges
2015-02-09 13:26 ` Paolo Bonzini
2015-02-09 14:37   ` Chris J Arges
2015-02-09 16:12     ` Paolo Bonzini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48A32F12.1000602@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --cc=jdsw2002@yahoo.com \
    --cc=kvm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).