From: Andrew Cooper <andrew.cooper3@citrix.com>
To: James Harper <james.harper@bendigoit.com.au>,
"fantonifabio@tiscali.it" <fantonifabio@tiscali.it>,
xen-devel <xen-devel@lists.xensource.com>
Subject: Re: GPLPV questions
Date: Sat, 28 Dec 2013 11:56:30 +0000 [thread overview]
Message-ID: <52BEBC6E.3000304@citrix.com> (raw)
In-Reply-To: <6035A0D088A63A46850C3988ED045A4B685671E0@BITCOM1.int.sbss.com.au>
On 28/12/2013 09:49, James Harper wrote:
>> Thanks for the reply.
>> I don't know if is virtual or hardware clock to resync.
>> When I do save/restore of windows domUs (with gplpv) inside domain on
>> restore the domain users are unable to login until windows time will be
>> updated.
>> I also enabled ntp and tried to set very low time between every ntp
>> check but however, it takes a long time to synchronize.
>> I did a fast search on citrix pv and probably the time update is here:
>> https://github.com/xenserver/win-
>> xeniface/blob/master/src/win32stubagent/XService.cpp
>> on finishSuspend function, there is this comment: /* We need to resync
>> the clock when we recover from suspend/resume. */
> Looks like citrix pv usermode code makes a WMI call into the driver to get the time from xen, and then sets the time back in the usermode code.
>
> Not as straightforward as I might have thought. I don't have a WMI interface but any mechanism of talking to the driver is fine. From a quick look I can't see how the driver gets the clock from Xen though.
>
> James
HVM guests get wallclock time from the shared info page, which awkwardly
changes its exact location between a 32 and 64 bit domains.
Up until recently, the Citrix Windows PV drivers still contained a
hacked HVMPARAM, for which the set_hvmparam manually forced the shinfo
size, and updated the wallclock. The latching of the shinfo size was
fixed a long time ago, but there was still an outstanding bug that when
Qemu stepped the domain wallclock on resume, the domain didn't see the
updated time for a minute or so.
At a first guess, I would say that
http://xenbits.xen.org/gitweb/?p=xen.git;a=commitdiff;h=915a59f25c5eddd86bc2cae6389d0ed2ab87e69e
should fix the problem. To the best of my knowledge, this was the very
last of oustanding issues preventing our PV driver running correctly on
xen-unstable.
~Andrew
next prev parent reply other threads:[~2013-12-28 11:56 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-13 14:19 GPLPV questions Fabio Fantoni
2013-02-13 20:32 ` Konrad Rzeszutek Wilk
2013-02-13 22:26 ` James Harper
2013-02-14 11:13 ` Fabio Fantoni
2013-02-14 11:16 ` James Harper
2013-02-14 11:31 ` Fabio Fantoni
2013-02-20 10:57 ` Fabio Fantoni
2013-02-20 11:03 ` James Harper
2013-02-20 11:23 ` Fabio Fantoni
2013-02-20 12:04 ` James Harper
2013-02-20 13:14 ` Fabio Fantoni
2013-02-27 11:15 ` Fabio Fantoni
2013-03-15 14:34 ` Stefan.Hausotte
2013-03-16 0:44 ` James Harper
2013-12-27 13:52 ` Fabio Fantoni
2013-12-27 22:52 ` James Harper
2013-12-28 8:33 ` Fabio Fantoni
2013-12-28 9:49 ` James Harper
2013-12-28 11:56 ` Andrew Cooper [this message]
2014-01-03 18:16 ` Pasi Kärkkäinen
2013-02-13 22:53 ` James Harper
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=52BEBC6E.3000304@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=fantonifabio@tiscali.it \
--cc=james.harper@bendigoit.com.au \
--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.