]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Trace changes to active TSC offset regardless if vCPU in guest-mode
authorPaolo Bonzini <pbonzini@redhat.com>
Sun, 25 Nov 2018 17:45:35 +0000 (18:45 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 27 Nov 2018 11:53:43 +0000 (12:53 +0100)
commit7446b0d971cc3aae79dee9906f30e8b4c8ef7757
tree277efea56262b213fed6dbc68d1879219368c10a
parent721f46a70c094450ad2f6c6f83ca9b9521d81b7a
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: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm.c
arch/x86/kvm/vmx.c