target/i386: Use MMU_NESTED_IDX for vmload/vmsave
commit726ea335313ecb0c8c464a5fe2b796ceff59d7b0
authorRichard Henderson <richard.henderson@linaro.org>
Sun, 2 Oct 2022 17:29:53 +0000 (2 10:29 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 18 Oct 2022 11:58:04 +0000 (18 13:58 +0200)
treebc8251d5956a8d83c78c40a802d901309e84ea33
parent98281984a373a68a3c497dfb88e42195f3a1cc93
target/i386: Use MMU_NESTED_IDX for vmload/vmsave

Use MMU_NESTED_IDX for each memory access, rather than
just a single translation to physical.  Adjust svm_save_seg
and svm_load_seg to pass in mmu_idx.

This removes the last use of get_hphys so remove it.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20221002172956.265735-7-richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/cpu.h
target/i386/tcg/sysemu/excp_helper.c
target/i386/tcg/sysemu/svm_helper.c