mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-27 08:14:35 +08:00
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>
This commit is contained in:
parent
f84cbb0561
commit
24222c2fec
@ -170,7 +170,7 @@ walk:
|
|||||||
goto access_error;
|
goto access_error;
|
||||||
|
|
||||||
#if PTTYPE == 64
|
#if PTTYPE == 64
|
||||||
if (fetch_fault && is_nx(vcpu) && (pte & PT64_NX_MASK))
|
if (fetch_fault && (pte & PT64_NX_MASK))
|
||||||
goto access_error;
|
goto access_error;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user