linux_dsm_epyc7002/arch/x86/kvm/svm
Sean Christopherson e93fd3b3e8 KVM: x86/mmu: Capture TDP level when updating CPUID
Snapshot the TDP level now that it's invariant (SVM) or dependent only
on host capabilities and guest CPUID (VMX).  This avoids having to call
kvm_x86_ops.get_tdp_level() when initializing a TDP MMU and/or
calculating the page role, and thus avoids the associated retpoline.

Drop the WARN in vmx_get_tdp_level() as updating CPUID while L2 is
active is legal, if dodgy.

No functional change intended.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Message-Id: <20200502043234.12481-11-sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-05-13 12:15:14 -04:00
..
avic.c KVM: SVM: Move AVIC code to separate file 2020-04-03 10:53:56 -04:00
nested.c KVM: x86/mmu: Capture TDP level when updating CPUID 2020-05-13 12:15:14 -04:00
pmu.c kVM SVM: Move SVM related files to own sub-directory 2020-04-03 10:53:47 -04:00
sev.c KVM: SVM: Fix build error due to missing release_pages() include 2020-04-15 12:08:37 -04:00
svm.c KVM: VMX: Add proper cache tracking for CR0 2020-05-13 12:15:12 -04:00
svm.h KVM: nSVM: Report interrupts as allowed when in L2 and exit-on-interrupt is set 2020-05-13 12:14:44 -04:00
vmenter.S KVM: SVM: Do not setup frame pointer in __svm_vcpu_run 2020-04-15 12:08:38 -04:00