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] Set the console limit for DomUs based on a value set in

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Set the console limit for DomUs based on a value set in xend-config.sxp.
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 21 Oct 2005 18:54:12 +0000
Delivery-date: Fri, 21 Oct 2005 18:52:08 +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-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User emellor@xxxxxxxxxxxxxxxxxxxxxx
# Node ID 857b79d279935d4eeb6b5ec6732a49c748c4151a
# Parent  74f693d6e03ec0d3c960d7acc552ec71c702163e
Set the console limit for DomUs based on a value set in xend-config.sxp.

Signed-off-by: Dan Smith <danms@xxxxxxxxxx>
Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>

diff -r 74f693d6e03e -r 857b79d27993 tools/examples/xend-config.sxp
--- a/tools/examples/xend-config.sxp    Wed Oct 19 12:34:44 2005
+++ b/tools/examples/xend-config.sxp    Wed Oct 19 12:37:16 2005
@@ -19,6 +19,9 @@
 # Specifying 'localhost' prevents remote connections.
 # Specifying the empty string '' allows all connections.
 (console-address   'localhost')
+
+# The limit (in kilobytes) on the size of the console buffer
+(console-limit 1024)
 
 ## Use the following if VIF traffic is routed.
 # The script used to start/stop networking for xend.
diff -r 74f693d6e03e -r 857b79d27993 tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py   Wed Oct 19 12:34:44 2005
+++ b/tools/python/xen/xend/XendDomainInfo.py   Wed Oct 19 12:37:16 2005
@@ -594,7 +594,7 @@
         to_store = {
             'domid':              str(self.domid),
             'vm':                 self.vmpath,
-
+            'console/limit':      str(xroot.get_console_limit() * 1024),
             'memory/target':      str(self.info['memory_KiB'])
             }
 
diff -r 74f693d6e03e -r 857b79d27993 tools/python/xen/xend/XendRoot.py
--- a/tools/python/xen/xend/XendRoot.py Wed Oct 19 12:34:44 2005
+++ b/tools/python/xen/xend/XendRoot.py Wed Oct 19 12:37:16 2005
@@ -267,6 +267,9 @@
     def get_dom0_vcpus(self):
         return self.get_config_int('dom0-cpus', self.dom0_vcpus_default)
 
+    def get_console_limit(self):
+        return self.get_config_int('console-limit', 1024)
+
 def instance():
     """Get an instance of XendRoot.
     Use this instead of the constructor.

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Set the console limit for DomUs based on a value set in xend-config.sxp., Xen patchbot -unstable <=