diff options
author | Maxim Levitsky <mlevitsk@redhat.com> | 2022-03-02 11:24:57 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-04-02 11:34:45 +0200 |
commit | 5959ff4ae96eece2f0c3dfde5d27bff70ab1ce56 (patch) | |
tree | 7ce07b6127d49214a680f0b3b9334bae0f17bcf4 /arch/x86/kvm/mmu/mmu.c | |
parent | KVM: x86/svm: Clear reserved bits written to PerfEvtSeln MSRs (diff) | |
download | linux-5959ff4ae96eece2f0c3dfde5d27bff70ab1ce56.tar.xz linux-5959ff4ae96eece2f0c3dfde5d27bff70ab1ce56.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | arch/x86/kvm/mmu/mmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/mmu/mmu.c b/arch/x86/kvm/mmu/mmu.c index e6ce39a798b8..8f19ea752704 100644 --- a/arch/x86/kvm/mmu/mmu.c +++ b/arch/x86/kvm/mmu/mmu.c @@ -2696,8 +2696,8 @@ static int mmu_set_spte(struct kvm_vcpu *vcpu, struct kvm_memory_slot *slot, if (*sptep == spte) { ret = RET_PF_SPURIOUS; } else { - trace_kvm_mmu_set_spte(level, gfn, sptep); flush |= mmu_spte_update(sptep, spte); + trace_kvm_mmu_set_spte(level, gfn, sptep); } if (wrprot) { |