From patchwork Tue Jul 2 05:52:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: CLEMENT MATHIEU--DRIF X-Patchwork-Id: 13718989 Return-Path: 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 E2FABC30658 for ; Tue, 2 Jul 2024 05:54:54 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sOWRf-000815-1m; Tue, 02 Jul 2024 01:52:51 -0400 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 1sOWRc-0007yM-3y for qemu-devel@nongnu.org; Tue, 02 Jul 2024 01:52:48 -0400 Received: from smarthost2.eviden.com ([80.78.11.83]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sOWRY-0006Uc-GE for qemu-devel@nongnu.org; Tue, 02 Jul 2024 01:52:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eviden.com; i=@eviden.com; q=dns/txt; s=mail; t=1719899564; x=1751435564; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=Hc5l9iMS0hIGeK1Yyp7kRyUFTRfoq0lTUk/Ikx1qcEk=; b=uDEp6owyrXyG5/dBrUxflW0OIFhzmXrhET8vMHzqYJt4/PTXFtxBNGEC LfIzgeHPLkSfU+lSDm4WKLNp1cgDUgs2WbqDCBAQO8odTXknzNWi2S2sN ScySxz3iDsbrksu6isrqSi0KDS2moLhx7tvR+HS3+i2paFr2q1LZIGcu9 N8RVi2dze7ixH5t94BOBdQdBTORVBehM5pc9khPkV1K8eps6ZtujgmAD9 lyMt9iEaEf34vn/SnDvR8s4C0rUihDolrnob1uO97Ja4HoTf2MArZz2pk zuIVKmvizgnePGAwF05YHe+bAWbyEn3YbueIMLATHhXRbviYhLHHTSjWt Q==; X-IronPort-AV: E=Sophos;i="6.09,178,1716242400"; d="scan'208";a="15721523" X-MGA-submission: MDHunFQvuKlY5IMC5+XIvZjU2JALoYqSx/h1PGdLHYYiTj9XkbnKuwVKQk5RNF4MR2xFQbTuwkCrOMlsNCF6F/50supxmnQOmIJLxZysBXEQyyjTUdxOMr1uhx8TyB2a8d1mBURuiNpmusnBAnJYRpDWagwSy7rdrzJgmQdGkbYDIg== Received: from mail-am6eur05lp2104.outbound.protection.outlook.com (HELO EUR05-AM6-obe.outbound.protection.outlook.com) ([104.47.18.104]) by smarthost2.eviden.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jul 2024 07:52:40 +0200 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=by98qBR8l2/abxeYVmlgroLV7sGBsrz8xSPy30pMwq+kFsRm7Z9kKjwh0YNZBsV4F8CW5buSoQ7DbWplRETUYDqsyfvGlNKtK4v+kVnmYqkrK7vgRWWG6REOKg2+g1CAZeJD7lqF1hZrNtUii80l4Ida6v2KlnjZC6jvjR1VmuWQMEm5kkAFK2zefILUqUQOeBFHHANV2dubFcHAP++KdNx9cNcPPmwwoD1KSePTML7Ss54oYtF/WMQSQDoGiVraTEepm3TZ6hhZxfGKnZyY90M+2EyXkSk8bQu2xcff8GIAk8uB7rWHm6ddsfuHBugxD2Bzur1M9i+4x8Qxp3dLFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=Hc5l9iMS0hIGeK1Yyp7kRyUFTRfoq0lTUk/Ikx1qcEk=; b=NVFL8dAg4/siA4/0vu7H5j6ZZz+yBHJsN3l/s7529qeN4XNYBHHtEntpfoZ7xAQ5PSpJl7uBkMQ9/GGv9Ayq0YY/pFdVvKeaCpNiXNGh5dSdYqQFz9vs+TejFj8fzoA7RPkQRcVi0cP1xeRypW3JD+Z+N/Zi7LW8JAfDFrIjsHeRClkrsy+hU1pgqWF+9rrFSKKvhEXi5FEaBPDV3ud0iZsAGEw11R4cJ5J4JKcofkbgLP2o0/7p6vDLFqH11B4XzHjr9C/Qbt1Q46MPkoaFXtl+vgeSyTrnTnWzS4S3GRg2mq3q23RMtNILG3Pp8v5Tq+0bJ2w5NPIAjGaHKXq7rQ== 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=Hc5l9iMS0hIGeK1Yyp7kRyUFTRfoq0lTUk/Ikx1qcEk=; b=U98AoJY3TQQ85syHWVy8+d2ktrh8nOFki9Gnt6myccm0RYI1uDaPOHiy6NC3Qgeq/8qtidARSnZhk09akD3Lm5TcR/c2BRIbV3QwlNeSG9uJ65HpM5jEsPrdcGY/0cGDE+vTJf08ucLXqmoK5JUkCfnpk0I183K/geeJKWbkvKNmo5qaU0RbnofYs8M6v10oyka/AGEz9zQJ12noYX6wWDsqmw1WafnTCrADpnGPl9K08E1Y/I9y0y64IvhRwZngn29D4uEz9qdzVps4Z4kA25zCxF23TPOEMTxQk8mIx2a+H3yviu485xA0CG1SS8Kz9bJ2IGkSpTF0xFjihNhgow== Received: from AM8PR07MB7602.eurprd07.prod.outlook.com (2603:10a6:20b:24b::7) by AS8PR07MB7080.eurprd07.prod.outlook.com (2603:10a6:20b:239::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.21; Tue, 2 Jul 2024 05:52:39 +0000 Received: from AM8PR07MB7602.eurprd07.prod.outlook.com ([fe80::fbd7:ca71:b636:6f9d]) by AM8PR07MB7602.eurprd07.prod.outlook.com ([fe80::fbd7:ca71:b636:6f9d%4]) with mapi id 15.20.7741.017; Tue, 2 Jul 2024 05:52:39 +0000 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" , CLEMENT MATHIEU--DRIF Subject: [PATCH ats_vtd v5 11/22] memory: store user data pointer in the IOMMU notifiers Thread-Topic: [PATCH ats_vtd v5 11/22] memory: store user data pointer in the IOMMU notifiers Thread-Index: AQHazEQLU37p2/DTDEm/CBKcsLSUAw== Date: Tue, 2 Jul 2024 05:52:38 +0000 Message-ID: <20240702055221.1337035-12-clement.mathieu--drif@eviden.com> References: <20240702055221.1337035-1-clement.mathieu--drif@eviden.com> In-Reply-To: <20240702055221.1337035-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_|AS8PR07MB7080:EE_ x-ms-office365-filtering-correlation-id: ab6001f5-e86c-4024-a3bd-08dc9a5b2e59 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|1800799024|366016|376014|38070700018; x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FOerkEG2h79kt+6F1lCXDLvZji7sYl9zXUImYxXlyNQn3vlqQZ9PfU?= =?utf-8?q?75aF0dLV6Of77Mok7Fmhv9GoEfWDoXxjZ3lsA6D24YjUAw3l580U7P9L5Ukd8Ys4a?= =?utf-8?q?rNOBNi4aOh9aHD8Mgz6OWhGhWCxqqf+eDAGiRC45qNppTKMX59IoGa8EmBKI9ryCM?= =?utf-8?q?W368T6sE5xBUFUQe6gH6kb9yC3nd4HJyfu6M8zAxqj/O/ufsnCVEFgj5Y/FsCd76n?= =?utf-8?q?q++iqcc18FYA2eabyLoTimkaut7wcBl6jAcpX48/Wxj8t3Mnu9fusXI1zaJy3mTi8?= =?utf-8?q?JBegmAg8LUF/jgwhPWmSFYKBAEST7O97tDZO2Nhp1qOEbPT0NKNfDShsvqkKbyjGk?= =?utf-8?q?1Gg/pEEJyWRDlBZW+lkTQr4JrenHRL/bqHKcOW3/qJvSnUVeq6vKxh1lgTs3dzjz9?= =?utf-8?q?Xrv19iB7+ZqQSe/foX/rKJDLMDIsjTMW9q6oXSHKnUvEiUcMnqU9vHfuZifGxId3F?= =?utf-8?q?zwV+KRM2F2/AXrpkM+i070bmZNkGpqY9Pw=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)(1800799024)(366016)(376014)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?q?1MlS1zydxKubU+mMLc4RbwmipZpM?= =?utf-8?q?P6JurRxSSI/YA870Bw8ees/Hw+DpbbWRDGepNCWmU7IGez7MNZcOidCya92emMXXb?= =?utf-8?q?hG2pM8Qg98jhFDbi0HtLKgNGmruxPzLfGvu0ZlSx+PK1F2+j2HdksONvLK1tunbAr?= =?utf-8?q?YbUTcebMLAHTHMgeJyfLO/P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HMi1UzRGFrccjuiA1voFVTOfhX8SC190E3tLddlnGtiPQb?= =?utf-8?q?MOLgq57AEh+DvdhElHILqkL3yt8FguP+JgeQkGazPrMgNUUmcDKWBSoRcmitL1AD6?= =?utf-8?q?XHmDzHd5SNXqYYPD3APxrfEPRjMLugTT4CMGfMt0o6K0sna675a2iWlVxdtvWNkoF?= =?utf-8?q?u1FbzfAzbXJH9VuqYBhfY+BLD6i0a3FMV1NDDf/i2JQuvgRVrF8guzttdOyUNogrI?= =?utf-8?q?QgtdgRnrQf2T+YndDOT0evL7HCEisjsoyrkZzdfHR7OQq2+jbW9xA9r1VG3XJpGju?= =?utf-8?q?RCaOAoopNBHPyUDFpQmVn12cYldA5ZjbzbB5sKXB3Z1ZvVKm7wxvc0zB+LL85yBja?= =?utf-8?q?nggM1OVRppBpDkIGwSBeuv6EDM8+luox/Hjp43b+PBn7s4mBq4ApR3dnVBCiizO7c?= =?utf-8?q?bwkeNiLNmXkLjfhU60wYA5c9qxNAkVdHu84gms6IZrKEvhhtu/3DPUjcDE1TyTZeQ?= =?utf-8?q?65n8oZ/LgdCxslrw39iyZaE8ehzfhb9vxuE1cRC5iNeJCmJ3ZU60Mfc=3D?= Content-ID: <3E0C635EF0AAA4499BEC000EC77CEDC1@eurprd07.prod.outlook.com> 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: ab6001f5-e86c-4024-a3bd-08dc9a5b2e59 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Jul 2024 05:52:39.0001 (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: +eQstc+CG2EtDg3wfoSkSyGXj1KZ5icQR+LCQ34pDfHX7+biGTTKUAHIr+V1Tf2NxH3ibwH6knSTaQfnpXS9CcOhsaRmlK8chXc1jRFGUr2qfsWGFXrJ4MAvNTM0LKDD X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR07MB7080 Received-SPF: pass client-ip=80.78.11.83; envelope-from=clement.mathieu--drif@eviden.com; helo=smarthost2.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, 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+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org From: Clément Mathieu--Drif This will help developers of svm devices to track a state Signed-off-by: Clément Mathieu--Drif --- include/exec/memory.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/exec/memory.h b/include/exec/memory.h index aa8e114e77..bf91c4bed7 100644 --- a/include/exec/memory.h +++ b/include/exec/memory.h @@ -203,6 +203,7 @@ struct IOMMUNotifier { hwaddr start; hwaddr end; int iommu_idx; + void *opaque; QLIST_ENTRY(IOMMUNotifier) node; }; typedef struct IOMMUNotifier IOMMUNotifier;