search for: domain_create_tty

Displaying 8 results from an estimated 8 matches for "domain_create_tty".

2008 Jan 16
8
PATCH [xenconsoled]: makes pty slave raw early
Hi, on my system (Linux 2.6.18.8 - ia64), if a domain write on the xencons before xenconsole is initialized the domain gets back what it wrote. This patch fixes this issue by making raw the pty slave very early. (I suppose it doesn''t happen with linux as a guest because it takes a little bit of time before writing to xencons). Tristan. _______________________________________________
2010 Aug 09
1
[PATCH 1 of 4] xenconsoled: do not write the pty under serial
...onsole" too. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> diff -r 6b28b2dac7dd tools/console/daemon/io.c --- a/tools/console/daemon/io.c Thu Aug 05 11:36:24 2010 +0100 +++ b/tools/console/daemon/io.c Mon Aug 09 14:26:22 2010 +0100 @@ -451,27 +451,6 @@ static int domain_create_tty(struct doma free(data); } free(path); - } - - success = asprintf(&path, "%s/limit", dom->serialpath) != -1; - if (!success) - goto out; - data = xs_read(xs, XBT_NULL, path, &len); - if (data) { - dom->buffer.max_capacity = strtoul(data, 0, 0); - free(data); - }...
2007 Feb 09
0
[PATCH] xenconsoled: ignore spurious watch event
...-1; + dom->remote_port = -1; if (dom->xce_handle != -1) xc_evtchn_close(dom->xce_handle); @@ -270,6 +275,7 @@ static int domain_create_ring(struct dom goto out; } dom->local_port = rc; + dom->remote_port = remote_port; if (dom->tty_fd == -1) { dom->tty_fd = domain_create_tty(dom); @@ -279,6 +285,7 @@ static int domain_create_ring(struct dom xc_evtchn_close(dom->xce_handle); dom->xce_handle = -1; dom->local_port = -1; + dom->remote_port = -1; goto out; } } @@ -336,6 +343,7 @@ static struct domain *create_domain(int dom->ring_re...
2007 Feb 20
0
[PATCH] Xenconsoled should ignore spurious watch event. Otherwise, it can rebind to the same evtchn of a dying domU during suspending and cause below error message:
...-1; + dom->remote_port = -1; if (dom->xce_handle != -1) xc_evtchn_close(dom->xce_handle); @@ -326,6 +331,7 @@ static int domain_create_ring(struct dom goto out; } dom->local_port = rc; + dom->remote_port = remote_port; if (dom->tty_fd == -1) { dom->tty_fd = domain_create_tty(dom); @@ -335,6 +341,7 @@ static int domain_create_ring(struct dom xc_evtchn_close(dom->xce_handle); dom->xce_handle = -1; dom->local_port = -1; + dom->remote_port = -1; goto out; } } @@ -392,6 +399,7 @@ static struct domain *create_domain(int dom->ring_re...
2009 Jul 02
2
''xm create'' creates domains without a valid console tty
I''ve noticed that after I create 83 domains on a server, ''xm create'' will create domains without a valid console tty value. This corresponds approx. to 256 file descriptors. I''ve bumped up the limits for all daemon processes to 1500 file descriptors, so I''m really puzzled where xen is hitting a resource limit. Where is the code that creates the xs
2009 Jul 02
2
''xm create'' creates domains without a valid console tty
I''ve noticed that after I create 83 domains on a server, ''xm create'' will create domains without a valid console tty value. This corresponds approx. to 256 file descriptors. I''ve bumped up the limits for all daemon processes to 1500 file descriptors, so I''m really puzzled where xen is hitting a resource limit. Where is the code that creates the xs
2006 Oct 17
0
[PATCH] misc compile fixes for tools on Solaris
...md64 LIB64DIR=lib/amd64 SOCKET_LIBS = -lsocket +CURSES_LIB = -lcurses SONAME_LDFLAG = -Wl,-h SHLIB_FLAGS = -static-libgcc -shared diff --git a/tools/console/daemon/io.c b/tools/console/daemon/io.c --- a/tools/console/daemon/io.c +++ b/tools/console/daemon/io.c @@ -147,7 +147,7 @@ static int domain_create_tty(struct doma int master; bool success; - if ((master = getpt()) == -1 || + if ((master = open("/dev/ptmx",O_RDWR|O_NOCTTY)) == -1 || grantpt(master) == -1 || unlockpt(master) == -1) { dolog(LOG_ERR, "Failed to create tty for domain-%d", dom->domid); dif...
2005 Aug 30
4
Re: [Xen-changelog] New console transport and update xenconsoled.
...nce(struct buffer *buffer, size_t size) >+{ >+ size = MIN(size, buffer->size); >+ memmove(buffer->data, buffer + size, buffer->size - size); >+ buffer->size -= size; >+} > > static bool domain_is_valid(int domid) > { >@@ -107,7 +140,7 @@ > > static int domain_create_tty(struct domain *dom) > { >- char path[1024]; >+ char *path; > int master; > > if ((master = getpt()) == -1 || >@@ -126,22 +159,106 @@ > tcsetattr(master, TCSAFLUSH, &term); > } > >- xs_mkdir(xs, "/console"); >- snprintf(path, sizeof(path),...