From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: Re: libxl/xl memory paging/sharing/ballooning/etc proposal. Date: Thu, 15 Mar 2012 17:00:50 +0100 Message-ID: <20120315160050.GA9200@aepfle.de> References: <1331805673.26979.59.camel@zakaz.uk.xensource.com> <1ea7d063267dc01aa8a0c669ec229f8f.squirrel@webmail.lagarcavilla.org> <20120315152651.GB7421@aepfle.de> <1331825459.26979.137.camel@zakaz.uk.xensource.com> <20120315154250.GE7421@aepfle.de> <1331826459.26979.144.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1331826459.26979.144.camel@zakaz.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: George Dunlap , Ian Jackson , Andres Lagar-Cavilla , xen-devel List-Id: xen-devel@lists.xenproject.org On Thu, Mar 15, Ian Campbell wrote: > > Is memory/target below /local/domain/X or /vm/ in use by the guet? > > /local/domain/X. The is no such key under /vm/ Its just "/vm//memory", after 'xm mem-set dom 2G'. This what I had in mind. > > I'm sure the latter can only be used to set a watch for example (dont > > have a guest at hand to verify). > > Also the guest would have to proactivly parse the "links" to find its > > domid, to later browse /local/domain/X. > > No, /local/domain/X is the domains "home directory", it is what relative > paths are relative to -- so to access /local/domain/X/memory/target a > domain just accesses "memory/target" Hmm, really? When I worked on xenbus_reset_state() for kdump the guest started in /vm/ for relative paths. > > What would it protect if /local/domain/X/memory (and other parts) are not accesible? > > XS has a permissions scheme which allows per domain r/w, r/o or none. > > Something like the paging target should not even be r/o for the guest > IMHO. In general we try to keep stuff which the domain should not even > be looking at separate from the stuff which it should. The target could very well go below /local/domain/X/xenpaging, and this directory can get the proper permissions to be r/w only for the tools. Olaf