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

[Xen-devel] Re: [PATCH 3/5] xl: implement parsing of cpuid parameter and

To: Andre Przywara <andre.przywara@xxxxxxx>
Subject: [Xen-devel] Re: [PATCH 3/5] xl: implement parsing of cpuid parameter and translate to Xen interface
From: Ian Campbell <Ian.Campbell@xxxxxxxxxxxxx>
Date: Thu, 16 Sep 2010 16:38:12 +0100
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, Keir Fraser <Keir.Fraser@xxxxxxxxxxxxx>, Stefano Stabellini <Stefano.Stabellini@xxxxxxxxxxxxx>
Delivery-date: Thu, 16 Sep 2010 08:41:52 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4C9216CB.6070506@xxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: Citrix Systems, Inc.
References: <4C9216CB.6070506@xxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Thu, 2010-09-16 at 14:08 +0100, Andre Przywara wrote:
> Parses a string enumerating cpuid flags and their behavior.
> The syntax is: cpuid = "host,<flagname>=[01xks],..."
> Supports:
> 0: clear this flag
> 1: set this flag
> x: don't care, use the default handling
> k: use the host value
> s: as k, but keep stable across migrations
> 
> Instead of the bits there can also be numbers passed (hex or dec),
> like: family=0x10,model=4

Isn't this ambiguous?

0x10 could be a hex number (i.e. 16 decimal) but it could be "(0) clear,
(x) don't care, (1) set, (0) clear". (i.e. either 2 or 6 depending on
the eventual value for the don't care)

Ian.


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