[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [RFC] Cleaning up /proc/xen


  • To: Anthony Liguori <aliguori@xxxxxxxxxx>
  • From: NAHieu <nahieu@xxxxxxxxx>
  • Date: Thu, 8 Sep 2005 17:09:36 +0900
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Thu, 08 Sep 2005 08:07:32 +0000
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=EE0QdI0dE7F5oZvj+l8OvIsT75gUhu/6DgcZh8E++GbxajgWq1RaQknJMQLX8NhTyTV7BLEi6H8mYIJdBbTC3dUXEyvNYVFy4kQamcilIUztpUYsVi460A+6wSFVasXUJCqRcNCAlRtG2hfY1ZrYeIJ87gSZjKFv8ei/xQK81Hw=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

On 9/8/05, Anthony Liguori <aliguori@xxxxxxxxxx> wrote:
> Today, in /proc/xen we have:
> 
> /proc/xen/balloon  -   displays information about memory allocations and
> allows for ballooning by echoing a byte value into file
> 
> /proc/xen/privcmd  -  allows for userspace invocation of hypercalls and
> mapping of other domains memory
> 
> /proc/xen/grant   -   allows grant table operations to be accessed from
> userspace
> 
> /proc/xen/xenbus  -   allows xenbus to be accessed from userspace (in domUs)
> 
> I propose we do the following:
> 
> Change /proc/xen/{privcmd,grant,xenbus} to character devices (that use
> random major/minors; we'll always access them by name).  We have a few
> options for /proc/xen/balloon.  We could:
> 
> 1) Get rid of it completely--not sure it's a good idea but it's been
> suggested since it's redundant (in dom0 at least).
> 2) Move it to /proc/sys/
> 3) Move it to /sys/xen
> 

The good thing about /proc is that we do not need to register any
major/minor stuffs (which is very annoying), like what we do with
device.

So I vote for moving things to under /sys. But hold on, that would not
be compatible with others OS like *BSD, correct ?


Thanks,
Hieu.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.