From: Paolo Bonzini Subject: Re: TSC deadline timer in guests vs. migration? Date: Wed, 6 Jul 2016 08:01:03 +0200 Message-ID: References: <759376f0-e0bf-e53a-99e4-598bf14547e3@redhat.com> <20160704193005.GA28201@amt.cnet> <20160704194506.GE4131@thinpad.lan.raisama.net> <20160705125140.GA17664@amt.cnet> <20160705130422.GO4131@thinpad.lan.raisama.net> <03d8c68c-1e86-62bf-f3f2-400a6ef74c25@redhat.com> <20160705181140.GQ4131@thinpad.lan.raisama.net> <4ff33059-2f46-5767-4b59-82780cf01483@redhat.com> <20160705221226.GR4131@thinpad.lan.raisama.net> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: Marcelo Tosatti , David Matlack , Peter Hornyack , KVM list , haozhong.zhang@intel.com To: Eduardo Habkost Return-path: Received: from mail-wm0-f41.google.com ([74.125.82.41]:38334 "EHLO mail-wm0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751371AbcGFGBI (ORCPT ); Wed, 6 Jul 2016 02:01:08 -0400 Received: by mail-wm0-f41.google.com with SMTP id r201so178319283wme.1 for ; Tue, 05 Jul 2016 23:01:07 -0700 (PDT) In-Reply-To: <20160705221226.GR4131@thinpad.lan.raisama.net> Sender: kvm-owner@vger.kernel.org List-ID: On 06/07/2016 00:12, Eduardo Habkost wrote: > On Tue, Jul 05, 2016 at 11:40:22PM +0200, Paolo Bonzini wrote: >> >> >> On 05/07/2016 20:11, Eduardo Habkost wrote: >>> In this case, if TSC scaling is not supported, is it preferable >>> to have the TSC frequency suddenly changing without the guest >>> being aware of it, or to run in tsc_always_catchup mode? QEMU 2.5 >>> did the former, QEMU 2.6 does the latter. >> >> I suspect the former is better just because we don't know the exact >> effect of tsc_always_catchup. > > Forget what I said. QEMU 2.6 checks for KVM_CAP_TSC_CONTROL > before calling KVM_SET_TSC_KHZ. In this case, it will never > trigger tsc_always_catchup, right? Yes, I checked right after writing. :) Paolo