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] xen: mask XSAVE in cpuid since we don't allowgu

To: Jan Beulich <jbeulich@xxxxxxxxxx>, Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] xen: mask XSAVE in cpuid since we don't allowguests to use it
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Mon, 09 Mar 2009 11:29:15 +0000
Cc: Boris Derzhavets <bderzhavets@xxxxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, "Marc - A. Dahlhaus \[ Administration | Westermann GmbH \]" <mad@xxxxxx>
Delivery-date: Mon, 09 Mar 2009 04:30:12 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <49B50AF9.76E4.0078.0@xxxxxxxxxx>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcmgqbNMftmpfAlCSpGFvH5tTInh0wAAJOJG
Thread-topic: [Xen-devel] [PATCH] xen: mask XSAVE in cpuid since we don't allowguests to use it
User-agent: Microsoft-Entourage/12.15.0.081119
On 09/03/2009 11:26, "Jan Beulich" <jbeulich@xxxxxxxxxx> wrote:

>>>> Jeremy Fitzhardinge <jeremy@xxxxxxxx> 08.03.09 06:31 >>>
>> Mask X86_FEATURE_XSAVE in cpuid leaf 1, ecx, as we don't allow guests to
>> use it (by setting cr4.OSXSAVE).
> 
> I actually disagree to this. The kernel should be dealing with the situation
> by inspecting the OSXSAVE bit in CPUID when running under Xen, since it's
> really Xen that's the 'OS' for that particular feature.
> 
> Then, once Keir gets willing to take Intel xsave patch(es), no further change
> is going to be needed here. And the same kernel will work (assuming it has
> no other dependencies) on older Xen not having this bit masked.

It seems reasonable to mask XSAVE for now though. I don't think it can
usefully be used without some Xen support.

 -- Keir



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

<Prev in Thread] Current Thread [Next in Thread>