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-ia64-devel

Re: [Xen-devel] [PATCH][PVFB][LINUX] Fix possible sleep while holding sp

To: Markus Armbruster <armbru@xxxxxxxxxx>, Keir Fraser <keir@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH][PVFB][LINUX] Fix possible sleep while holding spinlock
From: Keir Fraser <keir@xxxxxxxxxxxxx>
Date: Fri, 15 Dec 2006 18:06:13 +0000
Cc: Atsushi SAKAI <sakaia@xxxxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx, xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 15 Dec 2006 10:06:20 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <87zm9pt8qm.fsf@xxxxxxxxxxxxxxxxx>
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: Accgc7TM86QBb4xmEduKHAAX8io7RQ==
Thread-topic: [Xen-devel] [PATCH][PVFB][LINUX] Fix possible sleep while holding spinlock
User-agent: Microsoft-Entourage/11.2.5.060620
On 15/12/06 16:38, "Markus Armbruster" <armbru@xxxxxxxxxx> wrote:

> This patch fixes the locking, but leaves open a race between
> xenfb_update_screen() and do_no_page().  See the source code for a
> detailed explanation of how it works, and where it fails.

That's a bit of a shame. Is there any way we could use do_file_page() and
have a populate hook (which gets to install the PTE itself)? Or are there
lots of assumptions about VMAs that would take this path, assert
VM_NONLINEAR, etc?

 -- Keir


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