* [PATCH] Fix restore of saved image containing rtc_timeoffset
@ 2008-02-25 20:43 Jim Fehlig
0 siblings, 0 replies; only message in thread
From: Jim Fehlig @ 2008-02-25 20:43 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1: Type: text/plain, Size: 265 bytes --]
Saved images contain rtc_timeoffset as a string value, resulting in a
TypeError exception when calling xc.domain_set_time_offset() on
restore. Cast rtc_timeoffset to int before calling
xc.domain_set_time_offset().
Signed-off-by: Jim Fehlig <jfehlig@novell.com>
[-- Attachment #2: xend-restore.diff --]
[-- Type: text/x-patch, Size: 636 bytes --]
diff -r 854b4e5a009f tools/python/xen/xend/image.py
--- a/tools/python/xen/xend/image.py Tue Feb 05 16:42:18 2008 -0700
+++ b/tools/python/xen/xend/image.py Mon Feb 25 13:26:56 2008 -0700
@@ -354,7 +354,7 @@ class LinuxImageHandler(ImageHandler):
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)
+ xc.domain_set_time_offset(self.vm.getDomid(), int(rtc_timeoffset))
def buildDomain(self):
store_evtchn = self.vm.getStorePort()
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-02-25 20:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-25 20:43 [PATCH] Fix restore of saved image containing rtc_timeoffset Jim Fehlig
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.