From: Keir Fraser Subject: Re: [PATCH][RFC] fix some spinlock issues in vmsi Date: Fri, 06 Mar 2009 12:50:02 +0000 Message-ID: References: <20090306092112.GD23417@ub-qhe2> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20090306092112.GD23417@ub-qhe2> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Qing He Cc: Isaku Yamahata , "xen-devel@lists.xensource.com" , Kouya Shimura List-Id: xen-devel@lists.xenproject.org On 06/03/2009 09:21, "Qing He" 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