From: Eduardo Habkost Subject: Re: TSC deadline timer in guests vs. migration? Date: Tue, 5 Jul 2016 19:12:26 -0300 Message-ID: <20160705221226.GR4131@thinpad.lan.raisama.net> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Marcelo Tosatti , David Matlack , Peter Hornyack , KVM list , haozhong.zhang@intel.com To: Paolo Bonzini Return-path: Received: from mx1.redhat.com ([209.132.183.28]:34404 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754760AbcGEWM3 (ORCPT ); Tue, 5 Jul 2016 18:12:29 -0400 Content-Disposition: inline In-Reply-To: <4ff33059-2f46-5767-4b59-82780cf01483@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: 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? -- Eduardo