Commit 3dc769ab authored by Yang, Wei Y's avatar Yang, Wei Y Committed by Marcelo Tosatti
Browse files

kvm: Enable CPU SMEP feature



This patchset enables a new CPU feature SMEP (Supervisor Mode Execution
Protection) in QEMU-KVM. SMEP prevents kernel from executing code in application.
Updated Intel SDM describes this CPU feature. The document will be published soon.

SMEP is identified by CPUID leaf 7 EBX[7], which is 0 before. Get the right value by query KVM kernel module, so that guest can get SMEP through CPUID.

 Signed-off-by: default avatarYang, Wei <wei.y.yang@intel.com>
 Singed-off-by: default avatarShan, Haitao <haitao.shan@intel.com>
 Singed-off-by: default avatarLi, Xin <xin.li@intel.com>

Signed-off-by: default avatarMarcelo Tosatti <mtosatti@redhat.com>
parent 2d5f20b5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment