]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commiteec2fbd80604edeaeea7d7365e16116ad95cc005
tree7a824c93ae5f937f7b1e0dbc6b3da5cbc05a1329
parent595cecf59b9ad661e8db19b45eb0fa22b78a3a9b
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