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 1/4] XSAVE/XRSTOR: Fix frozen states

To: Jan Beulich <JBeulich@xxxxxxxxxx>, Weidong Han <weidong.han@xxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH 1/4] XSAVE/XRSTOR: Fix frozen states
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Tue, 31 Aug 2010 07:59:33 +0100
Cc: Jeremy Fitzhardinge <jeremy@xxxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 31 Aug 2010 00:00:55 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4C7CC3C9020000780001309B@xxxxxxxxxxxxxxxxxx>
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: ActI2apEfE9k1TX/STaYuJmmv6ELlQAAGZqv
Thread-topic: [Xen-devel] [PATCH 1/4] XSAVE/XRSTOR: Fix frozen states
User-agent: Microsoft-Entourage/12.26.0.100708
On 31/08/2010 07:56, "Jan Beulich" <JBeulich@xxxxxxxxxx> wrote:

>> --- a/xen/arch/x86/i387.c Fri Aug 27 07:10:57 2010 -0400
>> +++ b/xen/arch/x86/i387.c Fri Aug 27 12:31:05 2010 -0400
>> @@ -35,7 +35,10 @@ void save_init_fpu(struct vcpu *v)
>> 
>>     if ( cpu_has_xsave && is_hvm_vcpu(v) )
>>     {
>> +        /* Save all supported feature states */
>> +        set_xcr0(xfeature_mask);
>>         xsave(v);
>> +        set_xcr0(v->arch.hvm_vcpu.xcr0);
>>     }
>>     else if ( cpu_has_fxsr )
>>     {
> 
> Now, I wonder what the (performance) price of this is (and will be with
> larger register sets in the future), and whether the general deferred
> saving scheme can't be made work here too.

Well, quite. Seems the cheap easy fix rather than the right fix, doesn't it.

 -- Keir



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

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