RE: [PATCH 4/4] KVM: Disable SMAP for guests in EPT realmode and EPT unpaging mode

2014-03-27 Thread Wu, Feng
TCH 4/4] KVM: Disable SMAP for guests in EPT realmode and > EPT unpaging mode > > On 2014-03-27 13:25, Feng Wu wrote: > > 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

Re: [PATCH 4/4] KVM: Disable SMAP for guests in EPT realmode and EPT unpaging mode

2014-03-27 Thread Jan Kiszka
On 2014-03-27 13:25, Feng Wu wrote: > 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-

[PATCH 4/4] KVM: Disable SMAP for guests in EPT realmode and EPT unpaging mode

2014-03-26 Thread Feng Wu
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 --- arch/x86/kvm/vmx.c | 10 ++