x86/xsaves: Use xsaves/xrstors to save and restore xsave area
authorFenghua Yu <fenghua.yu@intel.com>
Thu, 29 May 2014 18:12:36 +0000 (11:12 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Thu, 29 May 2014 21:31:21 +0000 (14:31 -0700)
commitf31a9f7c71691569359fa7fb8b0acaa44bce0324
treed645ef9b40bb233a177bcebf9be1cb9ef77823d6
parentb84e70552e5aad71a1c14536e6ffcfe7934b73e4
x86/xsaves: Use xsaves/xrstors to save and restore xsave area

If xsaves is eanbled, use xsaves/xrstors instrucitons to save and restore
xstate. xsaves and xrstors support compacted format, init optimization,
modified optimization, and supervisor states.

Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
Link: http://lkml.kernel.org/r/1401387164-43416-9-git-send-email-fenghua.yu@intel.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/include/asm/xsave.h