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] Some problem with xenstore

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Some problem with xenstore
From: Daniel Castro <evil.dani@xxxxxxxxx>
Date: Mon, 1 Aug 2011 21:42:21 +0900
Delivery-date: Mon, 01 Aug 2011 05:43:03 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=fTX02brAGbUMNq5xOq/O7lAURbwSG4oeV2pfZCJqX/s=; b=F8LKABQwproMhrB9X3ejCVMzi/qMB2hqfie5m4ZVkrx2pq+0h8ebmgpYttIlM3y272 XZhA2OHvA4j0TftZPXXNje1mT7dXqwLw0899c18auhat57OGLoacvK/Pf8VWXBlujUvM SmweJWXyL1KEX9jd6J8qRbw7DbGhjVNxwZNv4=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hello All,

I am having some trouble with xenstore, so any ideas to solve this
"small" problem will be greatly appreciated.

Right now the rings for xenbus connections is created but whenever I
send anything to xenstore (XS_READ, XS_WRITE, XS_GET_PERMS or
XS_DIRECTORY) the response is 22 if I do a XS_DEBUG I get a 13. On the
xenstore trace log I get for example:
IN 0x1f53050 20110801 21:15:25 GET_PERMS (/local/domain/0)
OUT 0x1f53050 20110801 21:15:25 ERROR (EINVAL )
IN 0x1f53050 20110801 21:15:25 DEBUG (/local/domain/0)
OUT 0x1f53050 20110801 21:15:25 ERROR (EACCES )
The address for the rings is correct and the response code corresponds
to the error number.

The connection works the same way as in hvmloader xenbus.c

The relevant code is like this:
char *test = "/local/domain/0";   //path to query
char * replay_data = malloc_high(1024); //buffer for response
memset(replay_data,0,1024);
replay_data[1023] = '\0'; //sanity check
int replay_len = 0; //no response yet
ret = xenbus_send(XS_DIRECTORY,strlen(test),test,&replay_len,&replay_data);

After the xenbus_send the replay_data buffer is empty.

Any ideas?

-- 
+-=====---------------------------+
| +---------------------------------+ | This space intentionally blank
for notetaking.
| |   | Daniel Castro,                |
| |   | Consultant/Programmer.|
| |   | U Andes                         |
+-------------------------------------+

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

<Prev in Thread] Current Thread [Next in Thread>