KVM: Disable SMAP for guests in EPT realmode and EPT unpaging mode
commit e1e746b3 upstream. SMAP is disabled if CPU is in non-paging mode in hardware. However KVM always uses paging mode to emulate guest non-paging mode with TDP. To emulate this behavior, SMAP needs to be manually disabled when guest switches to non-paging mode. Signed-off-by: Feng Wu <feng.wu@intel.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> [ kamal: 3.13-stable prereq for 656ec4a4 KVM: VMX: fix SMEP and SMAP without EPT ] Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Showing
Please register or sign in to comment