]> git.proxmox.com Git - mirror_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)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 8 Nov 2021 07:51:14 +0000 (08:51 +0100)
commit93eae3583256896dd91a4c2ca38dcbb8d4051cff
tree5e3693bf709ad0fe8276d0715609f625b24d6b82
parent63ed851de474b1e2458cb9b4ba6e02a88f72c25c
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>
target/i386/tcg/sysemu/excp_helper.c