x86/xsaves: Use xsaves/xrstors for context switch
authorFenghua Yu <fenghua.yu@intel.com>
Thu, 29 May 2014 18:12:37 +0000 (11:12 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Thu, 29 May 2014 21:31:25 +0000 (14:31 -0700)
commitf9de314b340f4816671f037e79ed01f685ac9787
tree13df1f8ba497a3bef4b272c529c942dfb593aa54
parentf31a9f7c71691569359fa7fb8b0acaa44bce0324
x86/xsaves: Use xsaves/xrstors for context switch

If xsaves is eanbled, use xsaves/xrstors for context switch to support
compacted format xsave area to occupy less memory and modified optimization
to improve saving performance.

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