Skip to contentSkip to conversation

KVM: SVM: Get rid of the variable 'exit_fastpath'

PATCH In review [email protected] 2 participants 2 messages Sep 15, 2020 – Sep 16, 2020

Subsystems (3)
lore
Share & tools
lore
Reviewed-by on v1 1/1
#1 lore raw
In reply to [email protected]
Quoted 23 lines · On 9/15/20 4:30 AM, [email protected] wrote:

From: Haiwei Li <[email protected]>

'exit_fastpath' isn't used anywhere else, so remove it.

---
  arch/x86/kvm/svm/svm.c | 4 +---
  1 file changed, 1 insertion(+), 3 deletions(-)
arch/x86/kvm/svm/svm.c +0 -1
index c44f3e9..6e88658 100644
@@ -3413,7 +3413,6 @@ static noinstr void svm_vcpu_enter_exit(struct kvm_vcpu *vcpu,
 
  static __no_kcsan fastpath_t svm_vcpu_run(struct kvm_vcpu *vcpu)
  {
-	fastpath_t exit_fastpath;
  	struct vcpu_svm *svm = to_svm(vcpu);
 
  	svm->vmcb->save.rax = vcpu->arch.regs[VCPU_REGS_RAX];

arch/x86/kvm/svm/svm.c static __no_kcsan fastpath_t svm_vcpu_run(struct kvm_vcpu *vcpu) · line 3541

Quoted 9 lines
arch/x86/kvm/svm/svm.c +1 -2
@@ -3536,8 +3535,7 @@ static __no_kcsan fastpath_t svm_vcpu_run(struct kvm_vcpu *vcpu)
  		svm_handle_mce(svm);
 
  	svm_complete_interrupts(svm);
-	exit_fastpath = svm_exit_handlers_fastpath(vcpu);
-	return exit_fastpath;
+	return svm_exit_handlers_fastpath(vcpu);
  }
 
  static void svm_load_mmu_pgd(struct kvm_vcpu *vcpu, unsigned long root,
#0 lore raw

PATCH 1/1 KVM: SVM: Get rid of the variable 'exit_fastpath'

From: Haiwei Li <[email protected]>

'exit_fastpath' isn't used anywhere else, so remove it.

---
 arch/x86/kvm/svm/svm.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
arch/x86/kvm/svm/svm.c +1 -3
index c44f3e9..6e88658 100644
@@ -3413,7 +3413,6 @@ static noinstr void svm_vcpu_enter_exit(struct kvm_vcpu *vcpu,
 
 static __no_kcsan fastpath_t svm_vcpu_run(struct kvm_vcpu *vcpu)
 {
-	fastpath_t exit_fastpath;
 	struct vcpu_svm *svm = to_svm(vcpu);
 
 	svm->vmcb->save.rax = vcpu->arch.regs[VCPU_REGS_RAX];
@@ -3536,8 +3535,7 @@ static __no_kcsan fastpath_t svm_vcpu_run(struct kvm_vcpu *vcpu)
 		svm_handle_mce(svm);
 
 	svm_complete_interrupts(svm);
-	exit_fastpath = svm_exit_handlers_fastpath(vcpu);
-	return exit_fastpath;
+	return svm_exit_handlers_fastpath(vcpu);
 }
 
 static void svm_load_mmu_pgd(struct kvm_vcpu *vcpu, unsigned long root,
Signature · 1 line
1.8.3.1