WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] how to keep time of windows pvhvm synchronized with host

To: Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Subject: Re: [Xen-devel] how to keep time of windows pvhvm synchronized with host after resuming
From: ANNIE LI <annie.li@xxxxxxxxxx>
Date: Fri, 24 Sep 2010 21:53:49 +0800
Cc: Paul Durrant <Paul.Durrant@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 24 Sep 2010 07:00:20 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20100923081912.GC22692@xxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: Oracle Corporation
References: <4C91D5C0.5030802@xxxxxxxxxx> <291EDFCB1E9E224A99088639C47620228CF769FEC1@xxxxxxxxxxxxxxxxxxxxxxxxx> <20100916091914.GC11387@xxxxxxxxxxxxxxxxxxxxxxx> <4C9346AA.4040902@xxxxxxxxxx> <20100917114304.GE11387@xxxxxxxxxxxxxxxxxxxxxxx> <4C99C385.3040602@xxxxxxxxxx> <20100923081912.GC22692@xxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4


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.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>