]> 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)
commit305de1e38cd4ab9499eae9e6da50b98f7ec72fcd
tree7a824c93ae5f937f7b1e0dbc6b3da5cbc05a1329
parenta722a5ffc5f5fce9c10cea4b8a205b278bee1fd5
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