OSDN Git Service

target-i386: Show host and VM TSC frequencies on mismatch
authorEduardo Habkost <ehabkost@redhat.com>
Thu, 30 Jun 2016 18:12:17 +0000 (15:12 -0300)
committerEduardo Habkost <ehabkost@redhat.com>
Thu, 7 Jul 2016 18:25:11 +0000 (15:25 -0300)
Improve the TSC frequency mismatch warning to show the host and
VM TSC frequencies.

Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
target-i386/kvm.c

index f3698f1..9679415 100644 (file)
@@ -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;
         }
     }