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] Patches to free MSI vector when pirq unmapped

To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] Patches to free MSI vector when pirq unmapped
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
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: 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 
issue.

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>

Thanks
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
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Patches to free MSI vector when pirq unmapped, Jiang, Yunhong <=