From: "Mike D. Day" <ncmike@us.ibm.com>
To: Arjan van de Ven <arjan@infradead.org>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>,
Dave Hansen <haveblue@us.ibm.com>,
xen-devel@lists.xensource.com,
lkml <linux-kernel@vger.kernel.org>, Greg KH <greg@kroah.com>
Subject: Re: [ PATCH 2.6.16-rc3-xen 3/3] sysfs: export Xen hypervisor attributes to sysfs
Date: Wed, 22 Feb 2006 11:08:11 -0500 [thread overview]
Message-ID: <43FC8C6B.60002@us.ibm.com> (raw)
In-Reply-To: <1140616911.2979.22.camel@laptopd505.fenrus.org>
Arjan van de Ven wrote:
> but again those tools and agents *already* have a way of talking to the
> hypervisor themselves. Why can't they just first ask this info? Why does
> that need to be in the kernel, in unswappable memory?
Currently the two ways to get this data from user space are python via
xend, the xen control daemon, and through a C library call.
The two arguments for making some data available via sysfs are (1) to
support scripts and to (2) support efforts to slim down the required
user space tool stack.
There are alternatives for both arguments. To support scripting one
could add bindings (perl etc.) to the c library. Another alternative is
to write a succinct set of utility programs that call the c library and
invoke those utilities from scripts.
Neither of the above alternatives really help to slim down existing user
space tools, but on the other hand they don't materially add to the
problem either.
Sysfs is the simplest way to expose this info to user space. As an 8k
module it is pretty small. It fits well with convention because Xen
support is driver-like in the current linux patches. I think a xen sysfs
module is a reasonable solution. However I understand and agree with the
desire to keep unnecessary code out of the kernel.
Mike
next prev parent reply other threads:[~2006-02-22 16:08 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-21 14:40 [ PATCH 2.6.16-rc3-xen 3/3] sysfs: export Xen hypervisor attributes to sysfs Mike D. Day
2006-02-21 17:15 ` Dave Hansen
2006-02-21 17:48 ` Mike D. Day
2006-02-22 12:32 ` Heiko Carstens
2006-02-22 12:37 ` Mike D. Day
2006-02-22 12:56 ` Arjan van de Ven
2006-02-22 13:06 ` Mike D. Day
2006-02-22 13:19 ` Heiko Carstens
2006-02-22 13:43 ` Mike D. Day
2006-02-22 14:01 ` Arjan van de Ven
2006-02-22 16:08 ` Mike D. Day [this message]
2006-02-23 4:26 ` Anthony Liguori
2006-02-23 8:24 ` Arjan van de Ven
2006-02-21 18:02 ` Alan Cox
2006-02-21 18:10 ` Greg KH
2006-02-22 12:26 ` Heiko Carstens
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=43FC8C6B.60002@us.ibm.com \
--to=ncmike@us.ibm.com \
--cc=arjan@infradead.org \
--cc=greg@kroah.com \
--cc=haveblue@us.ibm.com \
--cc=heiko.carstens@de.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox