OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1e746b
)
KVM: expose SMAP feature to guest
author
Feng Wu
<feng.wu@intel.com>
Tue, 1 Apr 2014 09:46:36 +0000
(17:46 +0800)
committer
Marcelo Tosatti
<mtosatti@redhat.com>
Mon, 14 Apr 2014 20:50:37 +0000
(17:50 -0300)
This patch exposes SMAP feature to guest
Signed-off-by: Feng Wu <feng.wu@intel.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/cpuid.c
patch
|
blob
|
history
diff --git
a/arch/x86/kvm/cpuid.c
b/arch/x86/kvm/cpuid.c
index
bea6067
..
f47a104
100644
(file)
--- a/
arch/x86/kvm/cpuid.c
+++ b/
arch/x86/kvm/cpuid.c
@@
-308,7
+308,7
@@
static inline int __do_cpuid_ent(struct kvm_cpuid_entry2 *entry, u32 function,
const u32 kvm_supported_word9_x86_features =
F(FSGSBASE) | F(BMI1) | F(HLE) | F(AVX2) | F(SMEP) |
F(BMI2) | F(ERMS) | f_invpcid | F(RTM) | f_mpx | F(RDSEED) |
- F(ADX);
+ F(ADX)
| F(SMAP)
;
/* all calls to cpuid_count() should be made on the same cpu */
get_cpu();