[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [Patch 2/4] Refining Xsave/Xrestore support


  • To: Jan Beulich <JBeulich@xxxxxxxxxx>
  • From: Haitao Shan <maillists.shan@xxxxxxxxx>
  • Date: Thu, 28 Oct 2010 12:58:17 +0800
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, Weidong Han <weidong.han@xxxxxxxxx>, Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
  • Delivery-date: Wed, 27 Oct 2010 22:01:24 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=q2/RCxe7ZN14OuqK0nZaKkVwgbWtM7aUXFPTQjaxK5gxYwgSNqDuGivVpDI/PJSISB I3iJTr3JaI1Ln4OWuDijkkkZ01UmDzeCRgyr6thXcEpXIHP3sSUR3qKz6PTE0rwpD5zj FfAjpuGNaNfJYtRx7gRRcoTvHfL2DCwDY/wAk=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Hi, Jan,

This is the updated patch#2. Thanks.

Shan Haitao

2010/10/27 Jan Beulich <JBeulich@xxxxxxxxxx>:
>>@@ -1367,6 +1384,8 @@ static void __context_switch(void)
>>         memcpy(stack_regs,
>>                &n->arch.guest_context.user_regs,
>>                CTXT_SWITCH_STACK_BYTES);
>>+        if ( cpu_has_xsave )
>>+            set_xcr0(n->arch.xcr0);
>
> How slow is a write to xcr0? I.e. is it worth checking whether
> current xcr0 matches the to be written value?
>
> Jan
>
>

Attachment: pv-xsave.patch
Description: Binary data

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.