From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53477) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIhFq-0003iB-Og for qemu-devel@nongnu.org; Thu, 30 Jun 2016 15:04:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bIhFl-0008OL-BH for qemu-devel@nongnu.org; Thu, 30 Jun 2016 15:04:02 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58194) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIhFl-0008Nv-57 for qemu-devel@nongnu.org; Thu, 30 Jun 2016 15:03:57 -0400 Date: Thu, 30 Jun 2016 20:03:52 +0100 From: "Dr. David Alan Gilbert" Message-ID: <20160630190352.GB2248@work-vm> References: <1467310337-3201-1-git-send-email-ehabkost@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1467310337-3201-1-git-send-email-ehabkost@redhat.com> Subject: Re: [Qemu-devel] [PATCH] target-i386: Show host and VM TSC frequencies on mismatch List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eduardo Habkost Cc: qemu-devel@nongnu.org, Marcelo Tosatti , Paolo Bonzini , haozhong.zhang@intel.com * Eduardo Habkost (ehabkost@redhat.com) wrote: > Improve the TSC frequency mismatch warning to show the host and > VM TSC frequencies. > > 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 f3698f1..9679415 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; > } Reviewed-by: Dr. David Alan Gilbert Yep, it should be interesting to see what the differences are we hit, wacky different values or the one next door that's slightly warmer. Dave > } > -- > 2.5.5 > -- Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK