All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeremy Fitzhardinge <jeremy@goop.org>
To: Keir Fraser <keir.fraser@eu.citrix.com>
Cc: kevin.tian@intel.com, xen-devel@lists.xensource.com,
	James Song <jsong@novell.com>
Subject: Re: RE: RE: [Xen-devel] when timer go back in dom0 save and restore ormigrate, PV domain hung
Date: Thu, 27 Nov 2008 09:51:56 -0800	[thread overview]
Message-ID: <492EDE3C.1020800@goop.org> (raw)
In-Reply-To: <C5542C34.1F9F7%keir.fraser@eu.citrix.com>

Keir Fraser wrote:
> Might this be a pv_ops bug in newer Linux kernels? I don’t really get 
> what you’re describing though.
>
>  -- Keir
>
> On 27/11/08 10:21, "James Song" <jsong@novell.com> wrote:
>
>     Hi,
>          Ok, now two machine A and B. the system-time of A is ahead of
>     B. So wc_sec of A is also bigger than B. When PV dom in A migrate
>     to B, we haven't upate that PV dom's wc_sec to equal with B. Ok,
>     now we see pv dom's kernel:
>         xen_sched_clock() in arch/86/xen/time.c
>     andxen_clocksource_read()  arch/x86/kernel/time_32-xen.c
>       you will find if state_entry_time of its's vcpu, because the
>     state_entry_time is initalized in machine A. this time it more big
>     than "now" of machine B. So no schedule, no system-update in Guest os.
>     I don't whether did I describe it clearly.
>

At one point I had some code in there to work out the delta between the 
system timestamps before and after save/restore, but I think I ended up 
deciding it wasn't necessary because the clocksource and clockevents get 
reinitialized from scratch by the core clock code on resume.

I don't understand your mention of wc_sec, since the wallclock only used 
very occasionally, and never for scheduling.

If this is in relation to the Novell forward-port kernel, perhaps you 
should look at what the mainline pvops xen code in this area.

    J

      reply	other threads:[~2008-11-27 17:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-27 10:21 RE: RE: when timer go back in dom0 save and restore ormigrate, PV domain hung James Song
2008-11-27 10:51 ` Keir Fraser
2008-11-27 17:51   ` Jeremy Fitzhardinge [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=492EDE3C.1020800@goop.org \
    --to=jeremy@goop.org \
    --cc=jsong@novell.com \
    --cc=keir.fraser@eu.citrix.com \
    --cc=kevin.tian@intel.com \
    --cc=xen-devel@lists.xensource.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.