Skip to contentSkip to conversation

x86/tools: Expose SMAP to HVM guests

PATCH Superseded Feng Wu 2 participants 3 messages Apr 23, 2014

v2 of 9 Superseded Latest is v9 →

lore
Share & tools
lore

Feng Wu

author
#0 lore raw

PATCH v2 7/7 x86/tools: Expose SMAP to HVM guests

This patch exposes SMAP festure to HVM guests

---
 tools/libxc/xc_cpufeature.h | 1 +
 tools/libxc/xc_cpuid_x86.c  | 1 +
 2 files changed, 2 insertions(+)
tools/libxc/xc_cpufeature.h +1 -0
index c464e3a..37c69f7 100644
@@ -137,5 +137,6 @@
 #define X86_FEATURE_ERMS         9 /* Enhanced REP MOVSB/STOSB */
 #define X86_FEATURE_INVPCID     10 /* Invalidate Process Context ID */
 #define X86_FEATURE_RTM         11 /* Restricted Transactional Memory */
+#define X86_FEATURE_SMAP        20 /* Supervisor Mode Access Protection */
 
 #endif /* __LIBXC_CPUFEATURE_H */
tools/libxc/xc_cpuid_x86.c +1 -0
index bbbf9b8..953945f 100644
@@ -367,6 +367,7 @@ static void xc_cpuid_hvm_policy(
                         bitmaskof(X86_FEATURE_HLE)  |
                         bitmaskof(X86_FEATURE_AVX2) |
                         bitmaskof(X86_FEATURE_SMEP) |
+                        bitmaskof(X86_FEATURE_SMAP) |
                         bitmaskof(X86_FEATURE_BMI2) |
                         bitmaskof(X86_FEATURE_ERMS) |
                         bitmaskof(X86_FEATURE_INVPCID) |
Signature · 1 line
1.8.3.1
author
#2 lore raw
Quoted 13 lines

-----Original Message-----
From: Ian Campbell [mailto:[email protected]]
Sent: Wednesday, April 23, 2014 5:11 PM
To: Wu, Feng
Cc: [email protected]; [email protected]; [email protected]; Tian, Kevin; Dong, Eddie; Nakajima, Jun
Subject: Re: [PATCH v2 7/7] x86/tools: Expose SMAP to HVM guests

Quoted 2 lines · Feng Wu

This patch exposes SMAP festure to HVM guests

Quoted 7 lines
Quoted 1 line

You seem to have ignored
http://article.gmane.org/gmane.comp.emulators.xen.devel/195632 which contained a) a request to properly thread your patch series and b) and ack from me on this patch. Please collect the Acks when reposting so I don't waste my time thinking about a patch a second time.

Ian, sorry about that, I will add your Acks in the next post.

Quoted 3 lines

Ian.

Thanks,
Feng