[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] Re: [ PATCH 2.6.16-rc3-xen 3/3] sysfs: export Xen hypervisor attributes to sysfs
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 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |