Skip to content

Commit 5959ff4

Browse files
Maxim Levitskybonzini
authored andcommitted
KVM: x86: mmu: trace kvm_mmu_set_spte after the new SPTE was set
It makes more sense to print new SPTE value than the old value. Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com> Reviewed-by: Sean Christopherson <seanjc@google.com> Message-Id: <20220302102457.588450-1-mlevitsk@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
1 parent 9b02607 commit 5959ff4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/x86/kvm/mmu/mmu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2696,8 +2696,8 @@ static int mmu_set_spte(struct kvm_vcpu *vcpu, struct kvm_memory_slot *slot,
26962696
if (*sptep == spte) {
26972697
ret = RET_PF_SPURIOUS;
26982698
} else {
2699-
trace_kvm_mmu_set_spte(level, gfn, sptep);
27002699
flush |= mmu_spte_update(sptep, spte);
2700+
trace_kvm_mmu_set_spte(level, gfn, sptep);
27012701
}
27022702

27032703
if (wrprot) {

0 commit comments

Comments
 (0)