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 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] XenStore permissions from kernel space

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] XenStore permissions from kernel space
From: James Pendergrass <james.pendergrass@xxxxxxxxxx>
Date: Thu, 15 Jun 2006 09:37:55 -0400
Delivery-date: Thu, 15 Jun 2006 06:38:42 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hello,
I've been working on a kernel module that shares some pages between to domUs. In the course of doing this I had the need to communicate information via XenStore (e.g., the grant references), but for a number of reasons did not want to use the full XenBus registration/probe/hotplug...system (it is too dynamic, and requires a kick off event from dom0 rather than allowing self organizing shares between domUs).

I established that the only thing preventing my setup of domA writing to a node in XenStore and domB reading it was the lack of the xs_get/set_permissions function in the kernel level xenbus/xenstore interface. So I ported those
functions down from the userland xenstore libraries.

I expect that others may appreciate the ability to set XenStore perms from kernel space, so here's a patch.

-J. Aaron pendergrass

Attachment: xenstore_perms_kernel.patch
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>