Skip to content

Commit 24222c2

Browse files
Xiao Guangrongavikivity
authored andcommitted
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 <[email protected]> Signed-off-by: Marcelo Tosatti <[email protected]>
1 parent f84cbb0 commit 24222c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/kvm/paging_tmpl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ static int FNAME(walk_addr)(struct guest_walker *walker,
170170
goto access_error;
171171

172172
#if PTTYPE == 64
173-
if (fetch_fault && is_nx(vcpu) && (pte & PT64_NX_MASK))
173+
if (fetch_fault && (pte & PT64_NX_MASK))
174174
goto access_error;
175175
#endif
176176

0 commit comments

Comments
 (0)