From: "Jan Beulich" Subject: Re: [PATCH for-4.5] call xc_domain_irq_permission before xc_domain_irq_permission Date: Fri, 23 Jan 2015 13:29:03 +0000 Message-ID: <54C25AAF0200007800058D1D@mail.emea.novell.com> References: <4610426124.20141126210436@eikelenboom.it> <20141128164935.GA17910@zion.uk.xensource.com> <20141128170116.GB17910@zion.uk.xensource.com> <1868834068.20141128184004@eikelenboom.it> <16904023.20150123135908@eikelenboom.it> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <16904023.20150123135908@eikelenboom.it> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Sander Eikelenboom , Stefano Stabellini Cc: Ian Jackson , xen-devel@lists.xensource.com, Wei Liu , Ian Campbell List-Id: xen-devel@lists.xenproject.org >>> On 23.01.15 at 13:59, wrote: > Friday, January 23, 2015, 1:42:04 PM, you wrote: > >> On Mon, 1 Dec 2014, Stefano Stabellini wrote: >>> xc_physdev_unmap_pirq might revoke the permission to map the irq from >>> the domain causing the following xc_domain_irq_permission call to fail >>> and return error (domain_pirq_to_irq returns 0). >>> >>> Call xc_domain_irq_permission first to prevent this from happening >>> (xc_physdev_unmap_pirq calls irq_deny_access, that doesn't fail if the >>> permission is already removed). >>> >>> This is a simple bug fix and I think should go in 4.5. >>> >>> Signed-off-by: Stefano Stabellini > >> This patch didn't actually make it into 4.5, but I think it should have. >> We could at least apply to master now. > > Didn't Jan issue a patch for that in: > http://xenbits.xen.org/gitweb/?p=xen.git;a=commit;h=6fb3a07bc0ad656b5f76eb9f > c961bcd1d3cace58 Indeed, that one was meant to make this one unnecessary. Jan