From: "Jan Beulich" Subject: Re: [PATCH] hvm: reset TSC to 0 after domain resume from S3 Date: Wed, 20 Nov 2013 15:02:41 +0000 Message-ID: <528CDD21020000780010523B@nat28.tlf.novell.com> References: <1384957348-5853-1-git-send-email-tomasz.wroblewski@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Vj9Ii-0001Sk-Tx for xen-devel@lists.xenproject.org; Wed, 20 Nov 2013 15:02:45 +0000 In-Reply-To: <1384957348-5853-1-git-send-email-tomasz.wroblewski@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 15:22, Tomasz Wroblewski wrote: > --- a/xen/arch/x86/hvm/hvm.c > +++ b/xen/arch/x86/hvm/hvm.c > @@ -3736,8 +3736,13 @@ static void hvm_s3_suspend(struct domain *d) > > static void hvm_s3_resume(struct domain *d) > { > + struct vcpu *v; Blank line needed here. And it would imo be better to move the declaration inside the body of the if(). > if ( test_and_clear_bool(d->arch.hvm_domain.is_s3_suspended) ) > + { > + for_each_vcpu( d, v ) > + hvm_set_guest_tsc( v, 0 ); Stray blanks inside the parentheses. (If I'm ending up committing this, and if no other need to redo the patch shows up, I can take care of these cosmetics on the fly, i.e. no need to send a v2 just for this.) Jan