WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Shell test for pv vs hvm (vs dom0)

To: "dan.magenheimer@xxxxxxxxxx" <dan.magenheimer@xxxxxxxxxx>
Subject: Re: [Xen-devel] Shell test for pv vs hvm (vs dom0)
From: "pradeep singh rautela" <rautelap@xxxxxxxxx>
Date: Sat, 23 Feb 2008 11:06:48 +0530
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 22 Feb 2008 21:37:13 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=0v0upk8BQ5GCc4zVlCAQ2XoRYfxziTJpr7b/rKgNvR4=; b=HhE9sbsoLpUL+aIQsw+/GEGvv7/upYh490HVVOWq4XkhTqDgNZRAvGWc0dUWJ/dHvuk7cqQZ1qLVvAqKEKQNFUS138ZAXUvXWTIZovya6XBgCFqrxfk/9isM4+QUJ5h/gAtsBuDTkauaYlTkWV6geL3sAGrS0LhAKyGcSjzbFvM=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=f0+J0hFQzdfuZMRXgEz9/XLFUHijVf8sRNUZaJcEBsJ2J+vazW2HMpFLakWUj20TMlbNHHbpVK+aOJer+MXsBu8xDsdPLFVNaigI0A8bVmH0HrjnVSe67vICRH3nqJELrMbHjvLEY6iftibiunFXGnOso9QRv3WwrxKOPD4gPUM=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20080222153812765.00000003172@djm-pc>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <C3E4EC97.14451%Keir.Fraser@xxxxxxxxxxxx> <20080222153812765.00000003172@djm-pc>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
I don't know, but does libvirt API has any xen compatible methods for
your requirements?
Just guessing, please feel free to correct me.

Thanks,
        --Pradeep
On 23/02/2008, Dan Magenheimer <dan.magenheimer@xxxxxxxxxx> wrote:
> Thanks for pointing this tool out!  Looks useful.
>
>  Unfortunately, for it to be broadly useful, it would have
>  to ship with all distros as compiling it "on demand" on
>  the guest is often not an option.
>
>  Porting xen-detect to shell script doesn't look possible since
>  it uses inline assembly.
>
>  Any other ideas?
>
>
>  > -----Original Message-----
>  > From: Keir Fraser [mailto:Keir.Fraser@xxxxxxxxxxxx]
>  > Sent: Friday, February 22, 2008 2:18 PM
>  > To: dan.magenheimer@xxxxxxxxxx; xen-devel@xxxxxxxxxxxxxxxxxxx
>  > Subject: Re: [Xen-devel] Shell test for pv vs hvm (vs dom0)
>  >
>  >
>  > It's not a shell script, but tools/misc/xen-detect.c will do
>  > what you want
>  > on x86 platforms. To detect a Linux dom0 you can check for
>  > 'control_d' in
>  > /proc/xen/capabilities.
>  >
>  >  -- Keir
>  >
>  > On 22/2/08 20:58, "Dan Magenheimer"
>  > <dan.magenheimer@xxxxxxxxxx> wrote:
>  >
>  > > Is there an "officially sanctioned" method for a shell script to
>  > > test whether it is running on a native OS vs pv OS vs hvm OS
>  > > (and possibly also dom0 OS)?
>  > >
>  > > I know there are lots of different ways to determine this but
>  > > am wondering if any one will work across all (recent and future)
>  > > implementations of Xen and across multiple (at least Linux-based)
>  > > distros.
>  > >
>  > > If not, perhaps there could/should be a C/python tool in
>  > the Xen tree
>  > > that does this?
>  > >
>  > > ===================================
>  > > If Xen could save time in a bottle / then clocks wouldn't
>  > virtually skew /
>  > > It would save every tick / for VMs that aren't quick /
>  > > and Xen then would send them anew
>  > > (with apologies to the late great Jim Croce)
>  > > _______________________________________________
>  > > Xen-devel mailing list
>  > > Xen-devel@xxxxxxxxxxxxxxxxxxx
>  > > http://lists.xensource.com/xen-devel
>  >
>  >
>  >
>
>
>  _______________________________________________
>  Xen-devel mailing list
>  Xen-devel@xxxxxxxxxxxxxxxxxxx
>  http://lists.xensource.com/xen-devel
>


-- 
Pradeep Singh Rautela
http://eagain.wordpress.com
http://emptydomain.googlepages.com

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel