kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] KVM: x86/mmu: Remove duplicate MMU trace log
@ 2021-04-15  4:01 Yang Weijiang
  2021-04-15 15:22 ` Sean Christopherson
  0 siblings, 1 reply; 2+ messages in thread
From: Yang Weijiang @ 2021-04-15  4:01 UTC (permalink / raw)
  To: pbonzini, kvm; +Cc: Yang Weijiang

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++;
 
-- 
2.17.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] KVM: x86/mmu: Remove duplicate MMU trace log
  2021-04-15  4:01 [PATCH] KVM: x86/mmu: Remove duplicate MMU trace log Yang Weijiang
@ 2021-04-15 15:22 ` Sean Christopherson
  0 siblings, 0 replies; 2+ messages in thread
From: Sean Christopherson @ 2021-04-15 15:22 UTC (permalink / raw)
  To: Yang Weijiang; +Cc: pbonzini, kvm

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!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-04-15 15:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-15  4:01 [PATCH] KVM: x86/mmu: Remove duplicate MMU trace log Yang Weijiang
2021-04-15 15:22 ` Sean Christopherson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).