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] Re: [PATCH][RFC] fix some spinlock issues in vmsi

To: Qing He <qing.he@xxxxxxxxx>
Subject: [Xen-devel] Re: [PATCH][RFC] fix some spinlock issues in vmsi
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Fri, 06 Mar 2009 12:50:02 +0000
Cc: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Kouya Shimura <kouya@xxxxxxxxxxxxxx>
Delivery-date: Fri, 06 Mar 2009 04:50:34 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20090306092112.GD23417@ub-qhe2>
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: AcmePLF5kAjzjumKQsyMC2UOHWstHgAHV8mO
Thread-topic: [PATCH][RFC] fix some spinlock issues in vmsi
User-agent: Microsoft-Entourage/12.15.0.081119
On 06/03/2009 09:21, "Qing He" <qing.he@xxxxxxxxx> wrote:

>> Add the locks, making it correct. Then optimise later as necessary, using
>> RCU or (perhaps easier) just smaller locks: Per MSI-X or per-pci-dev or
>> whatever. Throwing in racey code condemns us to subtle races forever more.
> 
> Ok, I'll make a patch to use the locks.
> 
> Do you think it's ok to assume that guest has already free the device
> when calling remove_pci_device on hotplugging?

Do you mean deinitialised and unloaded the device driver?

 -- Keir



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