diff options
author | Lei Li <lilei@linux.vnet.ibm.com> | 2013-03-05 17:39:12 +0800 |
---|---|---|
committer | Michael Roth <mdroth@linux.vnet.ibm.com> | 2013-03-11 18:53:47 -0500 |
commit | a1bca57f758a1ebe2ee808aa6c94f7687f9cfdd0 (patch) | |
tree | 1e1ad065cf1c44521c3cafe668f660b0e1582bed /qga/qapi-schema.json | |
parent | 6912e6a94cb0a1d650271103efbc3ac2299e4fd0 (diff) |
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.json | 26 |
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. |