KVM: x86/mmu: replace root_level with cpu_role.base.level
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 10 Feb 2022 12:42:22 +0000 (07:42 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 29 Apr 2022 16:49:58 +0000 (12:49 -0400)
commit4d25502aa12ef1fb01e599cbfd341a8d436f4b8b
tree7a824c93ae5f937f7b1e0dbc6b3da5cbc05a1329
parenta972e29c1d6c957242a23b42f355b1fdf721cbd4
KVM: x86/mmu: replace root_level with cpu_role.base.level

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_role.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
arch/x86/kvm/mmu/mmu.c
arch/x86/kvm/mmu/paging_tmpl.h