mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
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@eu.citrix.com>
This commit is contained in:
1 parent
5bb8a6fad8
commit
aa3ca83fda
2 files changed
+3
-6
No files matched your search
@@ -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()
|
||||
|
||||