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-by:

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

2014-03-27 Thread Wu, Feng
-Original Message- From: kvm-ow...@vger.kernel.org [mailto:kvm-ow...@vger.kernel.org] On Behalf Of Jan Kiszka Sent: Friday, March 28, 2014 12:15 AM To: Wu, Feng; pbonz...@redhat.com; g...@redhat.com; h...@zytor.com; kvm@vger.kernel.org Subject: Re: [PATCH 4/4] KVM: Disable SMAP