summaryrefslogtreecommitdiffstats
path: root/qga/qapi-schema.json
diff options
context:
space:
mode:
authorLei Li2013-03-05 10:39:12 +0100
committerMichael Roth2013-03-12 00:53:47 +0100
commita1bca57f758a1ebe2ee808aa6c94f7687f9cfdd0 (patch)
tree1e1ad065cf1c44521c3cafe668f660b0e1582bed /qga/qapi-schema.json
parentqga: add guest-get-time command (diff)
downloadqemu-a1bca57f758a1ebe2ee808aa6c94f7687f9cfdd0.tar.gz
qemu-a1bca57f758a1ebe2ee808aa6c94f7687f9cfdd0.tar.xz
qemu-a1bca57f758a1ebe2ee808aa6c94f7687f9cfdd0.zip
qga: add guest-set-time command
Signed-off-by: Lei Li <lilei@linux.vnet.ibm.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com> *added stub for w32 Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Diffstat (limited to 'qga/qapi-schema.json')
-rw-r--r--qga/qapi-schema.json26
1 files changed, 26 insertions, 0 deletions
diff --git a/qga/qapi-schema.json b/qga/qapi-schema.json
index bb0f75ee5d..437d750e34 100644
--- a/qga/qapi-schema.json
+++ b/qga/qapi-schema.json
@@ -96,6 +96,32 @@
'returns': 'int' }
##
+# @guest-set-time:
+#
+# Set guest time.
+#
+# 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.
+#
+# This command tries to set guest time to the given value,
+# then sets the Hardware Clock to the current System Time.
+# This will make it easier for a guest to resynchronize
+# without waiting for NTP.
+#
+# @time: time of nanoseconds, relative to the Epoch of
+# 1970-01-01 in UTC.
+#
+# Returns: Nothing on success.
+#
+# Since: 1.5
+##
+{ 'command': 'guest-set-time',
+ 'data': { 'time': 'int' } }
+
+##
# @GuestAgentCommandInfo:
#
# Information about guest agent commands.