qga: trivial fix for unclear documentation of guest-set-time

We mixed the use of "guest time", "system time", "hardware time",
"RTC" in documentation, it's unclear.

This patch just added two remarks of RTC and replace two "guest time"
by "guest's system time".

Signed-off-by: Amos Kong <akong@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
Amos Kong 2014-04-04 23:25:02 +08:00 committed by Michael Tokarev
parent b321afbefd
commit 1634df567d
2 changed files with 8 additions and 8 deletions

View File

@ -171,7 +171,7 @@ void qmp_guest_set_time(bool has_time, int64_t time_ns, Error **errp)
/* Now, if user has passed a time to set and the system time is set, we /* Now, if user has passed a time to set and the system time is set, we
* just need to synchronize the hardware clock. However, if no time was * just need to synchronize the hardware clock. However, if no time was
* passed, user is requesting the opposite: set the system time from the * passed, user is requesting the opposite: set the system time from the
* hardware clock. */ * hardware clock (RTC). */
pid = fork(); pid = fork();
if (pid == 0) { if (pid == 0) {
setsid(); setsid();

View File

@ -96,8 +96,8 @@
## ##
# @guest-get-time: # @guest-get-time:
# #
# Get the information about guest time relative to the Epoch # Get the information about guest's System Time relative to
# of 1970-01-01 in UTC. # the Epoch of 1970-01-01 in UTC.
# #
# Returns: Time in nanoseconds. # Returns: Time in nanoseconds.
# #
@ -117,11 +117,11 @@
# gap was, NTP might not be able to resynchronize the # gap was, NTP might not be able to resynchronize the
# guest. # guest.
# #
# This command tries to set guest time to the given value, # This command tries to set guest's System Time to the
# then sets the Hardware Clock to the current System Time. # given value, then sets the Hardware Clock (RTC) to the
# This will make it easier for a guest to resynchronize # current System Time. This will make it easier for a guest
# without waiting for NTP. If no @time is specified, then # to resynchronize without waiting for NTP. If no @time is
# the time to set is read from RTC. # specified, then the time to set is read from RTC.
# #
# @time: #optional time of nanoseconds, relative to the Epoch # @time: #optional time of nanoseconds, relative to the Epoch
# of 1970-01-01 in UTC. # of 1970-01-01 in UTC.