OSDN Git Service

KVM: x86: rename set_cr3 callback and related flags to load_mmu_pgd
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 5 Mar 2020 08:52:50 +0000 (03:52 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 16 Mar 2020 16:58:52 +0000 (17:58 +0100)
commit727a7e27cf88a261c5a0f14f4f9ee4d767352766
treef6c02f239bbd7af977a8750a835545312e917330
parent689f3bf2162895cf0b847f36584309064887c966
KVM: x86: rename set_cr3 callback and related flags to load_mmu_pgd

The set_cr3 callback is not setting the guest CR3, it is setting the
root of the guest page tables, either shadow or two-dimensional.
To make this clearer as well as to indicate that the MMU calls it
via kvm_mmu_load_cr3, rename it to load_mmu_pgd.

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/svm.c
arch/x86/kvm/vmx/nested.c
arch/x86/kvm/vmx/vmx.c
arch/x86/kvm/vmx/vmx.h
arch/x86/kvm/x86.c