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] host CPU features/flags in xen API

To: John Levon <levon@xxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] host CPU features/flags in xen API
From: Ewan Mellor <ewan@xxxxxxxxxxxxx>
Date: Tue, 24 Apr 2007 00:47:36 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 23 Apr 2007 16:46:14 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20070423234106.GA17272@xxxxxxxxxxxxxxxxxxxxxxx>
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: <20070423234106.GA17272@xxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.13 (2006-08-11)
On Tue, Apr 24, 2007 at 12:41:06AM +0100, John Levon wrote:

> 
> The functions to return 'features' and 'flags' in the Xen API seem a
> little under-specified, in particular there's no indication of the
> format of the string returned. Presumably at some point something is
> going to use them. At which point the user has an interesting problem if
> it's relying on something there and it's not present.
> 
> Either this return value needs to be explicitly labelled as not reliable
> or something needs to be defined as 'architectural' for Xen API.

Yes, these are 'architectural'.  For x86, host_cpu.features is the same
format as you get from xm info's hw_caps field, and host_cpu.flags is a
readable version of that (we get it from /proc/cpuinfo).  Other
architectures are free to define appropriate equivalents.

Ewan.

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