ia64/xen-unstable

changeset 7441:857b79d27993

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

Signed-off-by: Dan Smith <danms@us.ibm.com>
Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@leeni.uk.xensource.com
date Wed Oct 19 13:37:16 2005 +0100 (2005-10-19)
parents 74f693d6e03e
children 4ba11726df73
files tools/examples/xend-config.sxp tools/python/xen/xend/XendDomainInfo.py tools/python/xen/xend/XendRoot.py
line diff
     1.1 --- a/tools/examples/xend-config.sxp	Wed Oct 19 13:34:44 2005 +0100
     1.2 +++ b/tools/examples/xend-config.sxp	Wed Oct 19 13:37:16 2005 +0100
     1.3 @@ -20,6 +20,9 @@
     1.4  # Specifying the empty string '' allows all connections.
     1.5  (console-address   'localhost')
     1.6  
     1.7 +# The limit (in kilobytes) on the size of the console buffer
     1.8 +(console-limit 1024)
     1.9 +
    1.10  ## Use the following if VIF traffic is routed.
    1.11  # The script used to start/stop networking for xend.
    1.12  #(network-script     network-route)
     2.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Wed Oct 19 13:34:44 2005 +0100
     2.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Wed Oct 19 13:37:16 2005 +0100
     2.3 @@ -594,7 +594,7 @@ class XendDomainInfo:
     2.4          to_store = {
     2.5              'domid':              str(self.domid),
     2.6              'vm':                 self.vmpath,
     2.7 -
     2.8 +            'console/limit':      str(xroot.get_console_limit() * 1024),
     2.9              'memory/target':      str(self.info['memory_KiB'])
    2.10              }
    2.11  
     3.1 --- a/tools/python/xen/xend/XendRoot.py	Wed Oct 19 13:34:44 2005 +0100
     3.2 +++ b/tools/python/xen/xend/XendRoot.py	Wed Oct 19 13:37:16 2005 +0100
     3.3 @@ -267,6 +267,9 @@ class XendRoot:
     3.4      def get_dom0_vcpus(self):
     3.5          return self.get_config_int('dom0-cpus', self.dom0_vcpus_default)
     3.6  
     3.7 +    def get_console_limit(self):
     3.8 +        return self.get_config_int('console-limit', 1024)
     3.9 +
    3.10  def instance():
    3.11      """Get an instance of XendRoot.
    3.12      Use this instead of the constructor.