From: Keir Fraser Date: Tue, 29 Jan 2008 22:09:09 +0000 (+0000) Subject: Fix mis-merge of xen-unstable:16932. X-Git-Tag: 3.1.3-rc3 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=69cbed1cce648df20c6151d1ff1521cbae47d6b5;p=people%2Fvhanquez%2Fxen.git Fix mis-merge of xen-unstable:16932. Signed-off-by: Keir Fraser --- diff --git a/tools/python/xen/xend/image.py b/tools/python/xen/xend/image.py index b9bb7e18f..c1bbffe07 100644 --- a/tools/python/xen/xend/image.py +++ b/tools/python/xen/xend/image.py @@ -188,6 +188,12 @@ class LinuxImageHandler(ImageHandler): ostype = "linux" + 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(), rtc_timeoffset) + def buildDomain(self): store_evtchn = self.vm.getStorePort() console_evtchn = self.vm.getConsolePort() @@ -267,13 +273,6 @@ class HVMImageHandler(ImageHandler): self.apic = int(vmConfig['platform'].get('apic', 0)) self.acpi = int(vmConfig['platform'].get('acpi', 0)) - - 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(), rtc_timeoffset) - def buildDomain(self): store_evtchn = self.vm.getStorePort()