|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-3.1-testing] Fix restore of saved image containing
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1204551694 0
# Node ID 0af490d31fca218df746a4c52f107e45dee2d885
# Parent e36b867f06fd2f24373ea51ef7e819c229b9f001
Fix restore of saved image containing rtc_timeoffset
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@xxxxxxxxxx>
xen-unstable changeset: 17113:9dd235d6174d1944caf53798a07ecf509678eead
xen-unstable date: Tue Feb 26 14:35:39 2008 +0000
---
tools/python/xen/xend/image.py | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -r e36b867f06fd -r 0af490d31fca tools/python/xen/xend/image.py
--- a/tools/python/xen/xend/image.py Mon Mar 03 13:41:06 2008 +0000
+++ b/tools/python/xen/xend/image.py Mon Mar 03 13:41:34 2008 +0000
@@ -192,7 +192,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()
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-3.1-testing] Fix restore of saved image containing rtc_timeoffset,
Xen patchbot-3.1-testing <=
|
|
|
|
|