[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Retrieving the precise guest start time via libxc or similar?



On 02/28/2017 02:36 PM, Razvan Cojocaru wrote:
> Hello,
> 
> xc_domain_getinfo() gets us info->cpu_time, which, if I understand
> correctly, is the guest uptime.
> 
> Is there an officially sanctioned way of retrieving the _exact_ guest
> start time? Obviously we can compute an approximation by doing now -
> info->cpu_time, but we'd like to be able to uniquely identify an OS boot
> -> shutdown cycle, and the difference method is not guaranteed to always
> yield the same result for the same running OS.

Nevermind, found /local/domain/<DOMAIN_ID>/vm/start_time. Seems to do
the trick nicely.


Thanks,
Razvan

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.