xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Diana Crisan <dcrisan@flexiant.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: Alex Bligh <alex@alex.org.uk>, xen-devel@lists.xen.org
Subject: Re: HVM Migration of domU on Qemu-upstream DM loses ACPI data in xenstore
Date: Tue, 21 May 2013 11:08:14 +0100 (BST)	[thread overview]
Message-ID: <485231334.10362771.1369130894695.JavaMail.root@zimbra002> (raw)
In-Reply-To: <1369051279.10868.28.camel@zakaz.uk.xensource.com>

Hello Ian,

>On Mon, 2013-05-20 at 12:50 +0100, Alex Bligh wrote:
>> Ian,
>> 
>> --On 20 May 2013 09:40:01 +0100 Ian Campbell <Ian.Campbell@citrix.com> 
>> wrote:
>> 
>> > You could perhaps verify this somewhat by playing with the kernel's
>> > clocksource= option.
>> 
>> clocksource=[hpet|pit|tsc|acpi_pm|cyclone|scx200_hrt]
>> 
>> I'm guessing clocksource=tsc is the least dependent on 'other stuff'.

>It'd be a good one to start with. You should be able to confirm under
>sysfs which one is used now, I'm guessing it is acpi_pm.

>It'd be worth trying each of the first 4 though. cyclone and scx200 seem
>a bit specific...

I tested the first 4 options with both xen 4.2 and xen 4.3. Please see below my findings:

Under 4.2:
tsc: cannot use this as not HRT compatible; can't switch while in HRT/NOHZ mode
hpet: activated according to dmesg; after migration got this error:
"i8042 no controller found; pm: device i8042 failed to restore: error -19"
and this error (??) got the clock stuck again
pit: did not get an error, but it did not seem to have listened to my request as I could see in dmesg it reading my request to switch to clocksource=pit but choosing to set the xen clocksource.


Under 4.3:
tsc: as above, not HRT compatible so cannot use it.
hpet: still get the clock stuck after several migrations (3-4 migrations)
pit: as above it is ignored.
acpi_pm: it seems to be easier to replicate the problem with this clocksource - got it on the first migrate.


Notes: the wallclock (date) and RTC  (clock -r) on the hosts were in sync within a second


>> We'll have a play.
>> 
>> >> 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.
>> 
>> I'm pretty sure date itself only changes the wallclock (the clock command
>> normally being needed to write to the RTC).

>Yes, I think you are right.

>>  If the images are running
>> ntp, that may notice the wallclock change and write to CMOS I guess.


Please let me know if you need any more details.

-- 
Diana Crisan 

      reply	other threads:[~2013-05-21 10:08 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <514405924.8634267.1368537117719.JavaMail.root@zimbra002>
2013-05-14 13:12 ` HVM Migration of domU on Qemu-upstream DM loses ACPI data in xenstore Diana Crisan
2013-05-17 17:33   ` Ian Campbell
2013-05-18  9:52     ` Alex Bligh
2013-05-18 11:02       ` Ian Campbell
2013-05-18 11:17         ` Alex Bligh
2013-05-20  8:40           ` Ian Campbell
2013-05-20 11:50             ` Alex Bligh
2013-05-20 12:01               ` Ian Campbell
2013-05-21 10:08                 ` Diana Crisan [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=485231334.10362771.1369130894695.JavaMail.root@zimbra002 \
    --to=dcrisan@flexiant.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=alex@alex.org.uk \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).