From: Ewan Mellor Subject: Re: host CPU features/flags in xen API Date: Tue, 24 Apr 2007 00:47:36 +0100 Message-ID: <20070423234736.GB28964@leeni.uk.xensource.com> References: <20070423234106.GA17272@totally.trollied.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20070423234106.GA17272@totally.trollied.org.uk> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: John Levon Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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.