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 xsave: Enable xsave_feature[62] (AMD

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] x86 xsave: Enable xsave_feature[62] (AMD Lightweight Profiling)
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 24 Dec 2010 15:47:32 -0800
Delivery-date: Fri, 24 Dec 2010 15:53:54 -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 1293179902 0
# Node ID 26e7e6c6ff7f9775fb77f58ddc0454ef08a1a908
# Parent  a71729704d4b53d6802dc7582328ca8ebbc5a855
x86 xsave: Enable xsave_feature[62] (AMD Lightweight Profiling)

The spec of LWP is available at
http://developer.amd.com/cpu/lwp/Pages/default.aspx.

Signed-off-by: Wei Huang <wei.huang2@xxxxxxx>
---
 xen/include/asm-x86/i387.h |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff -r a71729704d4b -r 26e7e6c6ff7f xen/include/asm-x86/i387.h
--- a/xen/include/asm-x86/i387.h        Fri Dec 24 08:37:34 2010 +0000
+++ b/xen/include/asm-x86/i387.h        Fri Dec 24 08:38:22 2010 +0000
@@ -22,11 +22,12 @@ int xsave_alloc_save_area(struct vcpu *v
 int xsave_alloc_save_area(struct vcpu *v);
 void xsave_free_save_area(struct vcpu *v);
 
-#define XSTATE_FP       (1 << 0)
-#define XSTATE_SSE      (1 << 1)
-#define XSTATE_YMM      (1 << 2)
+#define XSTATE_FP       (1ULL << 0)
+#define XSTATE_SSE      (1ULL << 1)
+#define XSTATE_YMM      (1ULL << 2)
+#define XSTATE_LWP      (1ULL << 62) /* AMD lightweight profiling */
 #define XSTATE_FP_SSE   (XSTATE_FP | XSTATE_SSE)
-#define XCNTXT_MASK     (XSTATE_FP | XSTATE_SSE | XSTATE_YMM)
+#define XCNTXT_MASK     (XSTATE_FP | XSTATE_SSE | XSTATE_YMM | XSTATE_LWP)
 #define XSTATE_YMM_OFFSET  (512 + 64)
 #define XSTATE_YMM_SIZE    256
 #define XSAVEOPT        (1 << 0)

_______________________________________________
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 xsave: Enable xsave_feature[62] (AMD Lightweight Profiling), Xen patchbot-unstable <=