]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/mmu: pull CPU mode computation to kvm_init_mmu
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 10 Feb 2022 12:57:21 +0000 (07:57 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 29 Apr 2022 16:49:57 +0000 (12:49 -0400)
commitba842bf3b04750552efa5f5d318e568b70d2430d
treebf211aa7ba861af9b4e574b65f1e34f4fba2863c
parent273e4d482a5bb9b7467c0a3730e3f3848bbaf079
KVM: x86/mmu: pull CPU mode computation to kvm_init_mmu

Do not lead init_kvm_*mmu into the temptation of poking
into struct kvm_mmu_role_regs, by passing to it directly
the CPU mode.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c