KVM: X86: Tune PLE Window tracepoint
authorPeter Xu <peterx@redhat.com>
Fri, 6 Sep 2019 02:17:22 +0000 (10:17 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 10 Sep 2019 17:13:21 +0000 (19:13 +0200)
commit4f75bcc33221254492f494065aa301da101005f5
tree1e157dad74e3416fe24c6620450d46909818abd5
parentc5c5d6fae001c653a4e831325e062816a60c5e38
KVM: X86: Tune PLE Window tracepoint

The PLE window tracepoint triggers even if the window is not changed,
and the wording can be a bit confusing too.  One example line:

  kvm_ple_window: vcpu 0: ple_window 4096 (shrink 4096)

It easily let people think of "the window now is 4096 which is
shrinked", but the truth is the value actually didn't change (4096).

Let's only dump this message if the value really changed, and we make
the message even simpler like:

  kvm_ple_window: vcpu 4 old 4096 new 8192 (growed)

Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm.c
arch/x86/kvm/trace.h
arch/x86/kvm/vmx/vmx.c
arch/x86/kvm/x86.c