x86/xsaves: Define a macro for handling xsave/xrstor instruction fault
authorFenghua Yu <fenghua.yu@intel.com>
Thu, 29 May 2014 18:12:35 +0000 (11:12 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Thu, 29 May 2014 21:31:18 +0000 (14:31 -0700)
commitb84e70552e5aad71a1c14536e6ffcfe7934b73e4
treeef484b9ecf190efba04b9d9d1e5efadef8dc7752
parent200b08a970b2ae764b670a326088ab8bc0a989cc
x86/xsaves: Define a macro for handling xsave/xrstor instruction fault

Define a macro to handle fault generated by xsave, xsaveopt, xsaves, xrstor,
and xrstors instructions. It is used in functions like xsave_state() etc.

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