
On 05/15/2014 04:13 PM, Michal Privoznik wrote:
These APIs are exposed under new virsh command 'domtime' which both gets and sets (not at the same time of course :)).
Signed-off-by: Michal Privoznik <mprivozn@redhat.com> ---
diff to v4: - changed wording in some help messages - use VSH_EXCLUSIVE_OPTIONS instead explicit separate code
tools/virsh-domain-monitor.c | 116 +++++++++++++++++++++++++++++++++++++++++++ tools/virsh.pod | 18 +++++++ 2 files changed, 134 insertions(+)
+ +Gets or sets the domain's system time. When run without any arguments +(but I<domain>), the current domain's system time is printed out. The +I<--pretty> modifier can be used to print the time in more human +readable form. + +When I<--time> B<time> is specified, the domain's time is +not get but set instead. The I<--now> modifier acts like if it was an
s/get/gotten/ I think
+alias for I<--time> B<$now>, which means it sets the time that is +currently on the host virsh is running at. In both cases (setting and +getting), time is in seconds relative to Epoch of 1970-01-01 in UTC. +The I<--sync> modifies the set behavior a bit: The time passed is +ignored, but the time to set is read from domain's RTC instead. Please +note, that some hypervisors may require a guest agent to be configured +in order to get or set the guest time. + =item B<domxml-from-native> I<format> I<config>
Convert the file I<config> in the native guest configuration format
ACK Jan