This can be used all, but 'virsh domtime --sync $dom'
is dependent on this qemu patch:
http://lists.nongnu.org/archive/html/qemu-devel/2014-01/msg04293.html
Anyway, once all the patches are merged, users can simply do:
virsh resume $dom
virsh domtime --sync $dom
and their guest time won't be off after the resume.
Michal Privoznik (4):
Introduce virDomain{Get,Set}Time APIs
remote: Implement remote{Get,Set}Time
virsh: Expose virDomain{Get,Set}Time
qemu: Implement virDomain{Get,Set}Time
daemon/remote.c | 35 +++++++++++
include/libvirt/libvirt.h.in | 13 +++++
src/access/viraccessperm.c | 2 +-
src/access/viraccessperm.h | 6 ++
src/driver.h | 13 +++++
src/libvirt.c | 91 +++++++++++++++++++++++++++++
src/libvirt_public.syms | 6 ++
src/qemu/qemu_agent.c | 81 ++++++++++++++++++++++++++
src/qemu/qemu_agent.h | 6 ++
src/qemu/qemu_driver.c | 135 +++++++++++++++++++++++++++++++++++++++++++
src/remote/remote_driver.c | 32 ++++++++++
src/remote/remote_protocol.x | 31 +++++++++-
src/remote_protocol-structs | 16 +++++
tools/virsh-domain-monitor.c | 126 ++++++++++++++++++++++++++++++++++++++++
tools/virsh.pod | 16 +++++
15 files changed, 607 insertions(+), 2 deletions(-)
--
1.8.5.3