aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-05-07 09:43:57 +0000
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-05-07 09:43:57 +0000
commit8c750837ad114000d0751e8410357ba32f481661 (patch)
tree34165d7c65a1f366e51918b0338ba80a4ab7037e
parentae5f05ef2049b9761519e5c6843c4657871996c1 (diff)
downloadxen-8c750837ad114000d0751e8410357ba32f481661.tar.gz
xen-8c750837ad114000d0751e8410357ba32f481661.tar.bz2
xen-8c750837ad114000d0751e8410357ba32f481661.zip
bitkeeper revision 1.1159.258.113 (427c8dddgGYSerAwRWcC_vwqkNujiQ)
Add legacy pty support to domu config. Signed-off-by: Keir Fraser <keir@xensource.com>
-rw-r--r--linux-2.6.11-xen-sparse/arch/xen/Kconfig.drivers37
-rw-r--r--linux-2.6.11-xen-sparse/arch/xen/configs/xenU_defconfig6
2 files changed, 43 insertions, 0 deletions
diff --git a/linux-2.6.11-xen-sparse/arch/xen/Kconfig.drivers b/linux-2.6.11-xen-sparse/arch/xen/Kconfig.drivers
index 8158f26fd0..cb30533783 100644
--- a/linux-2.6.11-xen-sparse/arch/xen/Kconfig.drivers
+++ b/linux-2.6.11-xen-sparse/arch/xen/Kconfig.drivers
@@ -49,9 +49,46 @@ source "drivers/infiniband/Kconfig"
endif
if !XEN_PHYSDEV_ACCESS
+
+menu "Character devices"
+
config UNIX98_PTYS
bool
default y
+
+config LEGACY_PTYS
+ bool "Legacy (BSD) PTY support"
+ default y
+ ---help---
+ A pseudo terminal (PTY) is a software device consisting of two
+ halves: a master and a slave. The slave device behaves identical to
+ a physical terminal; the master device is used by a process to
+ read data from and write data to the slave, thereby emulating a
+ terminal. Typical programs for the master side are telnet servers
+ and xterms.
+
+ Linux has traditionally used the BSD-like names /dev/ptyxx
+ for masters and /dev/ttyxx for slaves of pseudo
+ terminals. This scheme has a number of problems, including
+ security. This option enables these legacy devices; on most
+ systems, it is safe to say N.
+
+
+config LEGACY_PTY_COUNT
+ int "Maximum number of legacy PTY in use"
+ depends on LEGACY_PTYS
+ range 1 256
+ default "256"
+ ---help---
+ The maximum number of legacy PTYs that can be used at any one time.
+ The default is 256, and should be more than enough. Embedded
+ systems may want to reduce this to save memory.
+
+ When not in use, each legacy PTY occupies 12 bytes on 32-bit
+ architectures and 24 bytes on 64-bit architectures.
+
+endmenu
+
endif
endmenu
diff --git a/linux-2.6.11-xen-sparse/arch/xen/configs/xenU_defconfig b/linux-2.6.11-xen-sparse/arch/xen/configs/xenU_defconfig
index 3279d25fb9..37fce4937e 100644
--- a/linux-2.6.11-xen-sparse/arch/xen/configs/xenU_defconfig
+++ b/linux-2.6.11-xen-sparse/arch/xen/configs/xenU_defconfig
@@ -331,6 +331,12 @@ CONFIG_NETDEVICES=y
# CONFIG_SHAPER is not set
# CONFIG_NETCONSOLE is not set
CONFIG_UNIX98_PTYS=y
+CONFIG_LEGACY_PTYS=y
+CONFIG_LEGACY_PTY_COUNT=256
+
+#
+# Character devices
+#
#
# File systems