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] yanked share problem

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] yanked share problem
From: Mark Williamson <mark.williamson@xxxxxxxxxxxx>
Date: Wed, 14 Dec 2005 02:59:20 +0000
Cc: "King, Steven R" <steven.r.king@xxxxxxxxx>
Delivery-date: Wed, 14 Dec 2005 03:08:25 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <44BDAFB888F59F408FAE3CC35AB470410291B600@orsmsx409>
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <44BDAFB888F59F408FAE3CC35AB470410291B600@orsmsx409>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.8.3
Unsharing the page doesn't forcibly revoke other domain's mappings to it, it 
just removes their right to create mappings.  DomU_A in your scenario 
wouldn't be able to cause the fault in DomU_B, the mapping to the page would 
be there until domU_B had finished with it.

The moral of the story is: don't grant pages to people who might not give them 
back ;-)

Cheers.
Mark

On Tuesday 13 December 2005 23:05, King, Steven R wrote:
> Hi Folks,
>
> Let's imagine we have two domains, DomU_A and DomU_B.  Being DomU's, the
> two domains don't trust each other, but still desire to safely setup a
> shared memory page.
>
> The scenario is the following:
>
> DomU_A acquires a grant reference and shares a page to DomU_B.
> DomU_B gets the grant reference passed from A and maps the shared page.
> DomU_A then, due to bug or badness, unshares the page without telling
> DomU_B.
> DomU_B faults on the next access to the mapped but unshared page.
>
> Since one DomU causing a fault in another DomU is unacceptable, the two
> domains cannot share memory.  Have I missed something?  I would much
> appreciate being set straight on this.
>
> Thanks,
> -steve
>
>
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel

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