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>
This commit is contained in:
emellor@leeni.uk.xensource.com committed 2005-10-19 13:37:16 +01:00
1 parent c8a1f1c7fc
commit f3adfa9dcb
3 files changed
+7 -1

No files matched your search

+3
View File
@@ -20,6 +20,9 @@
# 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.
#(network-script network-route)
+1 -1
View File
@@ -594,7 +594,7 @@ class XendDomainInfo:
to_store = {
'domid': str(self.domid),
'vm': self.vmpath,
'console/limit': str(xroot.get_console_limit() * 1024),
'memory/target': str(self.info['memory_KiB'])
}
+3
View File
@@ -267,6 +267,9 @@ class XendRoot:
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.
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.