diff options
author | Haozhong Zhang <haozhong.zhang@intel.com> | 2015-10-20 03:39:12 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-11-10 06:06:22 -0500 |
commit | 8cfe9866960581303f244780945c5d12ecc4e5bc (patch) | |
tree | b3217564397a0f26fde7cbb19c4eb84228aab346 | |
parent | be7b263ea925324e54e48c3558d4719be5374053 (diff) |
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>
-rw-r--r-- | arch/x86/kvm/vmx.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index c6016e4a5af0..b765b036a048 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c | |||
@@ -8009,6 +8009,9 @@ static void dump_vmcs(void) | |||
8009 | vmcs_read32(IDT_VECTORING_INFO_FIELD), | 8009 | vmcs_read32(IDT_VECTORING_INFO_FIELD), |
8010 | vmcs_read32(IDT_VECTORING_ERROR_CODE)); | 8010 | vmcs_read32(IDT_VECTORING_ERROR_CODE)); |
8011 | pr_err("TSC Offset = 0x%016lx\n", vmcs_readl(TSC_OFFSET)); | 8011 | pr_err("TSC Offset = 0x%016lx\n", vmcs_readl(TSC_OFFSET)); |
8012 | if (secondary_exec_control & SECONDARY_EXEC_TSC_SCALING) | ||
8013 | pr_err("TSC Multiplier = 0x%016lx\n", | ||
8014 | vmcs_readl(TSC_MULTIPLIER)); | ||
8012 | if (cpu_based_exec_ctrl & CPU_BASED_TPR_SHADOW) | 8015 | if (cpu_based_exec_ctrl & CPU_BASED_TPR_SHADOW) |
8013 | pr_err("TPR Threshold = 0x%02x\n", vmcs_read32(TPR_THRESHOLD)); | 8016 | pr_err("TPR Threshold = 0x%02x\n", vmcs_read32(TPR_THRESHOLD)); |
8014 | if (pin_based_exec_ctrl & PIN_BASED_POSTED_INTR) | 8017 | if (pin_based_exec_ctrl & PIN_BASED_POSTED_INTR) |