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

From: Sean Christopherson
Date: Tue Mar 08 2022 - 14:49:34 EST


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@xxxxxxxxxx>
> ---
> 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@xxxxxxxxxx>