From: Keir Fraser Subject: Re: Two question about grant table mechanism Date: Mon, 19 Jun 2006 08:22:53 +0100 Message-ID: <5dab9c67cb037734298eb7ec1519c83e@cl.cam.ac.uk> References: <4d616cca0606190009y66684b80k41da5f3756418565@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4d616cca0606190009y66684b80k41da5f3756418565@mail.gmail.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: Lily Huang Cc: xen-devel List-Id: xen-devel@lists.xenproject.org On 19 Jun 2006, at 08:09, Lily Huang wrote: > First question: > > If domA grant access permission of a page to DomB, and domB remapped > this page but then it crashes or failed to end mapping. Now domA wants > to end page granting, what will happen? Is there any way for page > owner to actively stop other VM's mapping? No, it's expected you'll have an out-of-band mechanism for reclaiming the mapping, probably involving killing the offending DomB. This makes sense for the original usage scenario of driver domains, where if a backend driver has gone bad or got hung, merely getting back any current grants is unlikely to unstick things: you need a bigger hammer. There's been discussion of other kinds of memory sharing mechanism which wouldn't have this problem -- a domain puts some memory to one side when it maps shared memory, which can then be revoked from under its feet by mapping the memory it put to one side in the shared memory's place. I think Rusty's patches implement something like this. > Second question: > If domA grant read-only permission on a page to domB, but domB tries > to write some data to this page. What will happen? General Memory > Protection? DomB can only map the page read only, so write accesses will generate a page fault. -- Keir > These two questions are very important to my research. Can someone > give me a answer to direct me somewhere so that I can read more > details about grant table. > > Many thanks! > -lily > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel