]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: use struct kvm_mmu_root_info for mmu->root
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 21 Feb 2022 14:28:33 +0000 (09:28 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 25 Feb 2022 13:20:16 +0000 (08:20 -0500)
commiteb0c9190318a3663686b9db7399566362f9791ed
treeb55661f948b2617217a340fc2e82c9b5e6c7835a
parent124ab69f49fafc1f6ea875252f1f2f5cdc555e77
KVM: x86: use struct kvm_mmu_root_info for mmu->root

The root_hpa and root_pgd fields form essentially a struct kvm_mmu_root_info.
Use the struct to have more consistency between mmu->root and
mmu->prev_roots.

The patch is entirely search and replace except for cached_root_available,
which does not need a temporary struct kvm_mmu_root_info anymore.

Reviewed-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/mmu.h
arch/x86/kvm/mmu/mmu.c
arch/x86/kvm/mmu/paging_tmpl.h
arch/x86/kvm/mmu/tdp_mmu.c
arch/x86/kvm/mmu/tdp_mmu.h
arch/x86/kvm/vmx/nested.c
arch/x86/kvm/vmx/vmx.c
arch/x86/kvm/x86.c