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-changelog

[Xen-changelog] [xen-unstable] x86: Fix PV guest xsave support.

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] x86: Fix PV guest xsave support.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 08 Nov 2010 21:25:13 -0800
Delivery-date: Mon, 08 Nov 2010 21:25:37 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir@xxxxxxx>
# Date 1289230861 0
# Node ID eceb22a210e7f1e460092c1cfa2e544088c30314
# Parent  5505388c394d89140f85311e2d60fa77a85d49d3
x86: Fix PV guest xsave support.

Signed-off-by: Shan Haitao <haitao.shan@xxxxxxxxx>
---
 xen/arch/x86/domain.c |    2 +-
 xen/arch/x86/i387.c   |    1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff -r 5505388c394d -r eceb22a210e7 xen/arch/x86/domain.c
--- a/xen/arch/x86/domain.c     Mon Nov 08 15:32:55 2010 +0000
+++ b/xen/arch/x86/domain.c     Mon Nov 08 15:41:01 2010 +0000
@@ -395,7 +395,7 @@ int vcpu_initialise(struct vcpu *v)
     rc = 0;
     if ( is_pv_32on64_vcpu(v) )
         rc = setup_compat_l4(v);
-    if ( !rc )
+    if ( rc )
         xfree(v->arch.xsave_area);
 
     return rc;
diff -r 5505388c394d -r eceb22a210e7 xen/arch/x86/i387.c
--- a/xen/arch/x86/i387.c       Mon Nov 08 15:32:55 2010 +0000
+++ b/xen/arch/x86/i387.c       Mon Nov 08 15:41:01 2010 +0000
@@ -209,6 +209,7 @@ void xsave_init_save_area(void *save_are
     memset(save_area, 0, xsave_cntxt_size);
 
     ((u32 *)save_area)[6] = 0x1f80;  /* MXCSR */
+    *(uint64_t *)(save_area + 512) = XSTATE_FP_SSE;  /* XSETBV */
 }
 
 /*

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] x86: Fix PV guest xsave support., Xen patchbot-unstable <=