From: Dan Magenheimer Subject: RE: Re: [RFC] draft tsc_mode patch (to replace tsc_native) Date: Fri, 13 Nov 2009 07:03:25 -0800 (PST) Message-ID: <6314d2a2-2eb2-4ce7-804f-a12e2c16d678@default> References: Mime-Version: 1.0 Content-Type: text/plain; charset=Windows-1252 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser , "Xen-Devel (E-mail)" List-Id: xen-devel@lists.xenproject.org > >> This isn't done yet, but contains the core code for > >> implementing the mechanism I've been proposing for > >> handling "tsc_mode" (to replace tsc_native/vtsc), > >> so I thought I'd ask for some feedback hopefully before > >> reviewers leave for Xen Summit Asia. > >=20 > > Another timer_mode-alike where the users have to deal with=20 > magic numbers and > > only the lucky hypervisor developer gets to use meaningful=20 > names for the > > members of the enumeration? >=20 > By which I mean: it would be nice if xm would convert=20 > meaningful strings to > numbers. Not that strings should be passed through xend, or=20 > at the hypercall > interface. >=20 > -- Keir Yeah, it would be nice if tsc_mode could accept either a number or a word, but if it is a missssspelled word, I'd hope that domain creation would fail rather than proceed with the default. Such python magic is beyond me so I hope it won't stand in the way of acceptance of the patch, as (especially if the word version is optional) someone else could make the change later.... I'd propose 0=3D=3Ddefault, 1=3D=3Demulate, 2=3D=3Dnative, 3=3D=3Dpvrdtscp (and I've missssspelled that myself more than once!) In any case, any other comments, or does it look reasonable to proceed and finish? Thanks, Dan