[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xen-devel][PATCH][VTD] Fix apic pin to interrupt remapping table index


  • To: 'Keir Fraser' <Keir.Fraser@xxxxxxxxxxxxx>
  • 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
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • 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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.