mirror_ubuntu-kernels/arch/x86/kvm/svm
Paolo Bonzini 3cffc89d9d KVM: x86/mmu: load new PGD after the shadow MMU is initialized
Now that __kvm_mmu_new_pgd does not look at the MMU's root_level and
shadow_root_level anymore, pull the PGD load after the initialization of
the shadow MMUs.

Besides being more intuitive, this enables future simplifications
and optimizations because it's not necessary anymore to compute the
role outside kvm_init_mmu.  In particular, kvm_mmu_reset_context was not
attempting to use a cached PGD to avoid having to figure out the new role.
With this change, it could follow what nested_{vmx,svm}_load_cr3 are doing,
and avoid unloading all the cached roots.

Reviewed-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2022-02-25 08:20:18 -05:00
..
avic.c KVM: x86: allow defining return-0 static calls 2022-02-18 12:44:22 -05:00
hyperv.h KVM: nSVM: Split off common definitions for Hyper-V on KVM and KVM on Hyper-V 2022-02-10 13:50:45 -05:00
nested.c KVM: x86/mmu: load new PGD after the shadow MMU is initialized 2022-02-25 08:20:18 -05:00
pmu.c KVM: x86: Provide per VM capability for disabling PMU virtualization 2022-02-25 08:20:14 -05:00
sev.c KVM: SEV: Allow SEV intra-host migration of VM with mirrors 2022-02-18 04:43:56 -05:00
svm_onhyperv.c KVM: SVM: hyper-v: Direct Virtual Flush support 2021-06-17 13:09:38 -04:00
svm_onhyperv.h KVM: nSVM: Split off common definitions for Hyper-V on KVM and KVM on Hyper-V 2022-02-10 13:50:45 -05:00
svm_ops.h x86/kvm: Always inline vmload() / vmsave() 2021-09-15 15:51:45 +02:00
svm.c KVM: x86: allow defining return-0 static calls 2022-02-18 12:44:22 -05:00
svm.h KVM: x86: make several APIC virtualization callbacks optional 2022-02-18 12:41:23 -05:00
vmenter.S x86: Prepare asm files for straight-line-speculation 2021-12-08 12:25:37 +01:00