diff options
| author | Sean Christopherson <seanjc@google.com> | 2025-06-10 15:57:26 -0700 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2025-06-20 13:07:30 -0700 |
| commit | 049dff172b6dde91649d65dbdad62e62f4855a97 (patch) | |
| tree | b0f8aeeffd64aca15d069353ca7bc86ee6fcd921 /arch/x86/kvm/svm/svm.c | |
| parent | KVM: x86: Rename msr_filter_changed() => recalc_msr_intercepts() (diff) | |
| download | linux-049dff172b6dde91649d65dbdad62e62f4855a97.tar.gz linux-049dff172b6dde91649d65dbdad62e62f4855a97.zip | |
KVM: SVM: Rename init_vmcb_after_set_cpuid() to make it intercepts specific
Rename init_vmcb_after_set_cpuid() to svm_recalc_intercepts_after_set_cpuid()
to more precisely describe its role. Strictly speaking, the name isn't
perfect as toggling virtual VM{LOAD,SAVE} is arguably not recalculating an
intercept, but practically speaking it's close enough.
No functional change intended.
Link: https://lore.kernel.org/r/20250610225737.156318-22-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'arch/x86/kvm/svm/svm.c')
| -rw-r--r-- | arch/x86/kvm/svm/svm.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/x86/kvm/svm/svm.c b/arch/x86/kvm/svm/svm.c index 20f566ca1b37..dd5da5e4f844 100644 --- a/arch/x86/kvm/svm/svm.c +++ b/arch/x86/kvm/svm/svm.c @@ -1097,7 +1097,7 @@ static void svm_recalc_instruction_intercepts(struct kvm_vcpu *vcpu, } } -static inline void init_vmcb_after_set_cpuid(struct kvm_vcpu *vcpu) +static void svm_recalc_intercepts_after_set_cpuid(struct kvm_vcpu *vcpu) { struct vcpu_svm *svm = to_svm(vcpu); @@ -1263,7 +1263,8 @@ static void init_vmcb(struct kvm_vcpu *vcpu) sev_init_vmcb(svm); svm_hv_init_vmcb(vmcb); - init_vmcb_after_set_cpuid(vcpu); + + svm_recalc_intercepts_after_set_cpuid(vcpu); vmcb_mark_all_dirty(vmcb); @@ -4508,7 +4509,7 @@ static void svm_vcpu_after_set_cpuid(struct kvm_vcpu *vcpu) if (sev_guest(vcpu->kvm)) sev_vcpu_after_set_cpuid(svm); - init_vmcb_after_set_cpuid(vcpu); + svm_recalc_intercepts_after_set_cpuid(vcpu); } static bool svm_has_wbinvd_exit(void) |
