aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/i387.h
diff options
context:
space:
mode:
authorKeir Fraser <keir@xen.org>2010-12-24 08:38:22 +0000
committerKeir Fraser <keir@xen.org>2010-12-24 08:38:22 +0000
commit96727f714845b5c2ea034860f3773e46612adc39 (patch)
tree9489c1aa56e0bfc5825dc560f4613983e9c9610d /xen/include/asm-x86/i387.h
parent40aca4eccbd7158b99e3270b662c0b8c0b2e7ee3 (diff)
downloadxen-96727f714845b5c2ea034860f3773e46612adc39.tar.gz
xen-96727f714845b5c2ea034860f3773e46612adc39.tar.bz2
xen-96727f714845b5c2ea034860f3773e46612adc39.zip
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@amd.com>
Diffstat (limited to 'xen/include/asm-x86/i387.h')
-rw-r--r--xen/include/asm-x86/i387.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/xen/include/asm-x86/i387.h b/xen/include/asm-x86/i387.h
index 471747c7c4..4cb67d482c 100644
--- a/xen/include/asm-x86/i387.h
+++ b/xen/include/asm-x86/i387.h
@@ -22,11 +22,12 @@ void xsave_init(void);
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)