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] vt-d: avoid obtaining iommu->register_lock too early

To: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] vt-d: avoid obtaining iommu->register_lock too early in dma_msi_set_affinity()
From: "Cui, Dexuan" <dexuan.cui@xxxxxxxxx>
Date: Mon, 7 Sep 2009 16:30:52 +0800
Accept-language: zh-CN, en-US
Acceptlanguage: zh-CN, en-US
Cc:
Delivery-date: Mon, 07 Sep 2009 01:30:39 -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: AcovlYL0rVNkTrizS6Oqhq+YYMH4Sg==
Thread-topic: [PATCH] vt-d: avoid obtaining iommu->register_lock too early in dma_msi_set_affinity()
If set_desc_affinity() fails, the current code doesn't release the spinlock.
We should obtain the lock at a later place.

Thanks,
-- Dexuan


Attachment: iommu.c.patch
Description: iommu.c.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] vt-d: avoid obtaining iommu->register_lock too early in dma_msi_set_affinity(), Cui, Dexuan <=