|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] Regarding Xenstore/Xenbus
Kindly, ignore my previous message. I figured out what was wrong with the code. I don't need to call "xs_directory" function because I learned that when you access Xenstore from inside domU it has an implicit root at "/local/domain/<domid>" so in-order to read "/local/domain/<domid>/memory/target" I just need to pass "memory/target" to "xs_read" as path. The thing that I want to know now is that can a userspace tool register and be notified of watches on xenstore or is it allowed for kernel level drivers only? Apparently, the later seems to be the case because when I try to call "xs_watch" from domU it returns with an unknown error. Is there a workaround this? If not, I can always setup a loop that polls the path periodically to detect changes. I just want to be notified of changes to the path "memory/target". Thanks for your help.----- Original Message ----- From: "Umar Farooq Minhas" <umarfm13@xxxxxxxxxxx> To: "Vincent Hanquez" <vincent@xxxxxxxxxxxxx> Cc: <xen-devel@xxxxxxxxxxxxxxxxxxx> Sent: Wednesday, November 22, 2006 7:56 PM Subject: Re: [Xen-devel] Regarding Xenstore/Xenbus Once again thanks for replying, I appreciate your patience.Actually I already realized that mistake and replaced "daemon_open" with "domain_open". But getting the "unknown error" has now changed into a "segmentation fault" and apparently it occurs after i execute the "xs_directory" function to get the path in buf2 variable (line31 below). I checked the value of 'len' variable after the call and it turns out to be arbitrarily large. What am I doing wrong here ? After replacing "daemon_open" with "domain_open" all the rest of the calls to xs.h functions remain the same or are there specific "daemon" and "domain"versions of functions? (apparently its the former case) A few related questions:-Are there any specific initializations/calls that need to be made from inside domU to first initialize and then access xenstore ? Or the functions exposed by xs.h are the only thing required ? Apparentlyxenstore is initialized by dom0 once at startup only.-Does ability to communicate with xenstore depend on whether the ethernet interface b/w dom0 and domU is working or not (since it uses sockets)? Currently my domU can't ping dom0 or any one elsefor that matter.-I am trying to only read the xenstore(which is allowed to all domains by default), does my problemin anyway relate to xenstore access permissions ?-Are you aware of any user-space management tools available that access xenstore from within domU?Sorry for a detailed mail but I am just a beginner and dont know a lot of stuff. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |