|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] Attached patch removes the empty domain if
# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID c1c9a281eac29f77d72790b0e6c0d9b0977a9665
# Parent 9b436c6bf2bd6fdce9333cb386a8fb7ebd38881a
Attached patch removes the empty domain if
xc.memory_increase_reservation fails.
Signed-off-by: Anthony Liguori <aliguori@xxxxxxxxxx>
diff -r 9b436c6bf2bd -r c1c9a281eac2 tools/python/xen/xend/image.py
--- a/tools/python/xen/xend/image.py Tue Jul 26 15:16:39 2005
+++ b/tools/python/xen/xend/image.py Tue Jul 26 16:16:39 2005
@@ -130,7 +130,13 @@
# xc.domain_setuuid(dom, uuid)
xc.domain_setcpuweight(dom, cpu_weight)
xc.domain_setmaxmem(dom, mem_kb)
- xc.domain_memory_increase_reservation(dom, mem_kb)
+
+ try:
+ xc.domain_memory_increase_reservation(dom, mem_kb)
+ except:
+ xc.domain_destroy(dom)
+ raise
+
if cpu != -1:
xc.domain_pincpu(dom, 0, 1<<int(cpu))
return dom
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] Attached patch removes the empty domain if,
Xen patchbot -unstable <=
|
|
|
|
|