> > > > > > > + else > > > > + best->ebx&= ~(bit(X86_FEATURE_SMEP)); > > > > > > Not needed - x86.c already masks unsupported features. > > > > Should KVM still support guest SMEP when host disables it thru nosmep? > > No. We treat nosmep as "no smep for the kernel and any guests". NX is > treated in the same way. Then we need to add logic to do_cpuid_ent to mask off leaf 7 features when host disables it. Thanks! -Xin -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html