Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C97D7606A322 for ; Wed, 2 Dec 2026 19:46:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=apertussolutions.com header.i=@apertussolutions.com header.a=rsa-sha256 header.s=x header.b=xONJJM7D Received: from list by lists.xenproject.org with outflank-mailman.1510990.1703496 (Exim 4.92) (envelope-from ) id 1xYqHY-0007yE-Gr; Wed, 02 Dec 2026 19:46:24 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 1510990.1703496; Wed, 02 Dec 2026 19:46:24 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1xYqHY-0007y7-Dg; Wed, 02 Dec 2026 19:46:24 +0000 Received: by outflank-mailman (input) for mailman id 1510990; Wed, 02 Dec 2026 19:46:23 +0000 Received: from mx.expurgate.net ([194.145.224.10]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1xYqHX-0007y1-6g for xen-devel@lists.xenproject.org; Wed, 02 Dec 2026 19:46:23 +0000 Received: from mx.expurgate.net (helo=localhost) by mx.expurgate.net with esmtp id 1xYqHW-00CQEJ-Fh for xen-devel@lists.xenproject.org; Wed, 02 Dec 2026 20:46:22 +0100 Received: from [10.42.69.10] (helo=localhost) by localhost with ESMTP (eXpurgate MTA 0.9.1) (envelope-from ) id 6b107558-2eae-0a2a0a5409dd-0a2a450acff4-46 for ; Wed, 02 Dec 2026 20:46:21 +0100 Received: from [136.175.108.97] (helo=mail-108-mta97.mxroute.com) by tlsNG-4011c0.mxtls.expurgate.net with ESMTPS (eXpurgate 4.57.1) (envelope-from ) id 6b10758a-f2d2-0a2a450a0019-88af6c61a4bf-3 for ; Wed, 02 Dec 2026 20:46:20 +0100 Received: from filter006.mxroute.com ([136.175.111.3] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta97.mxroute.com (ZoneMTA) with ESMTPSA id 1a2384b1ad1000d084.002 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Wed, 02 Dec 2026 19:46:15 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Post: List-Help: List-Subscribe: , Precedence: list Sender: "Xen-devel" Authentication-Results: eu.smtp.expurgate.cloud; dkim=pass header.s=x header.d=apertussolutions.com header.i="@apertussolutions.com" header.h="Content-Transfer-Encoding:Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date" X-Zone-Loop: 82f5142a4f27768e0ebc7c6e3bf837311ca1b60f7ee2 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=apertussolutions.com; s=x; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID; bh=vQfZic5O47/UWOAtrysFyhx1A44peYA5nwCatDrG3Mc=; b=xONJJM7DRh1HNs1qwrdr0tCKmD gt7GWzLs1T+eak6BBZmEAIQ2i2EsP7WOV1BA4L8VJvtE+KgQtTRWSfmhsg1yAYoWW18kRdSxcph2q kl2eCFa8RGuO5iyZBGtrQ408iz+0lhiaENL4a9O0t+ee5c7OWkM/Bg7AwosLTkwZxY80Io5UyfWpD vx28KoCc5YSigclYl89WMJKw7qfuDcpQKToRoAHmQjPkAhNxQQQQPa/kbJoeIVTVE+I1FFNQgHqhB xIgdEyR3luCSwXmasrTE9W/oCGke1ljv0uqgyKml7G8D19hTnEQIsd+a8CTYzJkNPzE9lB/yS0JEW NZFaI/dQ==; Message-ID: <0fd69dde-2e96-4710-ad1b-374cd9806b24@apertussolutions.com> Date: Wed, 2 Dec 2026 14:46:08 -0500 X-Archived-By: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 08/14] XSM: pass just SBDF to xsm_{,un}map_domain_irq() To: Jan Beulich , "xen-devel@lists.xenproject.org" Cc: Andrew Cooper , Teddy Astie , =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= References: Content-Language: en-US From: "Daniel P. Smith" In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated-Id: dpsmith@apertussolutions.com X-purgate-ID: tlsNG-4011c0/1796240780-4ACDBCFC-83EF3D8D/0/0 X-purgate-type: clean X-purgate-size: 1282 X-Spam-Status: No, score=-15.1 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_PASS,SPF_PASS, UNPARSEABLE_RELAY,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On 8/17/26 4:54 AM, Jan Beulich wrote: > That's what Flask needs, and by unifying the hooks flask_map_domain_msi() > can then also serve both flask_{,un}map_domain_irq(). > > Signed-off-by: Jan Beulich > Acked-by: Daniel P. Smith > --- > How come Arm doesn't use xsm_unmap_domain_irq()? > > --- a/xen/arch/x86/irq.c > +++ b/xen/arch/x86/irq.c > @@ -2214,7 +2214,7 @@ int map_domain_pirq( > return 0; > } > > - ret = xsm_map_domain_irq(XSM_HOOK, d, irq, msi); > + ret = xsm_map_domain_irq(XSM_HOOK, d, irq, msi ? &msi->sbdf : NULL); > if ( ret ) > { > dprintk(XENLOG_G_ERR, "dom%d: could not permit access to irq %d mapping to pirq %d\n", > @@ -2442,7 +2442,7 @@ int unmap_domain_pirq(struct domain *d, > */ > if ( !d->is_dying ) > ret = xsm_unmap_domain_irq(XSM_HOOK, d, irq, > - msi_desc ? msi_desc->dev : NULL); > + msi_desc ? &msi_desc->dev->sbdf : NULL); I know I acked this, and confirmed that action this morning, but I was thinking about it further would it hurt to make this: msi_desc && msi_desc->dev ? &msi_desc->dev->sbdf : NULL); v/r, dps