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 2/4] Refining Xsave/Xrestore support

To: Jan Beulich <JBeulich@xxxxxxxxxx>
Subject: Re: [Xen-devel] [Patch 2/4] Refining Xsave/Xrestore support
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
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=J/lF6xfih/crLx6QOa3JbfCRFLry/a25bwBhMR+lOeg=; b=DOyrvAra7tL8C0hVU5hRr8jAhLwPGktKD41elelbz5XGofsoGj8+KkbrXRWXdrw36E fyMfOvHaiIerIF4ggHn3VOYV1ZHgWcyyqful0v9Exhap/Ra/RCSka1H6RkHVd9eZVR/c MBM541fertPscXFuCeL7WXexoCSkIaFOMnyak=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4CC81AD8020000780001F6BE@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>
References: <AANLkTimWUuyHvZ06=2cRBhvw2fcfMzA5QAuJZJso7=gY@xxxxxxxxxxxxxx> <4CC81AD8020000780001F6BE@xxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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