OSDN Git Service

target/i386: use mmu_translate for NPT walk
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 18 Mar 2021 14:31:47 +0000 (10:31 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 11 May 2021 08:11:14 +0000 (04:11 -0400)
commit68746930ae591eca3d6dd490012b59e85194ede4
tree54aa1a385313d8a3e325ee463d3db9a9195e6d80
parent33ce155c6779baf3a01b22782632bda0cec352fb
target/i386: use mmu_translate for NPT walk

Unify the duplicate code between get_hphys and mmu_translate, by simply
making get_hphys call mmu_translate.  This also fixes the support for
5-level nested page tables.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/tcg/sysemu/excp_helper.c