[Devel,RHEL7,COMMIT] ms/KVM: VMX: Dump TSC multiplier in dump_vmcs()

Submitted by Konstantin Khorenko on Nov. 16, 2016, 12:46 p.m.


Message ID 201611161246.uAGCk2f9013648@finist_cl7.x64_64.work.ct
State New
Series "add tsc_scale and fix VM pause/resume"
Headers show

Commit Message

Konstantin Khorenko Nov. 16, 2016, 12:46 p.m.
The commit is pushed to "branch-rh7-3.10.0-327.36.1.vz7.19.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-327.36.1.vz7.19.9
commit e4dbaaab60bc938c152e798996392e93039b167d
Author: Haozhong Zhang <haozhong.zhang@intel.com>
Date:   Wed Nov 16 16:46:02 2016 +0400

    ms/KVM: VMX: Dump TSC multiplier in dump_vmcs()
    This patch enhances dump_vmcs() to dump the value of TSC multiplier
    field in VMCS.
    Signed-off-by: Haozhong Zhang <haozhong.zhang@intel.com>
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    (cherry-picked from commit 8cfe9866960581303f244780945c5d12ecc4e5bc)
    Signed-off-by: Denis Plotnikov <dplotnikov@virtuozzo.com>
    Signed-off-by: Roman Kagan <rkagan@virtuozzo.com>
 arch/x86/kvm/vmx.c | 3 +++
 1 file changed, 3 insertions(+)

Patch hide | download patch | download mbox

diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index 9f3c26a..a03e7d9 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -7521,6 +7521,9 @@  static void dump_vmcs(void)
 	pr_err("TSC Offset = 0x%016lx\n", vmcs_readl(TSC_OFFSET));
+	if (secondary_exec_control & SECONDARY_EXEC_TSC_SCALING)
+		pr_err("TSC Multiplier = 0x%016lx\n",
+		       vmcs_readl(TSC_MULTIPLIER));
 	if (cpu_based_exec_ctrl & CPU_BASED_TPR_SHADOW)
 		pr_err("TPR Threshold = 0x%02x\n", vmcs_read32(TPR_THRESHOLD));
 	if (pin_based_exec_ctrl & PIN_BASED_POSTED_INTR)