Re: [PATCH v2 22/25] KVM: x86/mmu: replace root_level with cpu_mode.base.level

Sean Christopherson
2022-03-08T19:49:34Z

On Mon, Feb 21, 2022, Paolo Bonzini wrote:
> Remove another duplicate field of struct kvm_mmu. This time it's
> the root level for page table walking; the separate field is
> always initialized as cpu_mode.base.level, so its users can look
> up the CPU mode directly instead.
>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
> arch/x86/include/asm/kvm_host.h | 1 -
> arch/x86/kvm/mmu/mmu.c | 18 +++++++-----------
> arch/x86/kvm/mmu/paging_tmpl.h | 4 ++--
> 3 files changed, 9 insertions(+), 14 deletions(-)

Reviewed-by: Sean Christopherson <seanjc@google.com>