[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [RFC Patch v2 04/16] dominfo.completeRestore() will be called more than once in colo mode
The SVM is running in colo mode, so we will call dominfo.completeRestore() more than once. Some works in dominfo.completeRestore() should be done only once. Signed-off-by: Ye Wei <wei.ye1987@xxxxxxxxx> Signed-off-by: Jiang Yunhong <yunhong.jiang@xxxxxxxxx> Signed-off-by: Wen Congyang <wency@xxxxxxxxxxxxxx> --- tools/python/xen/xend/XendDomainInfo.py | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index e9d3e7e..b5b2db9 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -3011,18 +3011,19 @@ class XendDomainInfo: # TODO: recategorise - called from XendCheckpoint # - def completeRestore(self, store_mfn, console_mfn): + def completeRestore(self, store_mfn, console_mfn, first_time = True): log.debug("XendDomainInfo.completeRestore") self.store_mfn = store_mfn self.console_mfn = console_mfn - self._introduceDomain() - self.image = image.create(self, self.info) - if self.image: - self.image.createDeviceModel(True) - self._storeDomDetails() + if first_time: + self._introduceDomain() + self.image = image.create(self, self.info) + if self.image: + self.image.createDeviceModel(True) + self._storeDomDetails() self._registerWatches() self.refreshShutdown() -- 1.7.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |