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

[Xen-changelog] [xen-unstable] tools: Make xend set time offset for all kinds of domains, so that



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1207901643 -3600
# Node ID 082d3886fded0ba361eafff82cda651acffc53cd
# Parent  1ce8b4e51911376aed7bd906ced0e1fb27753d90
tools: Make xend set time offset for all kinds of domains, so that
ioemu doesn't need to do it.

Signed-off-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>
---
 tools/ioemu/target-i386-dm/helper2.c |    2 --
 tools/python/xen/xend/image.py       |    7 +++----
 2 files changed, 3 insertions(+), 6 deletions(-)

diff -r 1ce8b4e51911 -r 082d3886fded tools/ioemu/target-i386-dm/helper2.c
--- a/tools/ioemu/target-i386-dm/helper2.c      Fri Apr 11 09:12:56 2008 +0100
+++ b/tools/ioemu/target-i386-dm/helper2.c      Fri Apr 11 09:14:03 2008 +0100
@@ -391,8 +391,6 @@ void timeoffset_get(void)
        fprintf(logfile, "Time offset set %ld\n", time_offset);
     else
        time_offset = 0;
-
-    xc_domain_set_time_offset(xc_handle, domid, time_offset);
 
     free(p);
 }
diff -r 1ce8b4e51911 -r 082d3886fded tools/python/xen/xend/image.py
--- a/tools/python/xen/xend/image.py    Fri Apr 11 09:12:56 2008 +0100
+++ b/tools/python/xen/xend/image.py    Fri Apr 11 09:14:03 2008 +0100
@@ -99,7 +99,9 @@ class ImageHandler:
         self.vncconsole = vmConfig['platform'].get('vncconsole')
         self.dmargs = self.parseDeviceModelArgs(vmConfig)
         self.pid = None
-
+        rtc_timeoffset = vmConfig['platform'].get('rtc_timeoffset')
+        if rtc_timeoffset is not None:
+            xc.domain_set_time_offset(self.vm.getDomid(), int(rtc_timeoffset))
 
 
     def cleanupBootloading(self):
@@ -419,9 +421,6 @@ class LinuxImageHandler(ImageHandler):
 
     def configure(self, vmConfig):
         ImageHandler.configure(self, vmConfig)
-        rtc_timeoffset = vmConfig['platform'].get('rtc_timeoffset')
-        if rtc_timeoffset is not None:
-            xc.domain_set_time_offset(self.vm.getDomid(), int(rtc_timeoffset))
 
     def buildDomain(self):
         store_evtchn = self.vm.getStorePort()

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

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