From: Keir Fraser Subject: Re: hvm_set_callback_irq_level() deadlock? Date: Wed, 07 Jan 2009 09:59:07 +0000 Message-ID: References: <496478DC.9080309@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <496478DC.9080309@jp.fujitsu.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Akio Takebe , xen-devel List-Id: xen-devel@lists.xenproject.org On 07/01/2009 09:41, "Akio Takebe" wrote: > hvm_set_callback_irq_level() and so on call vioapic_irq_positive_edge() > before spin_unlock(&d->arch.hvm_domain.irq_lock). > I think it cause a deadlock. > If it is right, how should we fix them? > What do you think? Doesn't vioapic_irq_positive_edge() clearly expect to be called with that lock held? -- Keir