kvm: x86: add trace event for pvclock updates
authorDavid Matlack <dmatlack@google.com>
Wed, 5 Nov 2014 19:46:42 +0000 (11:46 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 8 Nov 2014 07:20:55 +0000 (08:20 +0100)
commitce1a5e60a62f21a6b5ad3e1dee60c10f0cb2aa37
tree0e396b87e1e874a8a0adf8e2034bec31583d278a
parent09a0c3f110b2fbe3bd03817c416d00968666fd74
kvm: x86: add trace event for pvclock updates

The new trace event records:
  * the id of vcpu being updated
  * the pvclock_vcpu_time_info struct being written to guest memory

This is useful for debugging pvclock bugs, such as the bug fixed by
"[PATCH] kvm: x86: Fix kvm clock versioning.".

Signed-off-by: David Matlack <dmatlack@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/trace.h
arch/x86/kvm/x86.c