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/
Home Products Support Community News


[Xen-changelog] Attached patch removes the empty domain if

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Attached patch removes the empty domain if
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 26 Jul 2005 12:16:10 -0400
Delivery-date: Tue, 26 Jul 2005 16:16:37 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Attached patch removes the empty domain if, Xen patchbot -unstable <=