ia64/xen-unstable
changeset 5965:1640c137c847
This is the first patch to move the console code out of Xend and into a
separate daemon. In this patch I've included the daemon and a
front-end. I've also have the console code removed from Xend locally
but I wanted to clarify a few things first before submitting that.
Here's how it works:
1) Daemon sits on control channel (via xcs) waiting for console messages
2) Buffers all console data received
3) Publishes the location of a tty that can be used for reading in
/console/<domid>/tty
4) Reads a value from the store to determine what the limit of console
data should be (/console/<domid>/limit) to prevent DoS attacks
Using it is quite simple, just run consoled and use the xc_console
program to connect to the console. It uses syslog for logging.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
separate daemon. In this patch I've included the daemon and a
front-end. I've also have the console code removed from Xend locally
but I wanted to clarify a few things first before submitting that.
Here's how it works:
1) Daemon sits on control channel (via xcs) waiting for console messages
2) Buffers all console data received
3) Publishes the location of a tty that can be used for reading in
/console/<domid>/tty
4) Reads a value from the store to determine what the limit of console
data should be (/console/<domid>/limit) to prevent DoS attacks
Using it is quite simple, just run consoled and use the xc_console
program to connect to the console. It uses syslog for logging.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
author | kaf24@firebug.cl.cam.ac.uk |
---|---|
date | Tue Aug 02 12:18:15 2005 +0000 (2005-08-02) |
parents | 3f1785f02d89 |
children | 94a4626c2c44 |
files | tools/Makefile tools/Rules.mk |
line diff
1.1 --- a/tools/Makefile Tue Aug 02 11:35:45 2005 +0000 1.2 +++ b/tools/Makefile Tue Aug 02 12:18:15 2005 +0000 1.3 @@ -13,6 +13,7 @@ SUBDIRS += xcutils 1.4 #SUBDIRS += pygrub 1.5 SUBDIRS += firmware 1.6 SUBDIRS += security 1.7 +SUBDIRS += consoled 1.8 1.9 .PHONY: all install clean check check_clean ioemu eioemuinstall ioemuclean 1.10
2.1 --- a/tools/Rules.mk Tue Aug 02 11:35:45 2005 +0000 2.2 +++ b/tools/Rules.mk Tue Aug 02 12:18:15 2005 +0000 2.3 @@ -4,6 +4,8 @@ include $(XEN_ROOT)/Config.mk 2.4 2.5 XEN_XC = $(XEN_ROOT)/tools/python/xen/lowlevel/xc 2.6 XEN_LIBXC = $(XEN_ROOT)/tools/libxc 2.7 +XEN_XCS = $(XEN_ROOT)/tools/xcs 2.8 +XEN_XENSTORE = $(XEN_ROOT)/tools/xenstore 2.9 2.10 ifeq ($(XEN_TARGET_ARCH),x86_32) 2.11 CFLAGS += -m32 -march=i686