[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] Make xend set the console limit


  • To: Xen Developers <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: Dan Smith <danms@xxxxxxxxxx>
  • Date: Thu, 13 Oct 2005 10:05:08 -0700
  • Delivery-date: Thu, 13 Oct 2005 17:03:00 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

This patch makes xend set the console limit for DomUs based on a value
set in xend-config.sxp.

I tested this patch with xm-test 0.3.0.

Signed-off-by: Dan Smith <danms@xxxxxxxxxx>
diff -r 4e335372ace8 tools/examples/xend-config.sxp
--- a/tools/examples/xend-config.sxp    Tue Oct 11 14:23:19 2005
+++ b/tools/examples/xend-config.sxp    Wed Oct 12 07:43:58 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 4e335372ace8 tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py   Tue Oct 11 14:23:19 2005
+++ b/tools/python/xen/xend/XendDomainInfo.py   Wed Oct 12 07:43:58 2005
@@ -585,7 +585,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 4e335372ace8 tools/python/xen/xend/XendRoot.py
--- a/tools/python/xen/xend/XendRoot.py Tue Oct 11 14:23:19 2005
+++ b/tools/python/xen/xend/XendRoot.py Wed Oct 12 07:43:58 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.
-- 
Dan Smith
IBM Linux Technology Center
Open Hypervisor Team
email: danms@xxxxxxxxxx
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.