From: Michal Novotny <minovotn@redhat.com>
To: xen-devel@lists.xensource.com
Subject: Re: How to detect if a machine is a Virtual machine ??
Date: Wed, 23 Dec 2009 10:35:54 +0100 [thread overview]
Message-ID: <4B31E47A.40604@redhat.com> (raw)
In-Reply-To: <4B31E418.1050703@redhat.com>
On 12/23/2009 10:34 AM, Michal Novotny wrote:
> On 12/23/2009 10:16 AM, John Haxby wrote:
>> On 22/12/09 10:37, Michal Novotny wrote:
>>> Hi Sachin,
>>> the tool is not in the virtual machine. This is the tool that's in
>>> dom0. Since there is a source code for this one you could scp it to
>>> the guest, compile and run inside the guest environment. There is no
>>> need to provide a guest with this tool by default and in fact this
>>> is really impossible so it's better to scp it to the guest and
>>> compile there.
>>
>> It's also worth pointing out that the underlying test for xen in this
>> program executes a particular instruction to find the information
>> about its environment. What that means is that it's possible to
>> write a version of ./tools/misc/xen-detect.c that will work in any
>> guest machine OS.
> But one more point, if you want to know whether XEN_PV is returned for
> dom0 PV guest or domU (since it's the same for both) you can try to
> look for /proc/xen/privcmd. This one is available only in dom0 because
> privileged commands are for privileged domain (domain-0) only...
Oh, sorry, I did mean for domU PV guest or dom0, of course...
Michal
next prev parent reply other threads:[~2009-12-23 9:35 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-21 18:00 How to detect if a machine is a Virtual machine ?? Sachin Goel
2009-12-22 10:37 ` Michal Novotny
2009-12-23 9:16 ` John Haxby
2009-12-23 9:30 ` Michal Novotny
2009-12-23 9:34 ` Michal Novotny
2009-12-23 9:35 ` Michal Novotny [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-12-23 20:39 Sachin Goel
2010-01-04 6:32 ` Michal Novotny
2009-12-21 16:53 Sachin Goel
2009-12-21 16:56 ` Konrad Rzeszutek Wilk
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=4B31E47A.40604@redhat.com \
--to=minovotn@redhat.com \
--cc=xen-devel@lists.xensource.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.