From: Glauber Costa Subject: Re: [PATCH 2/2] kvmclock: count total_sleep_time when updating guest clock Date: Wed, 27 Jan 2010 10:27:26 -0200 Message-ID: <20100127122726.GA2469@mothafucka.localdomain> References: <20100127111340.25521.95424.stgit@localhost.localdomain> <20100127111349.25521.79809.stgit@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: mtosatti@redhat.com, avi@redhat.com, kvm@vger.kernel.org To: Jason Wang Return-path: Received: from mx1.redhat.com ([209.132.183.28]:49317 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752940Ab0A0M13 (ORCPT ); Wed, 27 Jan 2010 07:27:29 -0500 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o0RCRTdp013692 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 27 Jan 2010 07:27:29 -0500 Content-Disposition: inline In-Reply-To: <20100127111349.25521.79809.stgit@localhost.localdomain> Sender: kvm-owner@vger.kernel.org List-ID: On Wed, Jan 27, 2010 at 07:13:49PM +0800, Jason Wang wrote: > Current kvm wallclock does not consider the total_sleep_time which could cause > wrong wallclock in guest after host suspend/resume. This patch solve > this issue by counting total_sleep_time to get the correct host boot time. > > Signed-off-by: Jason Wang This makes sense to me. Acked-by: Glauber Costa