From d6276d26bd92c683c7ca194b6f6f48fd8994c1ed Mon Sep 17 00:00:00 2001 From: Eduardo Habkost Date: Thu, 30 Jun 2016 15:12:17 -0300 Subject: [PATCH] target-i386: Show host and VM TSC frequencies on mismatch Improve the TSC frequency mismatch warning to show the host and VM TSC frequencies. Reviewed-by: Dr. David Alan Gilbert Reviewed-by: Marcelo Tosatti Signed-off-by: Eduardo Habkost --- target-i386/kvm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/target-i386/kvm.c b/target-i386/kvm.c index f3698f19b5..9679415e43 100644 --- a/target-i386/kvm.c +++ b/target-i386/kvm.c @@ -566,7 +566,9 @@ static int kvm_arch_set_tsc_khz(CPUState *cs) -ENOTSUP; if (cur_freq <= 0 || cur_freq != env->tsc_khz) { error_report("warning: TSC frequency mismatch between " - "VM and host, and TSC scaling unavailable"); + "VM (%" PRId64 " kHz) and host (%d kHz), " + "and TSC scaling unavailable", + env->tsc_khz, cur_freq); return r; } } -- 2.11.4.GIT