mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
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:
1 parent
c8a1f1c7fc
commit
f3adfa9dcb
3 files changed
+7
-1
No files matched your search
@@ -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)
|
||||
|
||||
@@ -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'])
|
||||
}
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||