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

xen-changelog

[Xen-changelog] [xen-unstable] [XEND] Prevent invalid arguments for dest

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [XEND] Prevent invalid arguments for destroy event channels.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 25 Jan 2007 08:55:18 -0800
Delivery-date: Thu, 25 Jan 2007 08:57:28 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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 Alastair Tse <atse@xxxxxxxxxxxxx>
# Date 1169646877 0
# Node ID f06f8e134c4829f9583f6f15da828b2e24f1a89d
# Parent  9292da5e9a27344e26e5e81dbfcf391f13c4e5fd
[XEND] Prevent invalid arguments for destroy event channels.

Signed-off-by: Alastair Tse <atse@xxxxxxxxxxxxx>
---
 tools/python/xen/xend/XendDomainInfo.py |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff -r 9292da5e9a27 -r f06f8e134c48 tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py   Wed Jan 24 13:49:25 2007 +0000
+++ b/tools/python/xen/xend/XendDomainInfo.py   Wed Jan 24 13:54:37 2007 +0000
@@ -1577,18 +1577,21 @@ class XendDomainInfo:
         """Create an event channel to the domain.
         """
         try:
-            return xc.evtchn_alloc_unbound(domid=self.domid, remote_dom=0)
+            if self.domid != None:
+                return xc.evtchn_alloc_unbound(domid = self.domid,
+                                               remote_dom = 0)
         except:
-            log.exception("Exception in alloc_unbound(%d)", self.domid)
+            log.exception("Exception in alloc_unbound(%s)", str(self.domid))
             raise
 
     def _resetChannels(self):
         """Reset all event channels in the domain.
         """
         try:
-            return xc.evtchn_reset(dom=self.domid)
+            if self.domid != None:
+                return xc.evtchn_reset(dom = self.domid)
         except:
-            log.exception("Exception in evtcnh_reset(%d)", self.domid)
+            log.exception("Exception in evtcnh_reset(%s)", str(self.domid))
             raise
 
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [XEND] Prevent invalid arguments for destroy event channels., Xen patchbot-unstable <=