|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] /sys/hypervisor/uuid
Markus Armbruster wrote: New /sys/hypervisor/uuid, containing this domain's UUID. Stripping off /vm/ from the value of vm to get the UUID isn't exactly nice. The alternative is to add a XENVER_get_uuid code to HYPERVISOR_xen_version(), but I'm not sure that's worth it. Signed-off-by: Markus Armbruster <armbru@xxxxxxxxxx> I really don't think we should be mirroring things in sysfs that are available in userspace. What benefit is there of having two interfaces to the same information? If the argument is that we don't want to rely on libxenstore in a domU, then we should be exposing all of XenStore in sysfs. The uuid parameter is a construction of Xend. Xend is *not* a part of the supported guest interface. By exposing the uuid in the kernel interface, you're tying an unsupported interface to what really should be a supported interface. Plus, there's already a patch floating on LKML for a /sys/hypervisor. We shouldn't start adding attributes to this namespace as it could potentially conflict with the existing patch. In the very least, we ought to stick this stuff in /sys/hypervisor/xen. Regards, Anthony Liguori diff -r ddba92a5cba9 drivers/xen/core/xen_sysfs.c --- a/drivers/xen/core/xen_sysfs.c Tue May 09 12:41:38 2006 +0200 +++ b/drivers/xen/core/xen_sysfs.c Thu May 18 18:06:35 2006 +0200 @@ -8,12 +8,14 @@ */#include <linux/config.h>+#include <linux/err.h> #include <linux/kernel.h> #include <linux/module.h> #include <linux/init.h> #include <asm/hypervisor.h> #include <xen/features.h> #include <xen/hypervisor_sysfs.h> +#include <xen/xenbus.h>MODULE_LICENSE("GPL"); _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |