From: Ian Campbell Subject: Re: Permission for xenstore operation on HVM Date: Thu, 1 Dec 2011 09:57:40 +0000 Message-ID: <1322733460.31810.175.camel@zakaz.uk.xensource.com> References: <1316338995760-4815691.post@n5.nabble.com> <1316571734360-4824822.post@n5.nabble.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1316571734360-4824822.post@n5.nabble.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: duolvxendev Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Wed, 2011-09-21 at 03:22 +0100, duolvxendev wrote: > I'm trying to create a directory and write some messages, i.e. to some path > like /local/domain/$DOMID/my_directory/my_key. This is OK on pv domU, but > denied on HVM. There is no deliberate difference between PV and HVM and indeed: # ./xen-detect Running in PV context on Xen v4.2. # xenstore-write my_directory/my_key "foo" xenstore-write: could not write path my_directory/my_key even if I use dom0 tools to get the domid: # xenstore-write /local/domain/413/my_directory/my_key "foo" xenstore-write: could not write path /local/domain/413/my_directory/my_key If you use one of the xs areas set aside for guest use then this works. e.g. # xenstore-write data/foo "test" > I can write to /local/domain/device directory by frontend > driver, but I cannot create or write to some arbitrary path that doesn't > exist. Correct, the locations which a guest can write to are deliberately restricted as explained by Stefano. Ian. > It looks like that one needs special permission on HVM. > > -- > View this message in context: http://xen.1045712.n5.nabble.com/Permission-for-xenstore-operation-on-HVM-tp4815691p4824822.html > Sent from the Xen - Dev mailing list archive at Nabble.com. > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel