KVM: MMU: Fix SMEP failure during fetch
authorYang, Wei Y <wei.y.yang@intel.com>
Tue, 9 Aug 2011 10:14:01 +0000 (18:14 +0800)
committerAvi Kivity <avi@redhat.com>
Sun, 25 Sep 2011 16:18:02 +0000 (19:18 +0300)
commitcd46868c7f088baaaba8f81251c5929f6002d050
tree03cfc435d3d88e0546709bc69083f42cba7cd677
parente4e517b4be019787ada4cbbce2f04570c21b0cbd
KVM: MMU: Fix SMEP failure during fetch

This patch fix kvm-unit-tests hanging and incorrect PT_ACCESSED_MASK
bit set in the case of SMEP fault.  The code updated 'eperm' after
the variable was checked.

Signed-off-by: Yang, Wei <wei.y.yang@intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/paging_tmpl.h