WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Xen

xen-devel

[Top] [All Lists]

Re: [Xen-devel] Re: [RFC] [PATCH] sysfs support for Xen attributes

To: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] Re: [RFC] [PATCH] sysfs support for Xen attributes
From: Dave Hansen <haveblue@xxxxxxxxxx>
Date: 2006年1月12日 07:37:22 -0800
Cc: "Mike D. Day" <ncmike@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx, lkml <linux-kernel@xxxxxxxxxxxxxxx>, Greg KH <greg@xxxxxxxxx>
Delivery-date: 2006年1月12日 15:44:08 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <5ae8261aff3d780b6594683c1d118bbd@xxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <43C53DA0.60704@xxxxxxxxxx> <20060111230704.GA32558@xxxxxxxxx> <43C5A199.1080708@xxxxxxxxxx> <1137029574.11331.11.camel@xxxxxxxxxxxxxxxxxxxxx> <00466d4b0eb7fe1603cd7f54448d37ff@xxxxxxxxxxxx> <1137078863.5397.15.camel@xxxxxxxxxxxxxxxxxxxxx> <5ae8261aff3d780b6594683c1d118bbd@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Thu, 2006年01月12日 at 15:26 +0000, Keir Fraser wrote:
> On 12 Jan 2006, at 15:14, Dave Hansen wrote:
>
> >> This is a good set of questions. We have about half dozen files in
> >> /proc/xen right now. One is an obvious canididate to stick in /dev, as
> >> it has primarily an ioctl() interface.
> >
> > Actually, anything with an ioctl interface is probably a good cantidate
> > for a writable sysfs file. The basic idea is that we prefer something
> > in sysfs with a discrete, unique name. It also makes it a lot easier 
> > to
> > develop with because you can look at the values from scripts, and you
> > don't have to worry about synchronizing any headers.
> >
> > So, what kind of ioctls are we talking about?
>
> They are pretty low level. e.g., pass-thru a raw hypercall direct to 
> xen, map another VM's pages into my address space (given a list of page 
> frames), etc. very strongly binary, and unlikely to be useful for 
> scripting.
The ppc64 hypervisor does something like this today in a couple of
places. It is kinda a mess. I think that putting a generic, binary
firmware interface leads to having a bit of a crutch. It basically lets
the userspace software stack bypass Linux and talk directly to the
hypervisor. It also means that you have to have a very specialized
software stack for each hypervisor or virtualization type, which is very
bad.
This pushes things out to userspace, which is generally good. But, it
is pushing behavior and "hardware" knowledge out there, too. The
hardware knowledge, especially, is something that we usually try to
encapsulate.
Also things like inter-partition page sharing, and partition migration
are used in other hypervisors. I think it is essential to get common
interfaces to those things.
One last thing... When you say "very strongly binary" do you mean, "are
implemented now as very strongly binary", or "absolutely 100% have to be
horribly strongly binary"? They are two quite different things. :)
-- Dave
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: Re: [Xen-devel] Re: [RFC] [PATCH] sysfs support for Xen attributes , Dave Hansen
Next by Date: Re: [Xen-devel] Compile error with set of NMI patches , Ian Campbell
Previous by Thread: Re: [Xen-devel] Re: [RFC] [PATCH] sysfs support for Xen attributes , Keir Fraser
Next by Thread: Re: [Xen-devel] Re: [RFC] [PATCH] sysfs support for Xen attributes , Anthony Liguori
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /