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

[Xen-ia64-devel] Re: [Xen-devel] [PATCH][PVFB][LINUX] Fix possible sleep

To: Markus Armbruster <armbru@xxxxxxxxxx>, Keir Fraser <keir@xxxxxxxxxxxxx>
Subject: [Xen-ia64-devel] Re: [Xen-devel] [PATCH][PVFB][LINUX] Fix possible sleep while holding spinlock
From: Atsushi SAKAI <sakaia@xxxxxxxxxxxxxx>
Date: Tue, 19 Dec 2006 11:52:09 +0900
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 18 Dec 2006 18:53:41 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: (Your message of "Fri, 15 Dec 2006 17:38:25 +0100") <87zm9pt8qm.fsf@xxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
References: <C1A70286.6139%keir@xxxxxxxxxxxxx> <87zm9pt8qm.fsf@xxxxxxxxxxxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi, Markus

I tested on SMP DomU at xen-ia64-unstable 13083.
It seems works fine.

Thanks
Atsushi SAKAI


>xenfb_update_screen() calls zap_page_range() while holding spinlock
>mm_lock.  Big no-no.
>
>Changeset 13018:c98ca86138a7422cdf9b15d87c95619b7277bb6a merely sweeps
>the bug under the carpet: it silences zap_page_range()'s cries for
>help by keeping interrupts enabled.  That doesn't fix the bug, and
>it's also wrong: if a critical region gets interrupted, and the
>interrupt printk()s, xenfb_refresh() gets executed and promptly
>deadlocks.
>
>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.
>
>Signed-off-by: Markus Armbruster <armbru@xxxxxxxxxx>
>


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