target/i386: leave the A20 bit set in the final NPT walk
commitb5a9de3259f4c791bde2faff086dd5737625e41e
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 22 Dec 2023 08:48:35 +0000 (22 09:48 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 27 Feb 2024 23:23:39 +0000 (28 00:23 +0100)
tree6d339ae782c555d2edca66665df9108111c850d9
parenta28fe7dc1939333c81b895cdced81c69eb7c5ad0
target/i386: leave the A20 bit set in the final NPT walk

The A20 mask is only applied to the final memory access.  Nested
page tables are always walked with the raw guest-physical address.

Unlike the previous patch, in this one the masking must be kept, but
it was done too early.

Cc: qemu-stable@nongnu.org
Fixes: 4a1e9d4d11c ("target/i386: Use atomic operations for pte updates", 2022-10-18)
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/tcg/sysemu/excp_helper.c