From patchwork Fri Nov 29 07:43:57 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: 13888455 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 05E15D6EBE2 for ; Fri, 29 Nov 2024 07:47:31 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tGvfi-00081T-Ro; Fri, 29 Nov 2024 02:44:14 -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-0007z6-F3 for qemu-devel@nongnu.org; Fri, 29 Nov 2024 02:44:09 -0500 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 1tGvfT-0002eL-7w for qemu-devel@nongnu.org; Fri, 29 Nov 2024 02:44:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eviden.com; i=@eviden.com; q=dns/txt; s=mail; t=1732866239; x=1764402239; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=m6yDis67dF1alZmmiGn0X8kfeXfpoNZ8C44721iYd5Y=; b=OhI/vO86mw1MfJnjsbCWXmc2C+GnhPxXNDfWZ8Jo03/0bnvq/dZPJz4+ TJSd4kHQ0s9R1+CQLLECU5bOJ2VL3jvGukVka8hGsW0XOcvWTrg9+GXoy nutQIdRX3fqlQXymCuCSQDA5q1wnftO3Msmb9NnUCN1TULYUZVRkdaGEK O99r7TSoTbS7JNioMpZJuYKEXBXbliza/Q6ZvSLLoofQyanztW0cT1sNS 9SfmWLfidEQv9hbHcD9A3YGwpwewdE5pirxDufT0VzOAK75iIJJxTFV5M WsQawUf7diKj3JgnbLsaLjrjiNrKnSCRe2Kvh503aAhLLkuu/WcNK+y+H g==; X-IronPort-AV: E=Sophos;i="6.12,194,1728943200"; d="scan'208";a="25670801" X-MGA-submission: MDGd+gu3E8dwwfAWmaJ4UUlpW8tOeM0lwfXLuX2SmGIK/IkiY+UceDBeBF/G9ZBCG+DUTcJxppFSkov3Uxtvw0N2oVCJktNy91fErWmi3kk00cTaUe7hp3gKZtwXz1T3eBHBR9Oeps/CF9u6sQj0CE8TEoYswuP/43hh/ejSuSxWng== 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; 29 Nov 2024 08:43:58 +0100 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=XCVf87RXf2d1j8fo0xUvnn3+LzesxLGDnOth0RQ54ciQwEEFGUUZJfUmK8vXRoycOWBh1C7sA2v9DyK2v2ptlm647ox9tpA/9zpsqIlFYrBAG75IZtd8vqZJ+rs+pv+knMQe/WHQ3jdsS7RN62h1iCCyV4GrdT0KWN1lZ0xMFeWM8g5U2GNFfo7decl5pZDhu5FJj8rmJlRJZEOIPG/m/tSHnZCTiyVe7x3KZWXFXAVfbQTCuIlk3IdzrzST8DQTECcOGcaKpMR/LquhTr0/Zxaa1J02Bv5lIrIvpPrs53VAZ0H3dcLWC0WWSWv/XMIi7XEyE9jXCZVqtzEiAU7qxw== 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=m6yDis67dF1alZmmiGn0X8kfeXfpoNZ8C44721iYd5Y=; b=TWkzbS9CQbArM+8huw4ARd8k08f1LxmrQ6k6rTrQ4tOw3qycMfBt9OpneL/lllNa6HJGrePZ+jhbzMtYfo/l4zLp3oC9UH+N4yeZbWKbFkdLMUtib5NokFIXIeL6lK4KXiYxVxp47DVMaWkGH70fD3YILQ8ZTFw5bDTKx9NnHehga7+kDYDYMf6OdDvsD7B4AGBATFxFZD1bf5HLXJ40V09qPSiPGLSQTCaIrCw+j7FnE39PPba/J26C2hqPr47kCF/xIEUepdL2VSblz26s8y+NWGnNxSZSEpMnpIEJ+tAyB/hpeLks4T1ccrsZKwIw6lKUWy3hdvnDkC6KhGNM5g== 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=m6yDis67dF1alZmmiGn0X8kfeXfpoNZ8C44721iYd5Y=; b=bcpU7CCnPl1La1UkErRlyuqbRV5TnUzt62eGJb+ekEePWqUYs0uLFC20vDH92W44nQQILz72Zd198VMuQuIWdHcZvpvBaT8cH3nxpvG9lnL8rkovsSWjgwr2Xkrbzyh3SVTU7KopBfjNCL3z6wA87HZBYE/EC1bvOeS/Lryj9Dvyt+FDDhEhoRmxEYZ+G3+9I9jcjiinpbqLekrGuESHjZvLGZIIhAme/3Z3sHDjLYztQ3knPArN2CJQ6L7cC5pjO6xQg9Y0OkFMcehKe/dP2NjJMaVPPcH9CXUWhTAoIOGpHeBh5hcRUSXOWtwhAiC6hAbTUAcWOMmzGE4Dgz92iw== 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:57 +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:57 +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" , "tjeznach@rivosinc.com" , "minwoo.im@samsung.com" , CLEMENT MATHIEU--DRIF Subject: [PATCH v1 11/19] memory: Store user data pointer in the IOMMU notifiers Thread-Topic: [PATCH v1 11/19] memory: Store user data pointer in the IOMMU notifiers Thread-Index: AQHbQjJyHnrIgNnsXECB7r/kjdHmtg== Date: Fri, 29 Nov 2024 07:43:57 +0000 Message-ID: <20241129074332.87535-12-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: 803f1af2-d758-4f6b-5c63-08dd104994e0 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|366016|7416014|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utf-8?q?Mgv7pCnyHtJrJdBRXsSC1WZlGbod6GzxwT0jKaxtVLJHBV1MZlGvjTrQzQWVxbqvr?= =?utf-8?q?c1BnY/ovUpjcVjyDknRzCk/eLeGf2ge5TYpmVv4WZ3U5aFSrArNHpkgSiNXhMny+T?= =?utf-8?q?9XQUSwn9De86IQ9BRrtpzWTkWIsTmSzgdDWn3O8/wforpspEXmb1NYx8rDE6Zdu7f?= =?utf-8?q?Pjz8kfOf3bONx7vD9HCAfnO60HwBOjuMsEeWu5mrN9eUk0HVcS+BHu/lylv8fBVaj?= =?utf-8?q?GPhfgafxc0b/D8/60jlKJ2dHpOX02noWc7g8MAvtxutMM0tdRgGPkcPc2eE5fqzOg?= =?utf-8?q?K+Zb1RKBqCfcKwM6ejy95gFSO4HNbvYoFVpiWbcuMHDool0TWgtfyPlenUAy+T3oi?= =?utf-8?q?vcK7JBJLj+tTDCgnE8Mq9oY3ovyw0XTLFhs+jxNCC+YIqy3JKngbnDqN+keKNbcF5?= =?utf-8?q?B3vnwaF9q7lmhhIxCM0N0VVIbnu3dRMFKvH3hlbtntTDC4e7FBmTt1gzOBo1TH+A6?= =?utf-8?q?leKDW5CaloSryfHsGUC5YusOETCoweL3Pw=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?Fk1tg91efbubpVPtPbTDyrgIBtEm?= =?utf-8?q?SmqgCieewb1WC6bKj5GIU77DxSM4uLQFmVuVvs1tsy5JxJ1mqjEd5oduXSXBZr3pW?= =?utf-8?q?8WUj7LhSNu2cPeoCUqwE1TGJMrBPdxN7bGkBZdj/UiLqVPLg2elxD0YnNCokAhEKd?= =?ut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?utf-8?q?XCpreKhjsosicxGctaZqKGD4koOtFoD3FNyS6kKVTx1mdPvESnI/bUiRgyQHsjZBO?= =?utf-8?q?bD6tH6gXATn5MKbAbAC0Y9erizCyjinOfoq4YW2gohs7XiE+m6yIIfE9QQ0F2+3eb?= =?utf-8?q?XK9cgS8/lxU5dQjokt444wOKsufgHTaQlF3sxEay3CFn8q2voAz6SoNZIeRMAS2EQ?= =?utf-8?q?Ciu5lMnymcAUsyNOfASx5zmrMaqcc9SgJsxnySwfsRUfvNPF4vou/wQw8c+6WTuuS?= =?utf-8?q?DC3q39fUC5ubes98cY4SIx2IOmzFPKqXzrRds5aUpwOa3Jymqf+5Ssg6Wz+7ZNMjW?= =?utf-8?q?nK0+AdnJuGH4JBES86F05rDicl+JC3WmhnS6WFDLjAQ0gtDvB7H7wB9c7UQZTJPYD?= =?utf-8?q?U3ZAvmqFhy05kIVCJF8hNj+h8SN1obd3CTgUn37Ie8Z4d0bWC1kdnbz2apbJ2enJQ?= =?utf-8?q?EdFfl/BzoLLoS6DmbRpFv1P783helwyhFvsX3HSK0vub/UzYbpsDkTzUFOQ4m/Oec?= =?utf-8?q?naKMxYu4YGYY4Tb6qmCLKdI8PPiQ2X3hnGDWpKHLcExznHiFelh+a1o=3D?= Content-ID: <200A7DC6C30DFB4CBC2D1A7ACB295E26@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: 803f1af2-d758-4f6b-5c63-08dd104994e0 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Nov 2024 07:43:57.2456 (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: 2fK+jsmiZDyMhqO3x0Ouy1LU1Xq7nw82hw3jUhAAf2BNLg1D6lmwSfU27MdEkXUn6eVN1YEU+84waTrjjDX+9mxTb0o6YU/o8pTfNxQQJ8VmmNhhNYZrnIGoltm+WnNM X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR07MB7847 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, 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+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 756dd2ea7f..c0d064dbd8 100644 --- a/include/exec/memory.h +++ b/include/exec/memory.h @@ -204,6 +204,7 @@ struct IOMMUNotifier { hwaddr start; hwaddr end; int iommu_idx; + void *opaque; QLIST_ENTRY(IOMMUNotifier) node; }; typedef struct IOMMUNotifier IOMMUNotifier;