WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] Add legacy pty support to domu config.

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Add legacy pty support to domu config.
From: BitKeeper Bot <riel@xxxxxxxxxxx>
Date: Sat, 07 May 2005 09:43:57 +0000
Delivery-date: Sat, 07 May 2005 10:03:52 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: Xen Development List <xen-devel@xxxxxxxxxxxxxxxxxxx>
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
ChangeSet 1.1159.256.113, 2005/05/07 10:43:57+01:00, kaf24@xxxxxxxxxxxxxxxxxxxx

        Add legacy pty support to domu config.
        Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>



 Kconfig.drivers        |   37 +++++++++++++++++++++++++++++++++++++
 configs/xenU_defconfig |    6 ++++++
 2 files changed, 43 insertions(+)


diff -Nru a/linux-2.6.11-xen-sparse/arch/xen/Kconfig.drivers 
b/linux-2.6.11-xen-sparse/arch/xen/Kconfig.drivers
--- a/linux-2.6.11-xen-sparse/arch/xen/Kconfig.drivers  2005-05-07 06:04:24 
-04:00
+++ b/linux-2.6.11-xen-sparse/arch/xen/Kconfig.drivers  2005-05-07 06:04:24 
-04:00
@@ -49,9 +49,46 @@
 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 -Nru a/linux-2.6.11-xen-sparse/arch/xen/configs/xenU_defconfig 
b/linux-2.6.11-xen-sparse/arch/xen/configs/xenU_defconfig
--- a/linux-2.6.11-xen-sparse/arch/xen/configs/xenU_defconfig   2005-05-07 
06:04:24 -04:00
+++ b/linux-2.6.11-xen-sparse/arch/xen/configs/xenU_defconfig   2005-05-07 
06:04:24 -04:00
@@ -331,6 +331,12 @@
 # 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

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>