diff options
author | Xiao Guangrong <xiaoguangrong@cn.fujitsu.com> | 2010-04-06 18:31:13 +0800 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-05-17 12:17:30 +0300 |
commit | 24222c2fec75df30d56d1e2014d45d2559c94f1a (patch) | |
tree | 6f2ffd61186f6c5809c0ea93ad7e9d01b3e0b749 /arch/x86/kvm/paging_tmpl.h | |
parent | f84cbb0561d7cefb5fc050ee99d8c82ec9ce883d (diff) |
KVM: MMU: remove unnecessary NX check in walk_addr
After is_rsvd_bits_set() checks, EFER.NXE must be enabled if NX bit is seted
Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/x86/kvm/paging_tmpl.h')
-rw-r--r-- | arch/x86/kvm/paging_tmpl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/paging_tmpl.h b/arch/x86/kvm/paging_tmpl.h index 067797a7276..d9dea288e51 100644 --- a/arch/x86/kvm/paging_tmpl.h +++ b/arch/x86/kvm/paging_tmpl.h @@ -170,7 +170,7 @@ walk: goto access_error; #if PTTYPE == 64 - if (fetch_fault && is_nx(vcpu) && (pte & PT64_NX_MASK)) + if (fetch_fault && (pte & PT64_NX_MASK)) goto access_error; #endif |