From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andi Kleen Subject: Re: [RFC] fix VMX TSC synchronicity Date: Wed, 16 Jan 2008 14:34:54 +0100 Message-ID: <20080116133454.GA14481@one.firstfloor.org> References: <20080111204933.GA28318@dmt> <478A01D1.7000402@qumranet.com> <20080114160647.GA15919@dmt> <478CC448.1030901@qumranet.com> <478CC819.3040106@csgraf.de> <478CCCA9.2080300@qumranet.com> <478DC453.1000404@qumranet.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: Marcelo Tosatti , Alexander Graf , Andi Kleen , kvm-devel To: Avi Kivity Return-path: Content-Disposition: inline In-Reply-To: <478DC453.1000404-atKUWr5tajBWk0Htik3J/w@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org On Wed, Jan 16, 2008 at 10:46:11AM +0200, Avi Kivity wrote: > [fixing gmane emails, urgfhsz] > > Andi Kleen wrote: > >Avi Kivity writes: > > > > > >>Thanks; that's reassuring to know that it will work (at least on Intel). > >> > > > >Actually there are modern Intel systems which still have instable TSCs; > >e.g. IBM Summit multi node systems and some others. So you should > >still handle that case. > > > > I really don't see any way we could. If the guest assumes tscs are > synchronous, and they really are not, there's nothing we can do. Linux checks a couple of things: e.g. if there are no deep C states and if there are no clustered nodes in the APIC etc. It might be reasonable to check the clock source of the kernel and if it's not TSC force one of these in the emulated firmware environment > You might taskset guests into a single node on such systems, which is a > good idea anyway. Ah pushing the problem to the user. An easy, but typically wrong, solution. -Andi ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/