From nobody Fri Dec 27 09:19:14 2024 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=1732866434; cv=pass; d=zohomail.com; s=zohoarc; b=etMXPIdpazTLYoxUFRRZH68gYURPXYpx/TBNR9OkpVYi9y2hBjQ3ZXGfmbTX+czOGAigIuJRfLaxhfL+c9JukBEbQC1m2dWMgsKbWX/17DQR6K5Dx0psu4MAln38VpdHVLQrjL1DNDZo6DoEet/Eiwfv/5Db1W9QizDL8wU8O8U= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1732866434; h=Content-ID: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=JYTIqof7QhuFRW4wADhZR8s7wPY2u4yiamG1OLfdCiQ=; b=ccxtYrjN8fWPMGHLVCmdAKadjTB/NFFvdeUHN3ZsSHa9ajPKidkhYzXbWlqR6FiLxdpDCBiKHkxS4HuCggG+rb55U1x/VhjdcMfBvkNaitzpK0iiJMhOwwYGr1iqMdaKENA6ShmCScwSDicvKGDFlYVJk70CHmuW+wViUtJ9fJ0= 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 1732866434404345.89425180741375; Thu, 28 Nov 2024 23:47:14 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tGvfj-00081i-Cc; Fri, 29 Nov 2024 02:44:15 -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 1tGvfb-0007z7-F9 for qemu-devel@nongnu.org; Fri, 29 Nov 2024 02:44:09 -0500 Received: from smarthost1.eviden.com ([80.78.11.82]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tGvfU-0002l6-C2 for qemu-devel@nongnu.org; Fri, 29 Nov 2024 02:44:01 -0500 Received: from mail-am6eur05lp2109.outbound.protection.outlook.com (HELO EUR05-AM6-obe.outbound.protection.outlook.com) ([104.47.18.109]) by smarthost1.eviden.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Nov 2024 08:43:58 +0100 Received: from AM8PR07MB7602.eurprd07.prod.outlook.com (2603:10a6:20b:24b::7) by AS8PR07MB7847.eurprd07.prod.outlook.com (2603:10a6:20b:39e::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8207.15; Fri, 29 Nov 2024 07:43:56 +0000 Received: from AM8PR07MB7602.eurprd07.prod.outlook.com ([fe80::fbd7:ca71:b636:6f9d]) by AM8PR07MB7602.eurprd07.prod.outlook.com ([fe80::fbd7:ca71:b636:6f9d%5]) with mapi id 15.20.8207.014; Fri, 29 Nov 2024 07:43:56 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eviden.com; i=@eviden.com; q=dns/txt; s=mail; t=1732866240; x=1764402240; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=JYTIqof7QhuFRW4wADhZR8s7wPY2u4yiamG1OLfdCiQ=; b=IFrUYJx8YDNqFtGSAwbOr6c30DgVqJ4c1aqnIuFfxar7gFZSY/x7Q5sr /qOWOv0tNIxK30FpBAi2JcllUrz5ZsM+52w0nFwZTQ3FpYuWajV1rbVc6 np2XmQ/l1CMg6qZJfMExcLLphe65LqqSn1MRfI51bQmWWw8bP6HdBsV3r BAWtZFivQOiEh1uSPN4qjTIeQLlVVcPMhkGN//RB73wvxBaIuTw1sTGz0 W/Kfxm068U0Z1I+bJFKu23itRrKRx2eI8nGHnkt7DPYPB6MQ6pd4x+bn6 g1K7wSP83eo94r9TCY4WPpYHgr5NiI8fhWTlt+Gu81NSdpjhn6TWSlyIF A==; X-IronPort-AV: E=Sophos;i="6.12,194,1728943200"; d="scan'208";a="25664405" X-MGA-submission: =?us-ascii?q?MDHYsGRhdcfUuLh3lc4jqcYd0pwONASn3+DS+Z?= =?us-ascii?q?JCBBXl5aUnpNfMcRnmMeXM5RBnrxo8t+rmXLWUQy2+em8CZ5ptQ7ya05?= =?us-ascii?q?2eFCQAxtGHpOx2dtmn0+GzZoJUnZXnWJlo2IEoVdc7cX0Ir2gor602fM?= =?us-ascii?q?MtKDtO7sf77hpVjOOEpfNv4Q=3D=3D?= ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=xxBKPxVbuBgtbSRQTMiErk6c/NRJfG6qjR533Lc8eFKmE1dKpixWIgveQgsvDPar6hhvOxjl05aTUPinXoF90Zl1HoOH+F3LZhpptkdh+/0Wl47wESI+0pM2k5g69bJcn9XkXAqcqgh8Vuzfgm8Hxck+42FGLDVNILeh8YIAg/6v5+wMKqe0V6ANCn994XeRfSmYZVGjH731qpBA959r7BNdDVO/kLFA487yw+Od7mVJuA6fAMnqtbw5SWjSqGFzB9N8cL3YmrX9tMvjssWGxxLJ52+xgb6JL8Sx4tF48gPaVSrgngf0Hp7ttFIc58i60yLuuKkTD3P8s4AotFXScg== 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=JYTIqof7QhuFRW4wADhZR8s7wPY2u4yiamG1OLfdCiQ=; b=LxR/Ym1wRisIc17KZjjUlOh5nT2zwZq2DPlSSWFrBCFrtPAdvPBxuYVgU+qs6y9ZhI/ffUA8KrEn63dmcI4pcgYqlITBhjrAQeaNyszP5nxVLeacQ2ZKrw2qtRvAiIyEiNetFLXgx9uZHvf2/g1gtqtV9mbqFpZcUeOug42Zlml610emiPkkq6LKzCskoWZdWYxD7kOwOQr2iIU1oV424i8p7pNQIUuojn1StQ9v0YC4Sjts2LgJMkjPg8NmR7EgPtW7GTpCeO5J8pLD846QAluB0/QLAJtqlkX9zJB8YHCYcHQDMz6Ibx07Ud/tWqLa+L7uwyq+YxqA/QSxkqTfhQ== 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=JYTIqof7QhuFRW4wADhZR8s7wPY2u4yiamG1OLfdCiQ=; b=oc9C2uzQ8x9mD3UOcFC4sTIyPKKTbk77Q5UhnV5s64m3CFu+9ayT2mP/IAres54B5GcNvgP/Y/Mo7d0Qq8akB1r0hgx8pbtNOLfALD6vTI5dgn7NUFS0+w98VbYqYz7XTow1rKfLSyIIcVzvhXClwr0Hm1KBayRJIyfb3awpytipi3icpBXSTlSP/sUAkVrap1s3f+PxQckOZ0ux85lZ2HRKUm6kRWrGXf7ZUfV5avn+ltdSUvDDAdd5EydVDka+0F/Ioli4LyIClX8dDxevvoeIoJJStNIfciqchdeCxq0pa5i/eFGuRKdzHIsCoW9w+hFP6NZqIS2pQZOJsFA0Tw== 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 v1 09/19] pci: Add IOMMU operations to get memory regions with PASID Thread-Topic: [PATCH v1 09/19] pci: Add IOMMU operations to get memory regions with PASID Thread-Index: AQHbQjJxlly1mLkXtUGLosCh8+EKPA== Date: Fri, 29 Nov 2024 07:43:55 +0000 Message-ID: <20241129074332.87535-10-clement.mathieu--drif@eviden.com> References: <20241129074332.87535-1-clement.mathieu--drif@eviden.com> In-Reply-To: <20241129074332.87535-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_|AS8PR07MB7847:EE_ x-ms-office365-filtering-correlation-id: b506727f-506c-4449-0fb9-08dd10499445 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|366016|7416014|1800799024|376014|38070700018; x-microsoft-antispam-message-info: =?utf-8?B?R0xacnRmRElvZkwwNXNPaDlhRTkvRFFleTNGc3VmcVR4dG81RjNzT0dLeW5x?= =?utf-8?B?ZVZ6d0gwMVg3UC9oTmhJN09TWXppMVBIYzF3NVBRL1Z0bUowRFJwMWZVNW9a?= =?utf-8?B?UVcyOGhxMzZ0OG1obG1iZjlzVHM4ZlkvbThRazBnb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; SRV:; IPV:NLI; SFV:NSPM; H:AM8PR07MB7602.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(7416014)(1800799024)(376014)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?Z3M0WmIxQkpicU43OGhpcXRZSk4yZFdrUGt3dUNhQWJxdU1JMzEvWEpqQSt5?= =?utf-8?B?bldhd040Z2JTM1huRTJBLzRIb1ZWMG9pSW54Sy9yMS9iendGTVFvTGV2VzdI?= =?utf-8?B?cFo2aUVGZzhYRGxqeFFqNjE4eFlmdnJEL3ZyUGJ5eTZYaEVOT3pLVStzN2Y1?= =?utf-8?B?K0xIckFEajdEakxXOCtxQXlwT3Z4ckhucitRbFFDYXp6bXpUdnhvRnlXK0VM?= =?utf-8?B?WE80enR5c1NnRHFkTGtSdjRwMUtWTFFjQUlmclZuSVBpVXpabUxuWUV1NXQz?= =?utf-8?B?RkN5eGN0dXE3U2hLcVg1dVBBNU9OdThMR3Qya0QvcGhjVWRxU3l3MXNscnBX?= =?utf-8?B?eFFkOXRFWlBDNDZDZ0JzaUgrZXRuR25OTTdGS052Y0hBUEhiaHpxeDd0R3JF?= =?utf-8?B?bWZ2OHdWSnhXRHZsSE5wV0x5Y0FsbmdpNXVLQmgrNDV3Q3hyR2VwUzNFS2s0?= =?utf-8?B?TDgxcWxnc2ZKdjBBUmdKbHBlSDhHU0QyT29xZklmdXJBcDNzUUNpT01WVUpl?= =?utf-8?B?MkVaV05xN3IyMlh0QTdiOUxpTHpHZFZkUHRnMmxhQkZFZVcyRDFPNkFEL3dC?= =?utf-8?B?VThhLzAwZkxuTHUvc2pwRzhKMEs2ZVBPZjc4dVRnYlA0ZGxuc2IvN3I2YWg4?= =?utf-8?B?VjZ4ajFmZ1RoMStXbEdTR1l5ZytRQWdQRXBnbmF6WE0yVVJzY0dPd3BTVUN3?= =?utf-8?B?RjlOaXNWVDhGWldr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mNVlKWVRJVzN4Y25zMHZxbEFmZGptYS9VNCtYMERCeEJ3Nk5ldDN1OVJG?= =?utf-8?B?NFl2a2NWakVDVWZRbEo2Ylg2Mm82bFlYK2I1QjA2K05xWThqeXIxMGlKK29U?= =?utf-8?B?Tlc3RVRkdjM3RDJMZFk1ZnZDcHJpT3Fkcm44WjhPU3NmMWwvM2h3NlhkTDFI?= =?utf-8?B?YmExNTRMOFpNZTRUK29EdVloYnZYRG1UWHhpSTB6VWlPSVZPR1h0cXY5aXBZ?= =?utf-8?B?M2wxajJaeDF4NHZUbnBZMENqZlpFeVZ5endiV3d4ZDhNVXZJbkc2c0Uwdmpt?= =?utf-8?B?NGk1R1MySnBQNDl5QTYrZG1zQ3pGaU1tYUdYQi9hMllyaXZuZnpUMTVOWnVX?= =?utf-8?B?YnoydStQNFhvNnhZV3QrSTJBQzk4cnJRSWRycW8wQ3BRVWRibWFCR1dFdnMy?= =?utf-8?B?VDJXTnJCbjg1aWh5dE92Y3cyS0ZDR205aFlUM3dsRWFuOU9SSFF3TDdZOXlt?= =?utf-8?B?Qkw2R0Q2clQxMjR3QWszcTFvK0ZGMWNZTEtWYXF6R1NCWURaVERQekdhV0Ew?= =?utf-8?Q?raRBN292Nsk2fK7dD1voo7I=3D?= Content-Type: text/plain; charset="utf-8" Content-ID: <765DE4BFCF17E0459D9165253C140C9F@eurprd07.prod.outlook.com> 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: b506727f-506c-4449-0fb9-08dd10499445 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Nov 2024 07:43:55.6714 (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: Hu7EfzEH1Klw3ISuQZifV964yZ6q0p4H9KiqW4fyzaE+cApXtwI/NODeKQrUxkzdkiuo5zqbEH9N9CU99eXPZYWzlHooomi85tWbKkTT5SF1mjpfOeR3np/Yh814V++R X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR07MB7847 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.82; envelope-from=clement.mathieu--drif@eviden.com; helo=smarthost1.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_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_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: 1732866436273019100 From: Cl=C3=A9ment Mathieu--Drif The region returned by this operation will be used as the input region for ATS. Signed-off-by: Cl=C3=A9ment 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 135695c551..c34ec5ea81 100644 --- a/include/hw/pci/pci.h +++ b/include/hw/pci/pci.h @@ -388,6 +388,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.47.0