diff options
author | Wei Gang <gang.wei@intel.com> | 2011-02-21 09:11:57 +0000 |
---|---|---|
committer | Wei Gang <gang.wei@intel.com> | 2011-02-21 09:11:57 +0000 |
commit | 3af87a7ece7f27a537a006196873ca9fda696616 (patch) | |
tree | 5fd8c0199526ccb8651a76da2b334223b6e41b7d /xen/arch/x86/domctl.c | |
parent | 0dba10b8e37f3f63ed9f5ed449d9e9e0c8c9f1aa (diff) | |
download | xen-3af87a7ece7f27a537a006196873ca9fda696616.tar.gz xen-3af87a7ece7f27a537a006196873ca9fda696616.tar.bz2 xen-3af87a7ece7f27a537a006196873ca9fda696616.zip |
x86: add strictly sanity check for XSAVE/XRSTOR
Replace most checks on cpu_has_xsave with checks on new fn
xsave_enabled(), do additional sanity checks in the new fn.
Signed-off-by: Wei Gang <gang.wei@intel.com>
Signed-off-by: Keir Fraser <keir.xen@gmail.com>
Diffstat (limited to 'xen/arch/x86/domctl.c')
-rw-r--r-- | xen/arch/x86/domctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/x86/domctl.c b/xen/arch/x86/domctl.c index 6fb5504d78..3f91f7ac2e 100644 --- a/xen/arch/x86/domctl.c +++ b/xen/arch/x86/domctl.c @@ -1603,7 +1603,7 @@ void arch_get_info_guest(struct vcpu *v, vcpu_guest_context_u c) #endif /* Fill legacy context from xsave area first */ - if ( cpu_has_xsave ) + if ( xsave_enabled(v) ) memcpy(v->arch.xsave_area, &v->arch.guest_context.fpu_ctxt, sizeof(v->arch.guest_context.fpu_ctxt)); |