Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754726AbbGFRle (ORCPT ); Mon, 6 Jul 2015 13:41:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35287 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753852AbbGFRlc (ORCPT ); Mon, 6 Jul 2015 13:41:32 -0400 Subject: Re: [RFC v2 3/6] irq: bypass: Extend skeleton for ARM forwarding control To: Eric Auger , eric.auger@st.com, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, christoffer.dall@linaro.org, marc.zyngier@arm.com, alex.williamson@redhat.com, avi.kivity@gmail.com, mtosatti@redhat.com, feng.wu@intel.com, joro@8bytes.org, b.reynal@virtualopensystems.com References: <1436184692-20927-1-git-send-email-eric.auger@linaro.org> <1436184692-20927-4-git-send-email-eric.auger@linaro.org> <559A7425.4050506@redhat.com> <559AA02A.6060703@linaro.org> <559AA552.3010400@redhat.com> <559AB62C.9000503@linaro.org> Cc: linux-kernel@vger.kernel.org, patches@linaro.org From: Paolo Bonzini Message-ID: <559ABDC5.3060200@redhat.com> Date: Mon, 6 Jul 2015 19:41:25 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0.1 MIME-Version: 1.0 In-Reply-To: <559AB62C.9000503@linaro.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 777 Lines: 23 On 06/07/2015 19:09, Eric Auger wrote: >> > The good thing is that this helps a bit forming a lock hierarchy across >> > the subsystems, for example irq bypass mutex outside vfio_platform_irq >> > spinlock, because you cannot have a spinlock inside the mutex. I think >> > that all of your six callbacks are fine. > arghh, no that's wrong then. I have plenty of them in the KVM/arm vgic > part :-( I checked and it's right... /me rereads AAAARGH. You cannot have a mutex inside a spinlock. What you're doing is fine. Paolo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/