ia64/xen-unstable
changeset 2721:057ea964561d
bitkeeper revision 1.1159.1.263 (41794718665LsSG3Fbsy6vsHfoGMOA)
Use updated evtchn interface to allow console reconnect after xend restart.
Use updated evtchn interface to allow console reconnect after xend restart.
author | cl349@freefall.cl.cam.ac.uk |
---|---|
date | Fri Oct 22 17:44:56 2004 +0000 (2004-10-22) |
parents | cf913b2c5774 |
children | c8a3588babd5 |
files | tools/python/xen/lowlevel/xu/xu.c tools/python/xen/xend/server/channel.py |
line diff
1.1 --- a/tools/python/xen/lowlevel/xu/xu.c Fri Oct 22 16:39:25 2004 +0000 1.2 +++ b/tools/python/xen/lowlevel/xu/xu.c Fri Oct 22 17:44:56 2004 +0000 1.3 @@ -1061,7 +1061,7 @@ static PyObject *xu_port_new(PyObject *s 1.4 u32 dom; 1.5 int port1 = 0, port2 = 0; 1.6 1.7 - if ( !PyArg_ParseTuple(args, "i", &dom) ) 1.8 + if ( !PyArg_ParseTuple(args, "i|ii", &dom, &port1, &port2) ) 1.9 return NULL; 1.10 1.11 xup = PyObject_New(xu_port_object, &xu_port_type);
2.1 --- a/tools/python/xen/xend/server/channel.py Fri Oct 22 16:39:25 2004 +0000 2.2 +++ b/tools/python/xen/xend/server/channel.py Fri Oct 22 17:44:56 2004 +0000 2.3 @@ -94,7 +94,7 @@ class ChannelFactory: 2.4 def createPort(self, dom, remote_port=0): 2.5 """Create a port for a channel to the given domain. 2.6 """ 2.7 - return xu.port(dom, remote_port) 2.8 + return xu.port(dom, 0, remote_port) 2.9 2.10 def channelFactory(): 2.11 """Singleton constructor for the channel factory.