Skip to contentSkip to conversation

KVM/SVM: Remove leftover __svm_vcpu_run prototype from svm.c

PATCH Applied Uros Bizjak 2 participants 2 messages Dec 21, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 KVM/SVM: Remove leftover __svm_vcpu_run prototype from svm.c

Commit 16809ecdc1e8a moved __svm_vcpu_run the prototype to svm.h, but forgot to remove the original from svm.c.

Fixes 16809ecdc1e8a ("KVM: SVM: Provide an updated VMRUN invocation for SEV-ES guests")
Cc Tom Lendacky <[email protected]>
Cc Paolo Bonzini <[email protected]>
---
 arch/x86/kvm/svm/svm.c | 2 --
 1 file changed, 2 deletions(-)
arch/x86/kvm/svm/svm.c +0 -2
index 941e5251e13f..2fa9726564af 100644
@@ -3675,8 +3675,6 @@ static fastpath_t svm_exit_handlers_fastpath(struct kvm_vcpu *vcpu)
 	return EXIT_FASTPATH_NONE;
 }
 
-void __svm_vcpu_run(unsigned long vmcb_pa, unsigned long *regs);
-
 static noinstr void svm_vcpu_enter_exit(struct kvm_vcpu *vcpu,
 					struct vcpu_svm *svm)
 {
Signature · 1 line
2.26.2
maintainer Applied
#1 lore raw
Quoted 17 lines · Uros Bizjak

Commit 16809ecdc1e8a moved __svm_vcpu_run the prototype to svm.h, but forgot to remove the original from svm.c.

Fixes 16809ecdc1e8a ("KVM: SVM: Provide an updated VMRUN invocation for SEV-ES guests")
Cc Tom Lendacky <[email protected]>
Cc Paolo Bonzini <[email protected]>
---
  arch/x86/kvm/svm/svm.c | 2 --
  1 file changed, 2 deletions(-)
arch/x86/kvm/svm/svm.c +0 -0
index 941e5251e13f..2fa9726564af 100644

arch/x86/kvm/svm/svm.c static fastpath_t svm_exit_handlers_fastpath(struct kvm_vcpu *vcpu) · line 3680

Quoted 8 lines
arch/x86/kvm/svm/svm.c +0 -2
@@ -3675,8 +3675,6 @@ static fastpath_t svm_exit_handlers_fastpath(struct kvm_vcpu *vcpu)
  	return EXIT_FASTPATH_NONE;
  }
 
-void __svm_vcpu_run(unsigned long vmcb_pa, unsigned long *regs);
-
  static noinstr void svm_vcpu_enter_exit(struct kvm_vcpu *vcpu,
  					struct vcpu_svm *svm)
  {

Queued, thanks.

Paolo