mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
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>
27 lines
911 B
C
27 lines
911 B
C
/*\
|
|
* Copyright (C) International Business Machines Corp., 2005
|
|
* Author(s): Anthony Liguori <aliguori@us.ibm.com>
|
|
*
|
|
* Xen Console Daemon
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; under version 2 of the License.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
\*/
|
|
|
|
#ifndef CONSOLED_IO_H
|
|
#define CONSOLED_IO_H
|
|
|
|
void handle_io(void);
|
|
|
|
#endif
|