]> git.ipfire.org Git - thirdparty/qemu.git/commit
target-i386: mmu: use pg_mode instead of HF_LMA_MASK
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 4 Nov 2021 13:45:20 +0000 (14:45 +0100)
committerMichael Roth <michael.roth@amd.com>
Tue, 14 Dec 2021 20:18:25 +0000 (14:18 -0600)
commitcddfaf96ab2a6772dd87998af699f91ca15facfd
treebe059dcc0f962ae73d1180abb2ea9e4f29a92450
parent43a457841f8c61dd4677ec018c3da4b0323ffb4b
target-i386: mmu: use pg_mode instead of HF_LMA_MASK

Correctly look up the paging mode of the hypervisor when it is using 64-bit
mode but the guest is not.

Fixes: 68746930ae ("target/i386: use mmu_translate for NPT walk", 2021-05-11)
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 93eae3583256896dd91a4c2ca38dcbb8d4051cff)
Signed-off-by: Michael Roth <michael.roth@amd.com>
target/i386/tcg/sysemu/excp_helper.c