aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/time.h
diff options
context:
space:
mode:
Diffstat (limited to 'xen/include/xen/time.h')
-rw-r--r--xen/include/xen/time.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/xen/include/xen/time.h b/xen/include/xen/time.h
index 38ead92755..7f29ed1d58 100644
--- a/xen/include/xen/time.h
+++ b/xen/include/xen/time.h
@@ -52,6 +52,8 @@ struct tm gmtime(unsigned long t);
#define MILLISECS(_ms) ((s_time_t)((_ms) * 1000000ULL))
#define MICROSECS(_us) ((s_time_t)((_us) * 1000ULL))
#define STIME_MAX ((s_time_t)((uint64_t)~0ull>>1))
+/* Chosen so (NOW() + delta) wont overflow without an uptime of 200 years */
+#define STIME_DELTA_MAX ((s_time_t)((uint64_t)~0ull>>2))
extern void update_vcpu_system_time(struct vcpu *v);
extern void update_domain_wallclock_time(struct domain *d);