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] [RFC] MM: stub domains and page ownership for mapping in

To: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [RFC] MM: stub domains and page ownership for mapping in dom0
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Mon, 17 Mar 2008 10:53:53 +0000
Cc: Pat Campbell <plc@xxxxxxxxxx>
Delivery-date: Mon, 17 Mar 2008 03:55:35 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20080306185217.GC10848@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AciIHTCMbtOm3fQQEdydWwAX8io7RQ==
Thread-topic: [Xen-devel] [RFC] MM: stub domains and page ownership for mapping in dom0
User-agent: Microsoft-Entourage/11.4.0.080122
On 6/3/08 18:52, "Samuel Thibault" <samuel.thibault@xxxxxxxxxxxxx> wrote:

> In the case of an ioemu stubdomain with SDL or vnc server running in
> dom0, we want to have the stubdomain expose the HVM guest's video RAM
> through PVFB.
> 
> However, to map the pages from dom0, xenfb uses xc_map_foreign_pages
> with the stubdomain ID as domid (since that is what is advertised in
> the PVFB protocol, and needed for other parts of the protocol), and
> thus get_page_from_l1e() complains because the stubdomain is not the
> owner of the pages.  In such case, this patch checks that the stubdomain
> has privileges on the actual owner of the pages, and then accept the
> mapping.
> 
> Any red flag?

Really pvfb protocol should be using grants for foreign mappings. Didn't Pat
Campbell have a patch for that?

This patch is probably a reasonable stopgap however.

 -- Keir



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

<Prev in Thread] Current Thread [Next in Thread>