From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eduardo Habkost Subject: Re: TSC deadline timer in guests vs. migration? Date: Mon, 4 Jul 2016 16:07:10 -0300 Message-ID: <20160704190710.GB4131@thinpad.lan.raisama.net> References: <759376f0-e0bf-e53a-99e4-598bf14547e3@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Marcelo Tosatti , David Matlack , Peter Hornyack , KVM list To: Paolo Bonzini Return-path: Received: from mx1.redhat.com ([209.132.183.28]:6726 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753620AbcGDTHN (ORCPT ); Mon, 4 Jul 2016 15:07:13 -0400 Content-Disposition: inline In-Reply-To: <759376f0-e0bf-e53a-99e4-598bf14547e3@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Mon, Jul 04, 2016 at 01:01:42PM +0200, Paolo Bonzini wrote: > Can bad things happen if a guest using the TSC deadline timer is > migrated? The guest doesn't re-calibrate the TSC after migration, and > the TSC frequency can and will change unless your data center is > perfectly homogeneous. I believe it can. Also: what about everything else the guest may try to use the TSC for? (even without TSC deadline timer) >>From a quick look at Linux code, it looks like the TSC clocksource code is more strict (but the exact rules are hard to follow), but it will still use the TSC in native_sched_clock(). What about kvmclock? Do we have a mechanism to trigger a re-read of TSC frequency from the hypervisor? -- Eduardo