qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [RFC PATCH 0/3] Time resync support by qemu-ga
@ 2013-01-06 10:06 Lei Li
  2013-01-06 10:06 ` [Qemu-devel] [PATCH 1/3] qga: add support to get host time Lei Li
                   ` (3 more replies)
  0 siblings, 4 replies; 25+ messages in thread
From: Lei Li @ 2013-01-06 10:06 UTC (permalink / raw)
  To: qemu-devel; +Cc: aliguori, mdroth, Lei Li

This patch series attempts to add time resync support
to qemu-ga by introducing qemu-ga commands guest-get-time
and guest-set-time.

Right now, when a guest is paused or migrated to a file
then loaded from that file, the guest OS has no idea that
there was a big gap in the time. Depending on how long the
gap was, NTP might not be able to resynchronize the guest.
So adding new guest-agent command that is called any time
a guest is resumed  and which tells the guest to update its
own wall clock time based on the information from the host
will make it easier for a guest to resynchronize without
waiting for NTP.

The previous RFC send for discussion and suggestion as link
here:

http://article.gmane.org/gmane.comp.emulators.qemu/186126

The interface for these commands like:

{ 'command': 'guest-get-time', 'returns': 'HostTimeInfo' }

{ 'command': 'guest-set-time',
  'data': { '*seconds': 'int', '*microseconds': 'int',
            '*utc-offset': 'int' } }

TODO:
This is a RFC version with POSIX-specific command implemented.
I just test on Linux guest, will add win32-specific command to
support Windows guest later. Since I want to make sure if this
seems like the way we should be headed.

Your comments and suggestions are very welcome!

Lei Li (3):
  qga: add support to get host time
  qga: add guest-get-time command
  qga: add guest-set-time command

^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2013-01-14 15:00 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-06 10:06 [Qemu-devel] [RFC PATCH 0/3] Time resync support by qemu-ga Lei Li
2013-01-06 10:06 ` [Qemu-devel] [PATCH 1/3] qga: add support to get host time Lei Li
2013-01-07 21:52   ` Eric Blake
2013-01-11  7:18     ` Lei Li
2013-01-11 15:37       ` Eric Blake
2013-01-14  3:17         ` Lei Li
2013-01-14 14:23           ` Eric Blake
2013-01-09 13:32   ` Luiz Capitulino
2013-01-11  7:19     ` Lei Li
2013-01-11 11:14       ` Luiz Capitulino
2013-01-09 15:36   ` mdroth
2013-01-11  7:20     ` Lei Li
2013-01-06 10:06 ` [Qemu-devel] [PATCH 2/3] qga: add guest-get-time command Lei Li
2013-01-07 22:04   ` Eric Blake
2013-01-11  7:37     ` Lei Li
2013-01-11 17:28       ` mdroth
2013-01-09 13:33   ` Luiz Capitulino
2013-01-11  7:50     ` Lei Li
2013-01-06 10:07 ` [Qemu-devel] [PATCH 3/3] qga: add guest-set-time command Lei Li
2013-01-07 22:26   ` Eric Blake
2013-01-11  8:00     ` Lei Li
2013-01-09 13:40   ` Luiz Capitulino
2013-01-11  8:03     ` Lei Li
2013-01-07 19:01 ` [Qemu-devel] [RFC PATCH 0/3] Time resync support by qemu-ga Eric Blake
2013-01-11  7:36   ` Lei Li

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).