From: Eric Blake <eblake@redhat.com>
To: Michal Privoznik <mprivozn@redhat.com>, qemu-devel@nongnu.org
Cc: mdroth@linux.vnet.ibm.com
Subject: Re: [Qemu-devel] [PATCH v2] qga: Don't require 'time' argument in guest-set-time command
Date: Fri, 31 Jan 2014 11:12:14 -0700 [thread overview]
Message-ID: <52EBE77E.2080507@redhat.com> (raw)
In-Reply-To: <a2948dbe0f8a451b3f23fb2bc45357a0e7dc53de.1391164056.git.mprivozn@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1600 bytes --]
On 01/31/2014 03:29 AM, Michal Privoznik wrote:
> As the description to the guest-set-time states, the command is
> there to ease time synchronization after resume. If guest was
> suspended for longer period of time, its system time can go off
> so badly, that even NTP refuses to set it. That's why the command
> was invented: to give users chance to set the time (not
> necessarily 100% correct). However, there's is no real need for
> us to require users to pass an arbitrary time. Especially if we
> can read the correct value from RTC (boiling down to reading
> host's time). Hence this commit enables logic:
>
> guest-set-time() == guest-set-time($now_from_rtc)
>
> Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
> ---
> diff to v1:
> -Fix checkpatch.pl warnings
>
> qga/commands-posix.c | 41 +++++++++++++++++++++++++----------------
> qga/commands-win32.c | 34 +++++++++++++++++++++++-----------
> qga/qapi-schema.json | 9 +++++----
> 3 files changed, 53 insertions(+), 31 deletions(-)
Reviewed-by: Eric Blake <eblake@redhat.com>
Conversion from mandatory to optional is backward-compatible. I'm not
sure if it worth some sort of annotation when it was made optional; maybe:
# @time: (#optional since 2.0) time of nanoseconds, relative to the
# Epoch of 1970-01-01 in UTC.
we don't have much precedent for that sort of change, but documenting it
may make it more obvious to a user that older agents require an argument.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
next prev parent reply other threads:[~2014-01-31 18:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-31 10:29 [Qemu-devel] [PATCH v2] qga: Don't require 'time' argument in guest-set-time command Michal Privoznik
2014-01-31 18:12 ` Eric Blake [this message]
2014-02-13 17:33 ` Michal Privoznik
2014-02-24 1:00 ` Michael Roth
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=52EBE77E.2080507@redhat.com \
--to=eblake@redhat.com \
--cc=mdroth@linux.vnet.ibm.com \
--cc=mprivozn@redhat.com \
--cc=qemu-devel@nongnu.org \
/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.