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

[Xen-devel] [PATCH] Patches to free MSI vector when pirq unmapped

  • To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Jiang, Yunhong" <yunhong.jiang@xxxxxxxxx>
  • Date: Wed, 8 Oct 2008 13:16:46 +0800
  • Accept-language: en-US
  • Acceptlanguage: en-US
  • Delivery-date: Tue, 07 Oct 2008 22:22:56 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AckpBQ52TJwEZJZ4Qr2kGOhe+uwRUQ==
  • Thread-topic: [PATCH] Patches to free MSI vector when pirq unmapped

Currently the vector is not freed for MSI interrupt, the three patches fix the 

The first patch(pirq.patch) move the get_free_pirq/map(unmap)_domain_pirq from 
arch/x86/physdev.c to arch/x86/irq.c, since that should be part of irq 
managment, no logic changes.

The second patch(msi_vector_clean.patch) free the vector when the pirq is 
unmapped or when domain destroy.
One thing need notice for this patch is, current code will not assign 
FIRST_DYNAMIC_VECTOR in the first round of assign_irq_vector since the 
current_vector is added immediately, I didn't try to fix it, since now it can 
be allocated in the second round.

The third patch (msi_vector_linux.patch) apply to linux hg tree, it fix one 
issue on msi-xen.c.

Signed-off-by: Jiang, Yunhong <yunhong.jiang@xxxxxxxxx>

Yunhong Jiang

Attachment: pirq.patch
Description: pirq.patch

Attachment: msi_vector_clean.patch
Description: msi_vector_clean.patch

Attachment: msi_vector_linux.patch
Description: msi_vector_linux.patch

Xen-devel mailing list



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