diff options
author | Xiao Guangrong <xiaoguangrong@cn.fujitsu.com> | 2010-04-06 12:31:13 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-05-17 11:17:30 +0200 |
commit | 24222c2fec75df30d56d1e2014d45d2559c94f1a (patch) | |
tree | 6f2ffd61186f6c5809c0ea93ad7e9d01b3e0b749 | |
parent | KVM: MMU: remove unused field (diff) | |
download | linux-24222c2fec75df30d56d1e2014d45d2559c94f1a.tar.xz linux-24222c2fec75df30d56d1e2014d45d2559c94f1a.zip |
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>
-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 067797a72768..d9dea288e51d 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 |