Skip to content
Commit 45c3af97 authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

KVM: x86: Trace changes to active TSC offset regardless if vCPU in guest-mode



For some reason, kvm_x86_ops->write_l1_tsc_offset() skipped trace
of change to active TSC offset in case vCPU is in guest-mode.
This patch changes write_l1_tsc_offset() behavior to trace any change
to active TSC offset to aid debugging.  The VMX code is changed to
look more similar to SVM, which is in my opinion nicer.

Based on a patch by Liran Alon.

Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent fd65d314
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment