All of lore.kernel.org
 help / color / mirror / Atom feed
From: ANNIE LI <annie.li@oracle.com>
To: Tim Deegan <Tim.Deegan@citrix.com>
Cc: Paul Durrant <Paul.Durrant@citrix.com>,
	"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: how to keep time of windows pvhvm synchronized with host after resuming
Date: Fri, 24 Sep 2010 21:53:49 +0800	[thread overview]
Message-ID: <4C9CAD6D.3030803@oracle.com> (raw)
In-Reply-To: <20100923081912.GC22692@whitby.uk.xensource.com>



Sorry for my slow response since vacation in China now. :-)
>
> I had expected arch_set_info_guest() to be called for every vcpu in the
> HVM guest on restore, because boot_vcpu() is called from hvm_load_cpu_ctxt().
arch_set_info_guest is called when vm is booting, but it is not called 
on HVM guest restore.
I will check boot_vcpu() and hvm_load_cpu_ctxt() further.
> Yes, do_settime() updates the master copy of wc_sec and wc_nsec from its
> inputs, and then copies them to all domains' private copies.  So the
> question is:
>   - is the _master_ copy of wc_sec always zero; or
 From my recent logs, wc_sec is not zero, but it always keeps as certain 
unchanged value. In do_settime(...),
Input parameters secs, nsecs and system_time_base change every time when 
calling this function. But wc_secs
keep unchanged although it is calculated from those 3 parameters by: 
(secs * 1000000000ULL) + (u64)nsecs - system_time_base;
Anything wrong here?
>   - is the master copy right and the HVM domain's copy wrong; or
Is update_domain_wallclock_time doing HVM domain's copy? From my log, 
wc_secs of HVM domain's copy is
same as that of master copy.
>   - is the HVM domain's copy right as seen from Xen but
>     wrong as seen from the tools inside the guest?
wc_secs value from tools inside the guest is same as HVM domain's copy.
> (i.e. is wallclock broken, is propagation broken, or are the tools and
> Xen using different layouts for the shared_info page?)
Maybe something wrong, it seems the log printed is not identical with 
what you expected.

Thanks
Annie.

  reply	other threads:[~2010-09-24 13:53 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-16  8:30 how to keep time of windows pvhvm synchronized with host after resuming ANNIE LI
2010-09-16  8:59 ` Paul Durrant
2010-09-16  9:19   ` Tim Deegan
2010-09-16 10:00     ` ANNIE LI
2010-09-17 10:44     ` ANNIE LI
2010-09-17 11:43       ` Tim Deegan
2010-09-17 14:37         ` ANNIE LI
2010-09-22  8:51         ` ANNIE LI
2010-09-23  8:19           ` Tim Deegan
2010-09-24 13:53             ` ANNIE LI [this message]
2010-09-24 15:18               ` Tim Deegan
2010-09-25  2:26                 ` ANNIE LI
2010-09-25  7:27                   ` ANNIE LI
2010-09-27  9:53                     ` Tim Deegan
2010-09-28  3:54                       ` ANNIE LI
2010-09-28  9:00                         ` Tim Deegan

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=4C9CAD6D.3030803@oracle.com \
    --to=annie.li@oracle.com \
    --cc=Paul.Durrant@citrix.com \
    --cc=Tim.Deegan@citrix.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.