WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Xen

xen-devel

[Top] [All Lists]

[Xen-devel] [PATCH] xend: don't drop device config on domain start failu

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] xend: don't drop device config on domain start failure
From: Jim Fehlig <jfehlig@xxxxxxxxxx>
Date: 2010年4月21日 19:55:37 -0600
Delivery-date: 2010年4月21日 18:58:09 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.23 (X11/20090817)
If domain creation in xend fails before devices are configured, e.g.
insufficient memory, device config is dropped from xend's managed domain
config.
# cat
/var/lib/xend/domains/70c7bace-af44-1343-1e8f-a6e149632f4a/config.sxp |
grep device
 (device_model /usr/lib/xen/bin/qemu-dm)
 (device_model /usr/lib/xen/bin/qemu-dm)
 (device
 (device (vkbd (backend 0)))
 (device
 (device
 (device
# xm start test1
Error: I need 4194816 KiB, but dom0_min_mem is 524288 and shrinking to
524288 KiB would leave only 3568556 KiB free.
# cat
/var/lib/xend/domains/70c7bace-af44-1343-1e8f-a6e149632f4a/config.sxp |
grep device
 (device_model /usr/lib/xen/bin/qemu-dm)
 (device_model /usr/lib/xen/bin/qemu-dm)
Once xend is restarted, the domain's devices are lost.
The attached patch fixes a bug in XendConfig where only the device
controller was consulted for device configuration.
Regards,
Jim
 Signed-off-by: Jim Fehlig <jfehlig@xxxxxxxxxx>
Index: xen-4.0.0-testing/tools/python/xen/xend/XendConfig.py
===================================================================
--- xen-4.0.0-testing.orig/tools/python/xen/xend/XendConfig.py
+++ xen-4.0.0-testing/tools/python/xen/xend/XendConfig.py
@@ -1173,8 +1173,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
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] xend: don't drop device config on domain start failure, Jim Fehlig <=
Previous by Date: Re: [Xen-devel] pci-passthrough not working on 4.0.1-rc1-pre: mm.c:3847:d10 Bad page 00000000001beab4: ed=ffff830151210000(10), sd=ffff830151210000, caf=8000000000000002, taf=7400000000000001 , listmail
Next by Date: [Xen-devel][PATCH] Fix HVM guest memory allocation in 1GB case , Xu, Dongxiao
Previous by Thread: Re: [Xen-users] Attempting to checksum a non-TCP/UDP packet errors rolling across screen , Pasi Kärkkäinen
Next by Thread: [Xen-devel][PATCH] Fix HVM guest memory allocation in 1GB case , Xu, Dongxiao
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /