[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] Re: [PATCH] [Bugfix][pv-ops] Guest get stucked after migration


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx, Jeremy Fitzhardinge <Jeremy.Fitzhardinge@xxxxxxxxxx>, Ian Campbell <Ian.Campbell@xxxxxxxxxx>
  • From: Frank Pan <frankpzh@xxxxxxxxx>
  • Date: Tue, 22 Mar 2011 12:19:53 +0800
  • Cc:
  • Delivery-date: Mon, 21 Mar 2011 21:21:05 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=hPz0INFqdICSp/PMUMCGYVwSwlAQLOdETDnVeF/ZElEjf+3b4STvbrezFtrUDFTWpT VmtN9rjOAhzFf/wAiKXXqKS+4U03xBFhFO2edHxJEVFJs0UHrFlHKoGKm4Zovz0+nR4P W0RYVNrfXH4rt/0qd2HhX3d2CWUMrHZV2PeYc=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

On Tue, Mar 22, 2011 at 2:26 AM, Frank Pan <frankpzh@xxxxxxxxx> wrote:
> In recent pv-ops kernel, pvclock is not guaranteed as monotone.
> After a migration, pvclock can produce smaller cycle count.
>
> [The test is performed on next-2.6.32 tree]
> The issue occured when uptime(sender) > uptime(target), and with
> CONFIG_GENERIC_TIME. The guest get stucked after the migration,
> doing a huge loop inside update_wall_time, until the overflow of
> 64-bit unsigned offset.
>
> The following patch fixed this issue by introducing a global sign.
> Xen pvclock will update the cycle_last with the newest cycle count
> on the first read after migration.

It seems the issue is not that simple. This issue can be well solved by
the suspend/resume code of timekeeper sysdev. However, the recent
code may think this is not necessary on hvm domain. (How can I find the
reason here?)

I don't know if it's ok to add a pair of sysdev_suspend/sysdev_resume inside
xen_hvm_suspend. If not, this patch can be a quickfix/solution.

Any ideas on this issue?

-- 
æéç, Frank Pan

Computer Science and Technology
Tsinghua University

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.