Skip to content

Commit

Permalink
KVM, pkeys: add pkeys support for xsave state
Browse files Browse the repository at this point in the history
This patch adds pkeys support for xsave state.

Signed-off-by: Huaitong Han <huaitong.han@intel.com>
Reviewed-by: Xiao Guangrong <guangrong.xiao@linux.intel.com>
Signed-off-by: Xiao Guangrong <guangrong.xiao@linux.intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
Huaitong Han authored and Paolo Bonzini committed Mar 22, 2016
1 parent ddba262 commit 17a511f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/x86/kvm/x86.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ bool kvm_vector_hashing_enabled(void);

#define KVM_SUPPORTED_XCR0 (XFEATURE_MASK_FP | XFEATURE_MASK_SSE \
| XFEATURE_MASK_YMM | XFEATURE_MASK_BNDREGS \
| XFEATURE_MASK_BNDCSR | XFEATURE_MASK_AVX512)
| XFEATURE_MASK_BNDCSR | XFEATURE_MASK_AVX512 \
| XFEATURE_MASK_PKRU)
extern u64 host_xcr0;

extern u64 kvm_supported_xcr0(void);
Expand Down

0 comments on commit 17a511f

Please sign in to comment.