From: Keir Fraser Date: Thu, 22 Apr 2010 08:42:37 +0000 (+0100) Subject: xend: don't drop device config on domain start failure X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~12319 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=77af399e7ff34b3978f5271843e38bce1d66077d;p=xen.git xend: don't drop device config on domain start failure If domain creation in xend fails before devices are configured, e.g. insufficient memory, device config is dropped from xend's managed domain config. Once xend is restarted, the domain's devices are lost. This patch fixes a bug in XendConfig where only the device controller was consulted for device configuration. Signed-off-by: Jim Fehlig --- diff --git a/tools/python/xen/xend/XendConfig.py b/tools/python/xen/xend/XendConfig.py index c468b19252..57903a57fc 100644 --- a/tools/python/xen/xend/XendConfig.py +++ b/tools/python/xen/xend/XendConfig.py @@ -1171,8 +1171,8 @@ class XendConfig(dict): config.append(['VDI', dev_cfg.get('VDI', '')]) sxpr.append(['device', config]) + found = True - found = True except: log.exception("dumping sxp from device controllers") pass