From: "Jan Beulich" Subject: Re: TSC trouble in hvm linux, after host S3 Date: Wed, 20 Nov 2013 11:51:29 +0000 Message-ID: <528CB0510200007800104FC0@nat28.tlf.novell.com> References: <528C95AE.6040308@citrix.com> <528C9FF0.2050706@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Vj6Jg-0008VP-7m for xen-devel@lists.xenproject.org; Wed, 20 Nov 2013 11:51:32 +0000 In-Reply-To: <528C9FF0.2050706@citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Tomasz Wroblewski Cc: xen-devel List-Id: xen-devel@lists.xenproject.org >>> On 20.11.13 at 12:41, Tomasz Wroblewski wrote: > I've since found out that VMCS seems to provide tsc offsetting capabilities; > adding something like > > for_each_vcpu ( d, v ) > { > if (v->vcpu_id == 0) > hvm_set_guest_tsc(v, 0); > } > > inside hvm_s3_resume (xen/arch/x86/hvm/hvm.c) fixed this for me; any comment > on such a solution? This sounds plausible, but I'd prefer it to be done alongside the other state resetting done for S3 (which all happen in hvm_s3_suspend()). Unless that doesn't work, of course. Jan