aboutsummaryrefslogtreecommitdiffstats
path: root/tools/console
Commit message (Collapse)AuthorAgeFilesLines
...
* User tools send evtchn notifications via /dev/xen/evtchnkaf24@firebug.cl.cam.ac.uk2005-10-061-2/+9
| | | | | | | | rather than using hypercall directly. Signed-off-by: Keir Fraser <keir@xensource.com>
* Change how event channels are allocated and used by the controlkaf24@firebug.cl.cam.ac.uk2005-10-061-27/+28
| | | | | | | | | | | | | | tools. /dev/xen/evtchn is now used by daemons to connect to remote domains: the advantage is that the local ports are garbage collected automatically if the daemon dies. xen no longer constructs end-to-end event-channel port pairs -- it allocates an unbound port in new domU and writes that port to xenstore. It is then picked up by teh appropriate daemon which does interdomain bind via /dev/xen/evtchn. Signed-off-by: Keir Fraser <keir@xensource.com>
* Send event-channel notification from console daemonkaf24@firebug.cl.cam.ac.uk2005-10-051-0/+6
| | | | | | | | | | to guest console driver when the output ring is emptied. This can be used to kick transmission of more characters without needing to poll. Signed-off-by: Keir Fraser <keir@xensource.com>
* xenstore fires @releaseDomain both when a domain shutskaf24@firebug.cl.cam.ac.uk2005-09-261-1/+1
| | | | | | | | | | | down and when it eventually dies. xenconsoled now only relinquishes its handle on a domain when it dies. This allows us to 'xm console' connect to a crashed domain, which is very useful! Signed-off-by: Keir Fraser <keir@xensource.com>
* Remove iflag argument to xs_writecl349@firebug.cl.cam.ac.uk2005-09-191-1/+1
| | | | | | | | | | xs_write with O_CREAT|O_EXCL causes problems over daemon restarts, since it's not idempotent. It turns out noone really needs the flags word at all, so get rid of it. It's now as if everyone specified "O_CREAT". Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
* Remove unsued domain_controller.h file.kaf24@firebug.cl.cam.ac.uk2005-09-142-4/+0
| | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* Fixed consoled race condition.cl349@firebug.cl.cam.ac.uk2005-09-131-1/+3
| | | | | | Signed-off by: Andy Peace <andrew.peace@xensource.com> Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
* Check the return value of chdir(2) and write(2).cl349@firebug.cl.cam.ac.uk2005-09-121-2/+4
| | | | | Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
* add a simple usage string to xenconsoledvh249@arcadians.cl.cam.ac.uk2005-09-101-1/+7
| | | | | Signed-off-by: Vincent Hanquez <vincent@xensource.com>
* Move console tty/limit information into console directory in domain dir.cl349@firebug.cl.cam.ac.uk2005-09-072-19/+34
| | | | | | Also only store port number of console event channel. Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
* Don't leak memory when realloc fails.cl349@firebug.cl.cam.ac.uk2005-09-071-3/+5
| | | | | Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
* Use @releaseDomain watch-events.cl349@firebug.cl.cam.ac.uk2005-09-064-124/+11
| | | | | | This replaces listening to the domain exception virq through xcs. Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
* Exit if xen_setup fails.cl349@firebug.cl.cam.ac.uk2005-09-061-3/+2
| | | | | Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
* Update consoled to use xs_get_domain_path and cleanup domain tracking code.cl349@firebug.cl.cam.ac.uk2005-09-063-85/+131
| | | | | Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
* Add @introduceDomain event-watch and replace consoled watch on /console.cl349@firebug.cl.cam.ac.uk2005-09-052-6/+5
| | | | | Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
* Fix save/restore when using grant tables in network, robust-ify netback shand@ubuntu.eng.hq.xensource.com2005-09-011-1/+1
| | | | | | | | | | | against bogus front-end drivers, plus various small cleanups. Note that there is now only /one/ config option controlling the use of grant tables with networking (not separate ones for rx and tx). An outstanding issue is that console reconnect after a restore causes badness. Signed-off-by: Steven Hand <steven@xensource.com>
* Wait a little bit for tty to appear.cl349@firebug.cl.cam.ac.uk2005-08-311-1/+26
| | | | | | | | | There is a race condition that occurs after xend creates a domain. The console client might be running before the console daemon has noticed the new domain and setup a pty for it. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
* Use MIN instead of MAX to avoid reading more than fits into the buffer.cl349@firebug.cl.cam.ac.uk2005-08-311-1/+1
| | | | | | Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
* Use watch to detect new domains and avoid polling for dead domains.cl349@firebug.cl.cam.ac.uk2005-08-304-47/+86
| | | | | Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
* merge?cl349@firebug.cl.cam.ac.uk2005-08-301-2/+1
|\
| * Cross-compilation fixes.kaf24@firebug.cl.cam.ac.uk2005-08-301-2/+1
| | | | | | | | | | Signed-off-by: Michal Ostrowski <mostrows@watson.ibm.com>
* | New console transport and update xenconsoled.cl349@firebug.cl.cam.ac.uk2005-08-302-90/+212
|/ | | | | | | | | | | Add a new console interface using a seperate shared page and event channel instead of passing the console input/output over control messages. Update xenconsoled to use the new console interface. Make xenconsoled garbage collect dying domains by subscribing to the domain exception virq. Signed-off-by: Robert Read <robert@xensource.com> Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
* Rename libxc => libxenctrl and xc.h => xen/xenctrl.hcl349@firebug.cl.cam.ac.uk2005-08-245-6/+6
| | | | | | | | | Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk> --HG-- rename : tools/libxc/xc.h => tools/libxc/xenctrl.h
* Disable xenconsoled throttling for now.kaf24@firebug.cl.cam.ac.uk2005-08-161-0/+2
|
* Under the right circumstances, xenconsoled will corrupt its internal kaf24@firebug.cl.cam.ac.uk2005-08-161-5/+20
| | | | | | | | | | | | | | list of domains causing a SEGV. This is usually characterized by a rapid number of creations/destructions. The attached patch fixes this. 1) Fix uninitialized next pointer. This could sometimes cause xenconsoled to SEGV on an invalid domain pointer 2) Fix race condition in iterating domain list where removing a domain in a callback could lead to the iterators becoming invalid. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Make xenconsole more friendly when invoked directly.cl349@firebug.cl.cam.ac.uk2005-08-101-6/+14
| | | | | | Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
* Make xen daemon startup more robust.cl349@firebug.cl.cam.ac.uk2005-08-102-0/+4
| | | | | | | | | | | | | 1) make xenconsoled exit gracefully if xcs dies 2) daemonize xenstored before binding to xenstored socket 3) wait to close stdio in xenstored until we're ready to accept connections (so that PID=`xenstored --output-pid` doesn't return until it's ready to accept connections) 4) updates tools/misc/xend for these changes Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Rusty Russell <rusty@rustycorp.com.au> Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
* Really include renamed console files. :-)kaf24@firebug.cl.cam.ac.uk2005-08-0712-0/+1393
Signed-off-by: Keir Fraser <keir@xensource.com>