diff mbox series

KVM: x86/mmu: Remove duplicate MMU trace log

Message ID 20210415040141.5218-1-weijiang.yang@intel.com (mailing list archive)
State New
Headers show
Series KVM: x86/mmu: Remove duplicate MMU trace log | expand

Commit Message

Yang Weijiang April 15, 2021, 4:01 a.m. UTC
Signed-off-by: Yang Weijiang <weijiang.yang@intel.com>
---
 arch/x86/kvm/mmu/tdp_mmu.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Sean Christopherson April 15, 2021, 3:22 p.m. UTC | #1
On Thu, Apr 15, 2021, Yang Weijiang wrote:
> Signed-off-by: Yang Weijiang <weijiang.yang@intel.com>
> ---
>  arch/x86/kvm/mmu/tdp_mmu.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/arch/x86/kvm/mmu/tdp_mmu.c b/arch/x86/kvm/mmu/tdp_mmu.c
> index 018d82e73e31..0bd4c9972fc8 100644
> --- a/arch/x86/kvm/mmu/tdp_mmu.c
> +++ b/arch/x86/kvm/mmu/tdp_mmu.c
> @@ -781,8 +781,6 @@ static int tdp_mmu_map_handle_target_level(struct kvm_vcpu *vcpu, int write,
>  		trace_kvm_mmu_set_spte(iter->level, iter->gfn,
>  				       rcu_dereference(iter->sptep));
>  
> -	trace_kvm_mmu_set_spte(iter->level, iter->gfn,
> -			       rcu_dereference(iter->sptep));
>  	if (!prefault)
>  		vcpu->stat.pf_fixed++;

Already queued in kvm/next, commit 3849e0924ef1 ("KVM: x86/mmu: Drop redundant
trace_kvm_mmu_set_spte() in the TDP MMU").

Thanks!
diff mbox series

Patch

diff --git a/arch/x86/kvm/mmu/tdp_mmu.c b/arch/x86/kvm/mmu/tdp_mmu.c
index 018d82e73e31..0bd4c9972fc8 100644
--- a/arch/x86/kvm/mmu/tdp_mmu.c
+++ b/arch/x86/kvm/mmu/tdp_mmu.c
@@ -781,8 +781,6 @@  static int tdp_mmu_map_handle_target_level(struct kvm_vcpu *vcpu, int write,
 		trace_kvm_mmu_set_spte(iter->level, iter->gfn,
 				       rcu_dereference(iter->sptep));
 
-	trace_kvm_mmu_set_spte(iter->level, iter->gfn,
-			       rcu_dereference(iter->sptep));
 	if (!prefault)
 		vcpu->stat.pf_fixed++;