From: Ian Campbell Subject: Re: HVM Migration of domU on Qemu-upstream DM loses ACPI data in xenstore Date: Mon, 20 May 2013 09:40:01 +0100 Message-ID: <1369039201.2083.5.camel@zakaz.uk.xensource.com> References: <1230090824.8634328.1368537142268.JavaMail.root@zimbra002> <1368812028.24012.64.camel@hastur.hellion.org.uk> <1368874943.12438.19.camel@dagon.hellion.org.uk> <7AD24E5E5612F30F1D9EC307@nimrod.local> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <7AD24E5E5612F30F1D9EC307@nimrod.local> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Alex Bligh Cc: Diana Crisan , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Sat, 2013-05-18 at 12:17 +0100, Alex Bligh wrote: > Ian, > > --On 18 May 2013 12:02:23 +0100 Ian Campbell > wrote: > > > These keys have nothing to do with that, all they do is cause hvmloader > > to expose ACPI tables to the guest or to tweak the content of those > > tables. That state is preserved as part of the memory image of the > > guest. The qemu state is also pickled as part of the save image. > > > > ACPI is jut a set of tables describing the hardware, there's no > > "emulation" to turn off and on. Whatever magic I/O ports the ACPI AML > > references are always on, the setting just controls whether the guest > > gets to see that via the AML. > > Thanks. So it could not be that the guest gets to see that via the AML > pre migration, but not post migration? AML lives in guest RAM, so no. > In that case I can only conclude that some part of the qemu state > is not migrating correctly, and the fact that it the cluck stock > doesn't happen if ACPI is enabled in xl.conf is only relevant as > it influences how the guest (linux in this case) chooses its clock > source (i.e. its broken in any case, just the guest does not notice > if the relevant ACPI dtables aren't exposed). You could perhaps verify this somewhat by playing with the kernel's clocksource= option. Most (all?) of the clocks are actually emulated by the hypervisor rather than qemu for performance reasons, but that state is also pickled over a migrate. > Any ideas on how to debug this further? It is odd that the date command > (used to set a date) will unstick the clock. I'd have thought that would only poke the RTC, but to be honest I'm not sure. Ian.