]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: X86/SVM: Use root_level in svm_load_mmu_pgd()
authorLai Jiangshan <jiangshan.ljs@antgroup.com>
Sun, 5 Jun 2022 06:34:17 +0000 (14:34 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 15 Jun 2022 12:07:54 +0000 (08:07 -0400)
commitb24a1e421dc2058fff82a6cb37befbf41a1c3a99
tree6518b26f258fd7dcc81590cc199c5c086af4c77d
parent3241579b8cecfce24ac4017c89dfc95c5cbdf969
KVM: X86/SVM: Use root_level in svm_load_mmu_pgd()

Use root_level in svm_load_mmu_pg() rather that looking up the root
level in vcpu->arch.mmu->root_role.level. svm_load_mmu_pgd() has only
one caller, kvm_mmu_load_pgd(), which always passes
vcpu->arch.mmu->root_role.level as root_level.

Signed-off-by: Lai Jiangshan <jiangshan.ljs@antgroup.com>
Message-Id: <20220605063417.308311-7-jiangshanlai@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/svm.c