From: Greg KH <greg@kroah.com>
To: Anthony Liguori <aliguori@us.ibm.com>
Cc: Gerd Hoffmann <kraxel@suse.de>,
Arjan van de Ven <arjan@infradead.org>,
"Mike D. Day" <ncmike@us.ibm.com>,
lkml <linux-kernel@vger.kernel.org>,
xen-devel@lists.xensource.com
Subject: Re: [RFC] [PATCH] sysfs support for Xen attributes
Date: Thu, 12 Jan 2006 11:08:45 -0800 [thread overview]
Message-ID: <20060112190845.GA13073@kroah.com> (raw)
In-Reply-To: <43C6A5B4.80801@us.ibm.com>
On Thu, Jan 12, 2006 at 12:53:40PM -0600, Anthony Liguori wrote:
> Greg KH wrote:
>
> >What exactly do the different ioctls do? Do they have to be ioctls?
> >Can you use configfs or sysfs for most of the stuff there?
> >
> >
> The canonical example is /proc/xen/privcmd which is our userspace
> hypercall interface. A hypercall is software interrupt with a number of
> parameters passed via registers. This has to come from ring 1 for
> security reasons (the kernel is running in ring 1).
>
> We wish to make management hypercalls as the root user in userspace
> which means we have to go through the kernel. Currently, we do this by
> having /proc/xen/privcmd accept an ioctl() that takes a structure that
> describe the register arguments. The kernel interface allows us to
> control who in userspace can execute hypercalls.
>
> It would perhaps be possible to use a read/write interface for
> hypercalls but ioctl() seems a little less awkward. Suggestions are
> certainly appreciated though.
>
> Right now, I think a misc char device with an ioctl() interface seems
> like the most promising way to do this. This doesn't seem like the sort
> of think one would want to expose in sysfs...
ick ick ick.
Why not do the same thing that the Cell developers did for their
"special syscalls"? Or at the least, make it a "real" syscall like the
ppc64 developers did. It's not like there isn't a whole bunch of "prior
art" in the kernel today that you should be ignoring.
Please don't abuse /proc with ioctls like that.
And if you tried to do that with sysfs...
thanks,
greg k-h
next prev parent reply other threads:[~2006-01-12 19:09 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-11 17:17 [RFC] [PATCH] sysfs support for Xen attributes Mike D. Day
2006-01-11 17:19 ` Arjan van de Ven
2006-01-11 17:56 ` Stephen Hemminger
2006-01-11 18:45 ` Dave Hansen
2006-01-11 23:07 ` Greg KH
2006-01-12 0:23 ` Mike D. Day
2006-01-12 0:57 ` Greg KH
2006-01-12 1:49 ` Mike D. Day
2006-01-12 2:17 ` [Xen-devel] " Mark Williamson
2006-01-12 7:10 ` Greg KH
2006-01-12 14:44 ` [Xen-devel] " Mike D. Day
2006-01-12 14:53 ` Mark Williamson
2006-01-12 15:42 ` Anthony Liguori
2006-01-12 15:57 ` Anthony Liguori
2006-01-12 17:34 ` Greg KH
2006-01-12 18:44 ` Anthony Liguori
2006-01-12 17:43 ` Greg KH
2006-01-12 9:10 ` Dave Hansen
2006-01-12 14:52 ` [Xen-devel] " Mike D. Day
2006-01-12 15:28 ` Dave Hansen
2006-01-12 15:50 ` Mike D. Day
2006-01-12 12:54 ` Gerd Hoffmann
2006-01-12 13:21 ` Arjan van de Ven
2006-01-12 14:42 ` Gerd Hoffmann
2006-01-12 17:39 ` Greg KH
2006-01-12 18:53 ` Anthony Liguori
2006-01-12 18:55 ` Arjan van de Ven
2006-01-12 18:59 ` Anthony Liguori
2006-01-12 19:11 ` Mike D. Day
2006-01-12 19:31 ` Greg KH
2006-01-12 19:08 ` Greg KH [this message]
2006-01-12 19:18 ` Mike D. Day
2006-01-12 19:30 ` Greg KH
2006-01-12 17:38 ` Greg KH
2006-01-12 1:32 ` Dave Hansen
2006-01-12 10:04 ` [Xen-devel] " Keir Fraser
2006-01-12 15:14 ` Dave Hansen
2006-01-12 15:06 ` Mark Williamson
2006-01-12 15:26 ` Keir Fraser
2006-01-12 15:37 ` Dave Hansen
2006-01-12 15:49 ` Anthony Liguori
2006-01-11 23:31 ` Pavel Machek
2006-01-12 19:01 ` Greg KH
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=20060112190845.GA13073@kroah.com \
--to=greg@kroah.com \
--cc=aliguori@us.ibm.com \
--cc=arjan@infradead.org \
--cc=kraxel@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=ncmike@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox