From nobody Fri Apr 4 03:45:58 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass header.i=@eviden.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=pass (i=1 dmarc=pass fromdomain=eviden.com); dmarc=pass(p=reject dis=none) header.from=eviden.com ARC-Seal: i=2; a=rsa-sha256; t=1740653910; cv=pass; d=zohomail.com; s=zohoarc; b=lx+4HbXs4fye1Yor4kIkbosIg7RWgCGMsoNT0TIwbr4LOpl65Z/2eSOkWLu0nD5qKMRKDK26Ps+uvDc7NF3a3JwBOSJMkofBh0DaI5QgCGYD+w9pz/pjQ/GsgSHN+rN7LC5ExFrgfTDM3h+Sti4uFrRAZWFzritCRmVSQS6zkY4= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1740653910; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=w6V3J9Voz0NXho2p4lgx9KAMBt+ze0a2/WvfE+49IGI=; b=FUz6UhZAl+g3ndz9JlLRd1U6BDqsRL/yRDJfcGxDad9fPNxorhswLmJw0Ayc1yhXGfjs7GUEBioOXG6txZfh7oYIIr/9eUvSB7NwTW1Qqs7budKv0nUYlQ10DaDgKCHUJszwpfrH37jYv0sQwzMJ4J9TvwA43P3iw8MKCd9d3J8= ARC-Authentication-Results: i=2; mx.zohomail.com; dkim=pass header.i=@eviden.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=pass (i=1 dmarc=pass fromdomain=eviden.com); dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1740653910250319.3214886751332; Thu, 27 Feb 2025 02:58:30 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tnbXX-0004Wy-To; Thu, 27 Feb 2025 05:54:51 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tnbXW-0004TD-S0 for qemu-devel@nongnu.org; Thu, 27 Feb 2025 05:54:50 -0500 Received: from smarthost4.eviden.com ([80.78.11.85]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tnbXV-0005oQ-3a for qemu-devel@nongnu.org; Thu, 27 Feb 2025 05:54:50 -0500 Received: from mail-db8eur05lp2110.outbound.protection.outlook.com (HELO EUR05-DB8-obe.outbound.protection.outlook.com) ([104.47.17.110]) by smarthost4.eviden.com with ESMTP/TLS/TLS_AES_256_GCM_SHA384; 27 Feb 2025 11:54:46 +0100 Received: from AM8PR07MB7602.eurprd07.prod.outlook.com (2603:10a6:20b:24b::7) by AS2PR07MB9097.eurprd07.prod.outlook.com (2603:10a6:20b:558::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8466.19; Thu, 27 Feb 2025 10:54:44 +0000 Received: from AM8PR07MB7602.eurprd07.prod.outlook.com ([fe80::fbd7:ca71:b636:6f9d]) by AM8PR07MB7602.eurprd07.prod.outlook.com ([fe80::fbd7:ca71:b636:6f9d%7]) with mapi id 15.20.8445.017; Thu, 27 Feb 2025 10:54:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eviden.com; i=@eviden.com; q=dns/txt; s=mail; t=1740653689; x=1772189689; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=XhwWxkxj+r+rx/BdxYfbt+I91UI6Lq8eWKoAUnza1aI=; b=VmFSfnXvoAkHEs8qctvne1y8DfYDcBh7z9KszMgweYvSoBfeutSjkx/u dQlokYOlX8sgy7ezAs7iVrYrK5Gex9/D7V1sfnmeD/j0CjJUIbpIDtCFw j0IevLqdPROkD0cFhpR6HfVhUJzD3Oy30a/STmDuNcSr4HocHWm+bmdzT 8EmG+DLz35EXCHAyqQp8gC0dY6IBnDmi1Qjx45jMTYO2ZvI9XKv55KAV8 T5lSCsFuy2KNJlfFtVAG9scO7i0ryOqPn+XhbxOvP3ndEcmhg70Obx8U8 5a7BwLfKHz7ro3r0smKxvQk7TTX/5wkAaor4HLK1FuT//AzC8ZQ2xTDGe Q==; X-CSE-ConnectionGUID: AipoGuUsQM23ZODy2HoA7g== X-CSE-MsgGUID: 5Kmz0VzkT3qKSPTa1+U0jA== X-IronPort-AV: E=Sophos;i="6.13,319,1732575600"; d="scan'208";a="33331836" X-MGA-submission: =?us-ascii?q?MDFMn7zxU2kL7e00rol4JjG11BwMjOpq2uVE7l?= =?us-ascii?q?YzIrWn+F6HVkvWs3nDsg0TxCrqG0FvyxMxOpGXDzVa05gA/eQInCrFbi?= =?us-ascii?q?2iXzzWKjzk7S+HNk8bp+LuQNc1dqfse2mroB1/RptcrhCtFF070pbod8?= =?us-ascii?q?YD40WpRBnaRCAc6VURIpQeJA=3D=3D?= ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ar4JRn89qkDkRlL+rTf1LccD891Z07DFpgFWVH1gp0idyNKcV8dckmR3iLcSJmX0H0ENxwQeUhcYlYSQXvm+mTRedMB4d1ooG/Fxx4pHsvC6MDBaTsqAgncXSHUoWFBv4QEci+lqzTL6EQ1I4PEKMv0QzTOjxCnheeKXlfGX0Uo2Op+3rmrEazC6lCak0XjavirY+i7wkYuGncJmHY2qhm6S4VFG2XTwDMahaH0HiXG646bVUxpcHMKkuhVPadlbmw8UaMrooFiId0WSrLeVaBHFPgdb1PuLp7M6ZqWcJcfG9FxsAAqRukw9s0zm/eeOfig9iKfoiAdtkRbZduo05w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=w6V3J9Voz0NXho2p4lgx9KAMBt+ze0a2/WvfE+49IGI=; b=MtudFh5ZWSSsESxs5RqyEm7Wx/8XUT8eW+vzRJ0jAy5BTYoUVM39I6uvk7XA7x0y+tFo71WqeINqu9PlAzXesh7qoQQEjGmlkfM50fUfRDYAK8WFMFMIqD3YrPZqnLcFfvjqbG33TjEdRPrhYqekhdRjUXXPcw1Ef03uLl+K8LzxV6wuJNz1ORMoKobJuDty/Xm2viLo5Qgx1IAqRN6qJzS2qHp3QbMIA1yN4OaCrp9U4qfto7wTjaso4vkS/y+r+oby7pX/+3zg454TymlZXMBbPegjyuyINY9h17CiBG4PPZf+yqVhacxwbFYBJMe9sH7bAfzTM9aj1qgYPQ4DLw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=eviden.com; dmarc=pass action=none header.from=eviden.com; dkim=pass header.d=eviden.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Eviden.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=w6V3J9Voz0NXho2p4lgx9KAMBt+ze0a2/WvfE+49IGI=; b=TUKKBGNZOnYA4obMLykxkp0J1dTalVdDkFJGtr9T14Fv/jA0/spjDHwTNyKd11GVdlhLHlQzNz8KXxusHLuhe/DVau6eLl8egJuNs2RoqvwJDg8wyFKdYUeMGq80eHnltt4HbHzexWtydIxQ8UEjz/PeJU7gntyUklrJjRqFu3NpSC0YgJtmGil1nBVlwX7NSijtUTU8zDo6lQ7bXhuZHvPgvcvUiHuzPbapaP220I/0JjhDMgBeYYQOBu2yEx7Nv9TJM7GQ4RKH/d9/FZP36ksKxUhHORcwTg9YqxIQOUL2s44B4OW5zuEkoGecK0KqGEH7+MUfGlqgX9q0hYcyOg== From: CLEMENT MATHIEU--DRIF To: "qemu-devel@nongnu.org" CC: "jasowang@redhat.com" , "zhenzhong.duan@intel.com" , "kevin.tian@intel.com" , "yi.l.liu@intel.com" , "joao.m.martins@oracle.com" , "peterx@redhat.com" , "mst@redhat.com" , "tjeznach@rivosinc.com" , "minwoo.im@samsung.com" , CLEMENT MATHIEU--DRIF Subject: [PATCH v4 09/19] pci: Add IOMMU operations to get memory regions with PASID Thread-Topic: [PATCH v4 09/19] pci: Add IOMMU operations to get memory regions with PASID Thread-Index: AQHbiQYCyRbkJwmwD0ajNXH4GYw/sw== Date: Thu, 27 Feb 2025 10:54:44 +0000 Message-ID: <20250227105339.388598-10-clement.mathieu--drif@eviden.com> References: <20250227105339.388598-1-clement.mathieu--drif@eviden.com> In-Reply-To: <20250227105339.388598-1-clement.mathieu--drif@eviden.com> Accept-Language: en-GB, fr-FR, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=eviden.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: AM8PR07MB7602:EE_|AS2PR07MB9097:EE_ x-ms-office365-filtering-correlation-id: 47d85f34-f083-408c-c9fd-08dd571d24e3 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|1800799024|7416014|376014|366016|38070700018; x-microsoft-antispam-message-info: =?iso-8859-1?Q?U3YlacnYl/ip60bHjxeP1BgH7h19w2s3yr5PQ+JuOIJU5fljpIZB13bXCI?= =?iso-8859-1?Q?95BCVBV7pLklQgu9BhC6moOtuCVxlnZxyYJxv+xrycIL6a5pph8nQv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bZ/Gm8eCSmp/l5GNd51M?= =?iso-8859-1?Q?QOjwbRpwZA0sQWt+TTwzijWNCXRlDGypN+Rtijrn0tTlqLFX2lChKFd46/?= =?iso-8859-1?Q?ozOnd5OrIIUSHHsvQ6vNoRL+ovrt9qdCYPUJzRjoXJXlAPQMJxF7u3YalS?= =?iso-8859-1?Q?+VUj2Rvuosc4DgvKFC7H5M7U9B6oJiQrH7pVcNbMQO0QLE9G40mZitbSl9?= =?iso-8859-1?Q?nmjGm38/xT4St6wPVabdzCkRGjhXCekuXwDVgFBnqVdixGD/zrbyrYIRe0?= =?iso-8859-1?Q?cwqmQz4pU8QtHpCt49AitPgZkdZTQAbzkNG0nzgm663tpFHmCepRMg4kbc?= =?iso-8859-1?Q?YhQUneSGE3aTfK72hGt2ZZM+4S6tJXT+f0i+74mOKniXNuwT3eE/JJecHf?= =?iso-8859-1?Q?W7WtpOl76l6sPTCAn4A6Bv1Lh0C1AIAYacXu/p8aKHWBNtRiukRoCUDpmx?= =?iso-8859-1?Q?pkUeqZUCb4ua6CREuIOdEEbfzou1T+D+rygyvouvHltuWl6w+HtBPXwn1G?= =?iso-8859-1?Q?KqGpnK9+ydVfn3pXU/ISru?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM8PR07MB7602.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(7416014)(376014)(366016)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?mRqa4+GGXqqXXHZQ1+kXqnxmOq9hyU85J9IQySruPSSsIXrAE3hlgEPSZ8?= =?iso-8859-1?Q?iMHmWTzcFCEn04LIqxs3UsJI19x93BKWHnYUWAeJMSFjlmkIOjA4lVN8LC?= =?iso-8859-1?Q?EQnr7tj/hcG/7ZilRcQf6xw7ltCmbPN5Z794VpPkE8x2KxH9TEBR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LPHhHTJaXwo/IWFAZzI9U?= =?iso-8859-1?Q?U4NA6mdnFr4PwcpTPC3DUZK7A0c6hZBEaQNIme/f/Chk8GebdJqN6DBW/A?= =?iso-8859-1?Q?jDLIAUIglwl92XlAseY1Ce4kytoY0fQa2egFPqr6fvJH4Oi3myUbrkyI2k?= =?iso-8859-1?Q?hrvmN96XA8HScsG533V/moPclRtoL8DYjhZ8QvmNQr52fsKJdIDMrrN6Qa?= =?iso-8859-1?Q?ltVWVILTSH2l2R+fc1k7NIpT4cRUAOTN0O06NJBTdLnEJDM1OpQ62Yf/5r?= =?iso-8859-1?Q?+2yZzFnNGRzgQ1ukg7Is7zkV7u5H0fDewiflks0iBsKbMfqi9eshl5WfqV?= =?iso-8859-1?Q?iYDonlmtFnCO16lUgGmHtpokjw7ycmShiofxVvPp04r9WbjtxvJfwg96rt?= =?iso-8859-1?Q?So0jd3uLE/NVR0/LR9Ge3YPbKQcmAVxxKmbepbG6BzXz7wotrvQFn00QP/?= =?iso-8859-1?Q?PneAjPnWbFUctbn65FbXT8WdJVyEdGNOEX9rxALmt4RkmwS9xC/0UZox96?= =?iso-8859-1?Q?RPPkmmrAXSfigHGmMlioQXy41qRoJci3pQS7Kqcb37P17hvb7RDciBrGLO?= =?iso-8859-1?Q?Ma2+V24LDu8Axj6LU02+PvWFzCg3KHowQ3jzc+COOehPcyfTD+3d2FCYMH?= =?iso-8859-1?Q?fXWz32Ofs2hsRjDCCI4=3D?= Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: eviden.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM8PR07MB7602.eurprd07.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 47d85f34-f083-408c-c9fd-08dd571d24e3 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Feb 2025 10:54:44.0526 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 7d1c7785-2d8a-437d-b842-1ed5d8fbe00a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: vozy7G07VnV72BrU5Gwm6gc34geFhbF4DiIqVtM40xcN3s8EFP1XwULnEMMdKMqxM/2AMTJuWEdYgDEPNuxY3ZMKlpycnIumgzpjLNZ0NPpMnlHVi/4dFYuzJdw059Eg X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS2PR07MB9097 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=80.78.11.85; envelope-from=clement.mathieu--drif@eviden.com; helo=smarthost4.eviden.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @eviden.com) X-ZM-MESSAGEID: 1740653911086019000 Content-Type: text/plain; charset="utf-8" From: Clement Mathieu--Drif The region returned by this operation will be used as the input region for ATS. Signed-off-by: Clement Mathieu--Drif --- include/hw/pci/pci.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/include/hw/pci/pci.h b/include/hw/pci/pci.h index 4002bbeebd..644551550b 100644 --- a/include/hw/pci/pci.h +++ b/include/hw/pci/pci.h @@ -391,6 +391,22 @@ typedef struct PCIIOMMUOps { * @devfn: device and function number */ AddressSpace * (*get_address_space)(PCIBus *bus, void *opaque, int dev= fn); + /** + * @get_memory_region_pasid: get the iommu memory region for a given + * device and pasid + * + * @bus: the #PCIBus being accessed. + * + * @opaque: the data passed to pci_setup_iommu(). + * + * @devfn: device and function number + * + * @pasid: the pasid associated with the requested memory region + */ + IOMMUMemoryRegion * (*get_memory_region_pasid)(PCIBus *bus, + void *opaque, + int devfn, + uint32_t pasid); /** * @set_iommu_device: attach a HostIOMMUDevice to a vIOMMU * --=20 2.48.1