mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
for management of shutdown state, XendDomainInfo.refreshShutdown, which is able to cope whatever the current state of the domain. This fixes bug #124: running reboot within a domU doesn't bring the domain back up after shutdown, and bug #256: "xm reboot" could not make domU reboot. Fix the refreshing inside XendDomain to ensure that the values returned by xm list reflect reality correctly. We were removing XendDomainInfo instances, but not creating them on start-up, so if xend were restarted, domain information was being lost. Merge XendDomain.dom0_unknown and initial_refresh into XendDomainInfo.recreate. Catch exceptions inside callInfo, and reraise them as XendErrors. Remove unused XendDomain.close. Further improvements are needed to XendDomainInfo to ensure that it avoids all race conditions on shutdown, and can cope correctly with xend restarting during a shutdown. Signed-off-by: Ewan Mellor <ewan@xensource.com>