Skip to contentSkip to conversation

Question: xm reboot and waitForDevices

PATCH Masaki Kanno 1 participant 1 message Sep 6, 2007

lore
Share & tools
lore
#0 lore raw

Hi,

Why does not xm reboot command call waitForDevices()? Is the following patch correct?

tools/python/xen/xend/XendDomainInfo.py +1 -0
diff -r 256160ff19b7 tools/python/xen/xend/XendDomainInfo.py
@@ -1306,6 +1306,7 @@ class XendDomainInfo:
             try:
                 new_dom = XendDomain.instance().domain_create_from_dict(
                     self.info)
+                new_dom.waitForDevices()
                 new_dom.unpause()
                 rst_cnt = self._readVm('xend/restart_count')
                 rst_cnt = int(rst_cnt) + 1

Best regards,
Kan