|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] [XEND] Prevent invalid arguments for dest
# 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 <=
|
|
|
|
|