Skip to content

Commit

Permalink
KVM: MMU: remove unnecessary NX check in walk_addr
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Xiao Guangrong authored and Avi Kivity committed May 17, 2010
1 parent f84cbb0 commit 24222c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kvm/paging_tmpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ static int FNAME(walk_addr)(struct guest_walker *walker,
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

Expand Down

0 comments on commit 24222c2

Please sign in to comment.