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] [PATCH 01/13] Nested Virtualization: tools

To: Christoph Egger <Christoph.Egger@xxxxxxx>
Subject: Re: [Xen-devel] [PATCH 01/13] Nested Virtualization: tools
From: George Dunlap <dunlapg@xxxxxxxxx>
Date: Tue, 16 Nov 2010 12:52:32 +0000
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Delivery-date: Tue, 16 Nov 2010 04:53:33 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=GUDG6PWwSwbDlsaIVQIq6dxNnmO8JzmhkvgQvDEN97Y=; b=UwD1fMH3s/Hb/U7T+9eWwZKKPYWegT/Vz5d7KgqAAs48hHYMIV0uoJGj7yf+cK0Bzk 7gIrLtlWMDpOfpSdgW2FcQY5n+OX4CY4jkDdWUupd/ldE08BJm+iqjzj2orFiaQQC/os zEIp+tmGQj+zNVX56iTRNh6dZ44g8updtTpuE=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=DnTCB5XrnubZ+1xBS7KjfdVmAYTmbhFV/67TNWoV9NAa87bLZbrQerYF7G3PgudNLU wG4Ft/ZQ+vS1RgBPwd9cPj+EZdxRtnR5XsrVhNfVdwv+gFRULDx1tpq20DKVf0D/eVKs X3vDtjeaDKYHCuEHk2x7uw7balZcbqbmU88hA=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <201011161252.51591.Christoph.Egger@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>
References: <201011121940.26108.Christoph.Egger@xxxxxxx> <20101116113706.GA24801@xxxxxxxxxxxxxxxxxxxxxxx> <201011161252.51591.Christoph.Egger@xxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Tue, Nov 16, 2010 at 11:52 AM, Christoph Egger
<Christoph.Egger@xxxxxxx> wrote:
> On Tuesday 16 November 2010 12:37:06 Tim Deegan wrote:
>> Hi,
>>
>> At 18:40 +0000 on 12 Nov (1289587225), Christoph Egger wrote:
>> > +#define SVM_FEATURE_NPT            0x00000001
>> > +#define SVM_FEATURE_LBRV           0x00000002
>> > +#define SVM_FEATURE_SVML           0x00000004
>> > +#define SVM_FEATURE_NRIPS          0x00000008
>> > +#define SVM_FEATURE_PAUSEFILTER    0x00000400
>> > +
>> > +        /* Only passthrough SVM features which are implemented */
>> > +        edx = 0;
>> > +        if (regs[3] & SVM_FEATURE_NPT)
>> > +            edx |= SVM_FEATURE_NPT;
>> > +        if (regs[3] & SVM_FEATURE_LBRV)
>> > +            edx |= SVM_FEATURE_LBRV;
>> > +        if (regs[3] & SVM_FEATURE_NRIPS)
>> > +            edx |= SVM_FEATURE_NRIPS;
>> > +        if (regs[3] & SVM_FEATURE_PAUSEFILTER)
>> > +            edx |= SVM_FEATURE_PAUSEFILTER;
>> > +
>> > +        regs[3] = edx;
>>
>> Minor niggle - why isn't this just a single &= operation?
>
> The l1 guest shouldn't see upcoming svm features yet.
> They will be added here when support for them is implemented.

I think Tim is suggesting this:
 regs[3] &= SVM_FEATURE_NPT|SVM_FEATURE_LBRV|...

Which will have the same effect.
 -George

>
> Christoph
>
>
> --
> ---to satisfy European Law for business letters:
> Advanced Micro Devices GmbH
> Einsteinring 24, 85609 Dornach b. Muenchen
> Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd
> Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
> Registergericht Muenchen, HRB Nr. 43632
>
>
> _______________________________________________
> 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