From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [RFC v3 3/6] xen/arm: Add save/restore support for ARM arch timer Date: Sun, 11 May 2014 09:58:50 +0100 Message-ID: <536F3BCA.2060407@linaro.org> References: <1399583908-21755-1-git-send-email-w1.huang@samsung.com> <1399583908-21755-4-git-send-email-w1.huang@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1399583908-21755-4-git-send-email-w1.huang@samsung.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Wei Huang , xen-devel@lists.xen.org Cc: keir@xen.org, ian.campbell@citrix.com, stefano.stabellini@eu.citrix.com, andrew.cooper3@citrix.com, tim@xen.org, jaeyong.yoo@samsung.com, jbeulich@suse.com, ian.jackson@eu.citrix.com, yjhyun.yoo@samsung.com List-Id: xen-devel@lists.xenproject.org Hi Wei, Thank you for the patch. On 08/05/14 22:18, Wei Huang wrote: > + switch ( ctxt.type ) > + { > + case ARM_TIMER_TYPE_PHYS: > + t = &v->arch.phys_timer; > + d->arch.phys_timer_base.offset = ctxt.vtb_offset; > + break; > + case ARM_TIMER_TYPE_VIRT: > + t = &v->arch.virt_timer; > + d->arch.virt_timer_base.offset = ctxt.vtb_offset; It seems you forgot to address some of my comments on the timer save/restore. Saving {virt,phys}_timer_base.offset per VCPU rather than per-domain seems a waste of space and confusing. Furthermore, this offset is used to get a relative offset from the Xen timer counter. Migrating the guess to another server will invalidate the value. Regards, -- Julien Grall