]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/i386: leave the A20 bit set in the final NPT walk
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 22 Dec 2023 08:48:35 +0000 (09:48 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Wed, 28 Feb 2024 18:19:05 +0000 (21:19 +0300)
commit1165d9601def8120c4b5c9f10b7fb28f28e77135
tree5f82ac5cd901bd239eb2f819652d710deb7cc8d7
parent91ad0d26e1e8e780a2b5c2d464c1f05ef2a7f7f5
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>
(cherry picked from commit b5a9de3259f4c791bde2faff086dd5737625e41e)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
target/i386/tcg/sysemu/excp_helper.c