From: Ian Campbell Subject: Re: HVM Migration of domU on Qemu-upstream DM causes stuck system clock with ACPI Date: Fri, 31 May 2013 13:34:41 +0100 Message-ID: <1370003681.5199.128.camel@zakaz.uk.xensource.com> References: <1717491994.10371605.1369131737226.JavaMail.root@zimbra002> <519B50C9.1000008@citrix.com> <519B577E.6070200@flexiant.com> <519B6D51.2060508@citrix.com> <951B3441BAE2324286D3AA6D@Ximines.local> <420439EA40B15FCBFDFF2BE3@nimrod.local> <1369557503.22605.11.camel@dagon.hellion.org.uk> <51A4C7EB.1010406@flexiant.com> <51A7767A.9030904@flexiant.com> <51A7791C.2020208@eu.citrix.com> <51A8608F.9000302@flexiant.com> <51A88151.3080001@eu.citrix.com> <0FE70400-1152-45F5-9BF9-973DF1DA9EE8@flexiant.com> <51A88E3E.5090208@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <51A88E3E.5090208@eu.citrix.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: George Dunlap Cc: Konrad Rzeszutek Wilk , "xen-devel@lists.xen.org" , David Vrabel , Alex Bligh , Anthony PERARD , Diana Crisan List-Id: xen-devel@lists.xenproject.org On Fri, 2013-05-31 at 12:49 +0100, George Dunlap wrote: > The problem appears to be that Linux thinks it's asking for something in > the future, but is actually asking for something in the past. It must > look at its watch just before the final domain pause, and then asks for > the time just after the migration resumes on the other side. So it > doesn't realize that 10ms (or something) has already passed, and that > it's actually asking for a timer in the past. I suppose the root cause of this is that the type of migration being used is completely transparent to the guest? Unlike, say, a PV aware migration or an S3 suspend where the guest is aware and will quiesce things such that it won't look at the time before and use it after. TBH I don't know how you either determine or control which type of migration is done... > The Xen timer driver in > Linux specifically asks Xen for times set in the past to return an > error. Xen is returning an error because the time is in the past, Linux > thinks it's getting an error because the time is too close in the future > and tries asking a little further away. > > Unfortunately I think this is something which needs to be fixed on the > Linux side; I don't really see how we can work around it in Xen. > > -George