]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: Add SMAP support when setting CR4
authorFeng Wu <feng.wu@intel.com>
Tue, 1 Apr 2014 09:46:34 +0000 (17:46 +0800)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 14 Apr 2014 20:50:34 +0000 (17:50 -0300)
commit948ed4a5f7f3a38f4cc89c54b6a9cc72e482aaea
tree16892fd16ce9e3d60c68b01f7bf11a8821eb3295
parentc6d9ce1826709d0cddca2185dcbc34bd81132e19
KVM: Add SMAP support when setting CR4

This patch adds SMAP handling logic when setting CR4 for guests

Thanks a lot to Paolo Bonzini for his suggestion to use the branchless
way to detect SMAP violation.

Signed-off-by: Feng Wu <feng.wu@intel.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/cpuid.h
arch/x86/kvm/mmu.c
arch/x86/kvm/mmu.h
arch/x86/kvm/paging_tmpl.h
arch/x86/kvm/x86.c