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

Re: [Xen-devel] Re: hvmloader/xenbus.c: How to modify or add a key-value

To: Ian Campbell <Ian.Campbell@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Re: hvmloader/xenbus.c: How to modify or add a key-value pair in xenstore
From: Bei Guan <gbtju85@xxxxxxxxx>
Date: Tue, 16 Aug 2011 23:32:47 +0800
Cc: Xen Devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, Tim Deegan <tim@xxxxxxx>
Delivery-date: Tue, 16 Aug 2011 08:35:02 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=atxquRpWJMPttU5A1DwhsdETHZyVA3gGsi4qYl2lot0=; b=uCTqPL5klkH+MepaEMB54ZqP6CuvS7C+yHdwy7vcY1gdhwaQ3VC2E8UaQ8d5cTXfKo 4zzqJDOukUhgNT+UEIIJvdPuX4aUy3e351UJkP+FX+jK5a3gKsV2OaGudQeJn5PzYo3y qIJesGb0ofBo8dooN40n6RzH7823aWIR/35Kk=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1313486236.5010.33.camel@xxxxxxxxxxxxxxxxxxxxxx>
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>
References: <CAEQjb-RKsd0zPrb7g20CgZ3YWogerWQY0u96rKDRwMMAbUDKrQ@xxxxxxxxxxxxxx> <CAEQjb-S01mx1vZqyzfRhrm41__nMbYG2so+DBuwQh6j8htc2zw@xxxxxxxxxxxxxx> <20110815094435.GF11708@xxxxxxxxxxxxxxxxxxxxx> <CAEQjb-SLu4APzJ-NbGcGztMBJ96u4rhjv+zFvvoNtZFqXentVQ@xxxxxxxxxxxxxx> <1313486236.5010.33.camel@xxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Many thanks to all of you.
I see there are some functions in mini-os/xenbus/xenbus.c, such as xenbus_write() and xenbus_rm(). All of them seem to change the keys and values in xenstore. I have tried these functions and found that they have no effect on the keys and values in xenstore. So, do these functions can really work? What special things need I to do to make them work?


Thanks,
Bei Guan


2011/8/16 Ian Campbell <Ian.Campbell@xxxxxxxxxxxxx>
On Mon, 2011-08-15 at 16:20 +0100, Bei Guan wrote:
> Maybe the VM doesn't have the permission to write its own key in
> Xenstore.

It is quite common for keys in xenstore to be ro for the guest (only the
backend or toolstack domain can write to them).

Ian.


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