[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] ioemu & settimeoffset [Was: Clean up handling of IS_PRIV_FOR() and rcu_[un]lock_domain()]
Keir Fraser, le Sat 29 Mar 2008 11:47:57 +0000, a écrit : > > DOMCTL_settimeoffset is needed. > > Why is this done in ioemu and not in xend (it's already done there for PV > guests). I don't see a reason indeed, the attached patch seems to work fine. Samuel 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> diff -r 8d750b7acfa3 tools/ioemu/target-i386-dm/helper2.c --- a/tools/ioemu/target-i386-dm/helper2.c Thu Apr 10 11:11:25 2008 +0100 +++ b/tools/ioemu/target-i386-dm/helper2.c Thu Apr 10 16:36:05 2008 +0100 @@ -391,8 +391,6 @@ 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); } --- a/tools/python/xen/xend/image.py Thu Apr 10 11:11:25 2008 +0100 +++ b/tools/python/xen/xend/image.py Thu Apr 10 16:36:05 2008 +0100 @@ -99,7 +99,9 @@ ImageHandler configure 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 @@ LinuxImageHandler configure 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-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |