|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] x86 xsave: Enable xsave_feature[62] (AMD
# 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 <=
|
|
|
|
|