Message ID | 20241129074332.87535-10-clement.mathieu--drif@eviden.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6E04CD6EBE5 for <qemu-devel@archiver.kernel.org>; Fri, 29 Nov 2024 07:47:14 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces@nongnu.org>) 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 <clement.mathieu--drif@eviden.com>) 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 <clement.mathieu--drif@eviden.com>) id 1tGvfU-0002l6-C2 for qemu-devel@nongnu.org; Fri, 29 Nov 2024 02:44:01 -0500 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: MDHYsGRhdcfUuLh3lc4jqcYd0pwONASn3+DS+ZJCBBXl5aUnpNfMcRnmMeXM5RBnrxo8t+rmXLWUQy2+em8CZ5ptQ7ya052eFCQAxtGHpOx2dtmn0+GzZoJUnZXnWJlo2IEoVdc7cX0Ir2gor602fMMtKDtO7sf77hpVjOOEpfNv4Q== 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 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== 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 From: CLEMENT MATHIEU--DRIF <clement.mathieu--drif@eviden.com> To: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org> CC: "jasowang@redhat.com" <jasowang@redhat.com>, "zhenzhong.duan@intel.com" <zhenzhong.duan@intel.com>, "kevin.tian@intel.com" <kevin.tian@intel.com>, "yi.l.liu@intel.com" <yi.l.liu@intel.com>, "joao.m.martins@oracle.com" <joao.m.martins@oracle.com>, "peterx@redhat.com" <peterx@redhat.com>, "mst@redhat.com" <mst@redhat.com>, "tjeznach@rivosinc.com" <tjeznach@rivosinc.com>, "minwoo.im@samsung.com" <minwoo.im@samsung.com>, CLEMENT MATHIEU--DRIF <clement.mathieu--drif@eviden.com> 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?q?GLZrtfDIofL05sOh9aE9/DQey3Fsufq?= =?utf-8?q?Txto5F3sOGKynqeVzwH01X7P/hNhI7OSYzi1PHc1w5PQ/VtmJ0DRp1fU5oZQW28hq?= =?utf-8?q?36t8mhlmbf9sTs8fY/m8Qk0goTMksDYR/sBs2cQL5eUbioZ/RI2d+aLlxIuFxOuIZ?= =?utf-8?q?l64l1p3vxwMXZ2dn7QBhM5TehoruGi6uYnIhNQGg6o+fxcioQShMePtqoMoo6i8/c?= =?utf-8?q?lvt7ksbOem69uyGZMvRoDYyf/75841cHL/Y45jnR6VB7ytpcyVth9vSKQb/Yseljw?= =?utf-8?q?9RxVT2RNji5c9CaBlu5YwFfH9mxAeW8pZFAd/GavOa7Xe7oW0G9LS0/2vZCBrThPc?= =?utf-8?q?HlXbj6FsyextZmnTQFXlPyWKkfMLEZadnXZkfBUkWOGuV9Tl0jpLJHvsaMlFYw96x?= =?utf-8?q?PFxAah775LcA/nYNQfeXg7otRYb/n3r4jHjmbqQCVpNschs8accC72wWJRNZ38dg0?= =?utf-8?q?PXzeo0dZ30cBy7x0bM8BJGzubemwB0NSnYZ0qJk2FRcFactm+r3FPe/JntgrHBJEA?= =?utf-8?q?y4M3c06/uPRoUpMqM8LEHppqY4A2lVQjucpdW9WmEHA26ZtbCYU53wCTfToS8QnQP?= =?utf-8?q?xLykufBsa76EY4zXsEawiCuNJeaDPoe8xTa57ZTQ4OPbYNybcX4pj2E4SyqL4kaHb?= =?utf-8?q?58Il1qb7utPMHr/Gel52KoNms742xI0lMgfdlmsUaTzM0HkVuniPNpPTsSL1nQc07?= =?utf-8?q?YXUEEm5G2qYbsWw/CT2TFQGE+og48Abr5oioQL92S7Gwxn1Osdj30ksQ/7IgXok4y?= =?utf-8?q?hRj36KwsR8DtKMzCuOvzd+malqAHtWbnF1zrk1J6d0w3cF1iIJWuzdn4EqXS3F2YB?= =?utf-8?q?m9q8zuPOYGCk8agvXM8jP75uImspDNriCg0E1/rPu/crGrSnxLBJRxpVb0i666M4H?= =?utf-8?q?2ofHFG6cnMTZshGWcADW+n3oEGnNHJYSS2PcwYSk0Y0XdCXTQufjPNNDKuD28hv6v?= =?utf-8?q?iZHG0mbzvY0w1/B8NV18/lWp24y1sM1uQz2zth+1jG6R83RPr2ujjggkuXnBRPlqj?= =?utf-8?q?euGQjaPthijkSM7lgxODOftJT+7dIFFf8KBhyQf0EEC+N+rXJFr2q2/XPmoCpQLgU?= =?utf-8?q?A8RaPZuv3thmeVM2FyZtAZ214qohy0GHS34BFA2ojw3v2a1E6wUk7W/5xo2HacOex?= =?utf-8?q?sFxTPHBsvJdbZre937opQIya+6kEqESLblihJPIzMYBCkWNzW5ITMUGi17LaR4JDT?= =?utf-8?q?G3Dcr1+/WS/StIMFzWEchhcsCJ5c516G4egle9WkTl3Yyxo68GMis/tUvmQ49tuE2?= =?utf-8?q?YWWZmKnrwhxmZ7twQHwwCBY3kWDIjxD7xnieWlyWZANh+7X6lxo3tjKl/UhVj85Lz?= =?utf-8?q?zboCZdBzkGkFN+x//YsC/MN/M7hQBTKpwQ=3D=3D?= 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)(366016)(7416014)(1800799024)(376014)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?q?gs4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u12HZgKrgBIYP9ytWFapqkZb9?= =?utf-8?q?uMdGVT5YtLnE32EbpC1cgn13Gb0AHYqqwQfkjRqI8Q43WQwchJ1Fp3i0jrBoE30qI?= =?utf-8?q?Bk3X1po5Q17RxdcZXhxaefql8LxVumR5MgIlEAt1o1oKy/yAHbvNmfPaODllaMMWK?= =?utf-8?q?l8vsMes8F+jE2D4s0KD+WUUo0eeySZBR58LIaLr19xzbXFXi2JakEv/j9tIQQTIL2?= =?utf-8?q?qtyIAis4wXMvSjOfhzNvBxHrZX/DRR5IzpCbUNZrDCVvvLG9On7xquEi3MoHxUTIp?= =?utf-8?q?eP93fr2NSssoqsQCtGYf5YJYTIW3xcns0vqlAfdjma/U4+X0DBxBw6Net3u9RF4Yv?= =?utf-8?q?kcVjECUfQlJ6bX62o6lYX+b5B06+NqY8jyr10iJ+oTNW7ETdv37D2LdY5fvCpriOq?= =?utf-8?q?drn8Z8OSsf1l/3hw6XdL1Hba154L8ZMe4T+oDuYhbvXDmTXxiI0zUiOIVOGXtqv9i?= =?utf-8?q?pY3l1j2Zx1x4vTnpY0CjfZEyVyzwbWwxd8MUvInG6sE0vjm4i5GS2JpP49yA6+dms?= =?utf-8?q?CzFiMmaGXB/a2YrivnfzT15NZuWbz2u+P4Xo6xYWt+I2AC98rrQIdrqo0CpQUdbma?= =?utf-8?q?BGWEvs2T2WNrBn85ihytOvcw2KFCGm9hYT3wlEan9ORHQwL7Y9ymBL6GD6rT124wA?= =?utf-8?q?k3q1o+FF1cYLKVaqzGSBYDZTDPzGaWA0raRBN292Nsk2fK7dD1voo7I=3D?= Content-Type: text/plain; charset="utf-8" Content-ID: <765DE4BFCF17E0459D9165253C140C9F@eurprd07.prod.outlook.com> Content-Transfer-Encoding: base64 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 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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org |
Series |
Rebase ATS onto lastest Qemu mailing list state
|
expand
|
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 devfn); + /** + * @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 *