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-devel][PATCH][VTD] Fix apic pin to interrupt remapping table index

To: 'Keir Fraser' <Keir.Fraser@xxxxxxxxxxxxx>
Subject: [xen-devel][PATCH][VTD] Fix apic pin to interrupt remapping table index
From: "Han, Weidong" <weidong.han@xxxxxxxxx>
Date: Wed, 3 Jun 2009 17:28:07 +0800
Accept-language: en-US
Acceptlanguage: en-US
Cc: 'xen-devel' <xen-devel@xxxxxxxxxxxxxxxxxxx>, 'Jan Beulich' <JBeulich@xxxxxxxxxx>
Delivery-date: Wed, 03 Jun 2009 02:29:11 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcnkLZrJFGVElBkwRdefjzY4Cbw2dw==
Thread-topic: [xen-devel][PATCH][VTD] Fix apic pin to interrupt remapping table index
Originally, it calls xmalloc to set index in ioapic_rte_to_remap_entry(). When 
make with debug=y, it may trigger spinlock BUG_ON because allocate memory with 
interrupt disabled.

This patch doesn't allocate list_head entry in ioapic_rte_to_remap_entry(), 
instead allocate the array in enable_intremap() to avoid allocating memory with 
interrupt disabled.


Signed-off-by: Weidong Han <weidong.han@xxxxxxxxx>

Attachment: apic-pin-index.patch
Description: apic-pin-index.patch

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