KVM: Add instruction fetch checking when walking guest page table
authorYang, Wei Y <wei.y.yang@intel.com>
Fri, 3 Jun 2011 03:14:16 +0000 (11:14 +0800)
committerAvi Kivity <avi@redhat.com>
Tue, 12 Jul 2011 10:16:15 +0000 (13:16 +0300)
commite57d4a356ad3ac46881399c424cc6cf6dd16359d
treec1b903ecb1a70905510f635adfa74cf582334a03
parent611c120f7486a19e7df2225f875a52ef0b599ae8
KVM: Add instruction fetch checking when walking guest page table

This patch adds instruction fetch checking when walking guest page table,
to implement SMEP when emulating instead of executing natively.

Signed-off-by: Yang, Wei <wei.y.yang@intel.com>
Signed-off-by: Shan, Haitao <haitao.shan@intel.com>
Signed-off-by: Li, Xin <xin.li@intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/paging_tmpl.h