[libvirt-users] time setting after suspend/resume

Eric Blake eblake at redhat.com
Thu Oct 2 13:02:19 UTC 2014

On 10/02/2014 04:01 AM, Martin Kletzander wrote:

>>> What version of libvirt are you using?  Since 1.2.5 there's
>>> virDomainSetTime() API that can do this and since 1.2.8 it's called
>>> automatically after resume.
>> Umm, I have a problem with that statement.  Anything that requires guest
>> interaction (which guest-agent set-time does) must NOT default to being
>> automatic; it is only safe to enable if explicitly allowed.  What is the
>> domain XML that must be explicitly set in order to turn on automatic
>> time-set after resume?
> Oh, sorry, my fault.  I was under the impression that Michal created
> the API especially for this purpose, but looking at the code it's not
> done automatically.

At one point, I seem to recall a proposal of adding an <on_resume> tag
to domain xml that could explicitly request time resync each time the
domain is resumed; but I don't know if anyone implemented it yet.

Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 539 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20141002/ab3a4da8/attachment.sig>

More information about the libvirt-users mailing list