From: Dan Smith <danms@us.ibm.com>
To: Xen Developers <xen-devel@lists.xensource.com>
Subject: [PATCH] Make xend set the console limit
Date: Thu, 13 Oct 2005 10:05:08 -0700 [thread overview]
Message-ID: <87vf019wl7.fsf@us.ibm.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 181 bytes --]
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@us.ibm.com>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: console.patch --]
[-- Type: text/x-patch, Size: 1535 bytes --]
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.
[-- Attachment #3: Type: text/plain, Size: 88 bytes --]
--
Dan Smith
IBM Linux Technology Center
Open Hypervisor Team
email: danms@us.ibm.com
[-- Attachment #4: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
next reply other threads:[~2005-10-13 17:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-13 17:05 Dan Smith [this message]
2005-10-19 12:37 ` [PATCH] Make xend set the console limit Ewan Mellor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87vf019wl7.fsf@us.ibm.com \
--to=danms@us.ibm.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.