From patchwork Mon Jun 3 05:59:50 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: 13683277 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 4FBBAC25B76 for ; Mon, 3 Jun 2024 06:02:40 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sE0jp-0006p8-BI; Mon, 03 Jun 2024 02:00:09 -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 1sE0jh-0006kO-Vv for qemu-devel@nongnu.org; Mon, 03 Jun 2024 02:00:03 -0400 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 1sE0je-00072k-Io for qemu-devel@nongnu.org; Mon, 03 Jun 2024 02:00:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eviden.com; i=@eviden.com; q=dns/txt; s=mail; t=1717394398; x=1748930398; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=W33qgJlj8867w6c1KTEAjJW0x8cQ2o+WdwuKiyAF9N8=; b=v8q7SbZ3+WkDuoa03x9MHm80ssyPn2MFwGjujP7HY1ji5up7HEdGZkph Nrjc+PcYzBLUp+A+hhFHUqJi7z/lkVPCR88MrR4zaQvFA9JbDkG0433SV OL2BBD60DiOOWcG8c8baTq1e1IkqAedYoQKYJbnI5vG51M+WBcveWvgy6 QnC+InYDC9rxULSPpjZ0nLeM2//yAtiLgzDTU4oPfLgyu/dckwG0UeM62 aLhNAv9zunymU1fULX552NsuL7y8BlOXxb+DUbvtiiglhhA9XfZF2K9t6 ncUTgtFgYfn3zaFaZsjV+NtbkwWfAEWbUqflxVX4r6bdFbvNtMdzRcnAf w==; X-IronPort-AV: E=Sophos;i="6.08,210,1712613600"; d="scan'208";a="13756562" X-MGA-submission: MDEQtAu0EWTMmskPRTfUuDFJb2evkVjPw1FlVzhIiyNFP7TFTPJ/AI0bFHI5XCyKps3UgXvMN2HNiE/2Ju1dN5nAvh/3OG7CvTxbqJTuxowuxuyO1T6wnbd+90TLXjKI+Mxl3t9Fi3txKg7LKkul0tfi7FiZV7p47+Dzgb9TAP1p5w== Received: from mail-he1eur01lp2050.outbound.protection.outlook.com (HELO EUR01-HE1-obe.outbound.protection.outlook.com) ([104.47.0.50]) by smarthost1.eviden.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jun 2024 07:59:54 +0200 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TWg6OAHQ2ZAh56+HtLikYtObw0dqWaFUmmr4D7AKQ6qdvNGmmgi61GmVz+CnvgXYua6DdTlqT4mKVmW5XaXodHAbeDFdzidvNJ3/BN0Is4/+uIBJZQ43CpfSwThbD7K00WzJFi+g/PvtRFMMblvNJyMB6CSnd/EG9Fv45ZCMTd6vYX8xgg1hIFNSE4jq480zvrdUn2btJYzcZJtnEMVjMP+Qy6uxIdvztwa3M7+vgXv6dONWubOdAFDDyVWCLMLaiqEtJKHHJdmIF+igasqxmcWO+FHE9ueWiptLelBkTlcxliNFT6veC/uSvMuIbtjOrzKPrRSFMnCP0XVyBNATmQ== 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=W33qgJlj8867w6c1KTEAjJW0x8cQ2o+WdwuKiyAF9N8=; b=eVEAD5R27b35OwYkX16RxdjInOl7VXJtW5Fm6tcgaNWuuw3uMlRcUC3qhNNli1n0a6LuzRT4EK+MLAA0jtDNDtdw/puAirfzMHtK5xm79Nx1PBpg87zZV+h2ISACgrikpEhJC0JHe3mv3AW7g3V841NZ77iEGzymHte3L4j74H4lLLAV0LBHnwx6KqPnucjPs14r+wxFahtXGH6L6GlCI5Au+EfUCRQmBPGmNMLO2tHjxeSmOZsMcjdXiq84x4EyXZJCazuS37yMCh2LI/vvfwCI/NoRpvSRY6OAbm/+2DNG7rstoMG8K1oVJT9cS5sIdS98I9KRin9wpO4T5MPG2A== 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=W33qgJlj8867w6c1KTEAjJW0x8cQ2o+WdwuKiyAF9N8=; b=MkzGHw5cl8GfghcwP+BhhGVq64dgBY3U9zpkfVimpf4Oo8dPdZndcSIxmpJo2Yg4mTO6SP65pgHR3L8DMhUcu5/BfnThHGqVNggsukMC0oSpF91BWKbekG7gQsMU9+rk/1XvDCGBXqjbtf/auIkWkkDDDIUU9hmuClbLqCUH2HohBbHkwYIr7csxlBcsofCY6O1DPaYOoO9GpCU1YjWXkK6/r5CtnYj04goQmWQb8cH3sHZwWq5rY7jMBXpMaqlnBgk/UDkOzji3kzWG41tkBneSKrBQkAgLVwd045DiGEW62nAlt9RAmj6zeftM0oC3ZakKKsteFfbnWKi1pYI5kw== Received: from AM8PR07MB7602.eurprd07.prod.outlook.com (2603:10a6:20b:24b::7) by VI1PR07MB6238.eurprd07.prod.outlook.com (2603:10a6:800:136::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.21; Mon, 3 Jun 2024 05:59:50 +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.7633.021; Mon, 3 Jun 2024 05:59:50 +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 15/22] memory: Allow to store the PASID in IOMMUTLBEntry Thread-Topic: [PATCH ats_vtd v5 15/22] memory: Allow to store the PASID in IOMMUTLBEntry Thread-Index: AQHatXs+/LPVl7uy7UyWTgdb2IXfNg== Date: Mon, 3 Jun 2024 05:59:50 +0000 Message-ID: <20240603055917.18735-16-clement.mathieu--drif@eviden.com> References: <20240603055917.18735-1-clement.mathieu--drif@eviden.com> In-Reply-To: <20240603055917.18735-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_|VI1PR07MB6238:EE_ x-ms-office365-filtering-correlation-id: 186f3082-8130-4d64-3765-08dc83926175 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230031|376005|366007|1800799015|38070700009; x-microsoft-antispam-message-info: =?utf-8?q?C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qpr8lBqQhjQTVA+QdNolokvO5r?= =?utf-8?q?5h+zqifBaieYoE8asgiRmdILBIc4aAB3HfqBrhdrATgDdxs8OCvjGnlDRU/gym1HR?= =?utf-8?q?3aYGKxApU5RaOhwJ+xy7TIufD7NvumWGLbEGb8dEGeVh88jFj1ioHeAdXIf7+gNMK?= =?utf-8?q?hd4PbYl8lHpa9ltNX1YDjxipcWhT6VwkT/Q+wYDetu87alOq4QWOJESUA9BVzh3XE?= =?utf-8?q?TSaebLliskeGJY2C0nYOSAXJJI5hEQquhc43UDV4UbWj9nEU2XRzF6iLR1YxjPsr2?= =?utf-8?q?zjXkf6tr3GP5CIzQkPCBrmNHjg/IK7kjOxLq3Ju65MdougWm27Xy7rTEUDA/dvPMa?= =?utf-8?q?mzAgSSP4u+pO+mfNUFZHCRrBEPyEkS6MDaz1rb9UXz3BOmeeadR3QR9e4CzeTSs3m?= =?utf-8?q?bg2t2fyDE+I4lmc4v3xPC5DBRdinPfnGQbg=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:(13230031)(376005)(366007)(1800799015)(38070700009); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?q?S9Iw/1aGIRRo1r1PncHPTf8oK999?= =?utf-8?q?fAhGaIFd82v2cPJ3haxp0MDdAotR29M4eGPQQqoo6ZU5l/3bOOGWMzMtjEHY1mE2x?= =?utf-8?q?HdC0Ps7nrrnd31Kn81lWW6Ewq6LUGMywr85/JqZMk+2HO0p2ilylEeK80f4wQaqH2?= =?utf-8?q?PfF6gEiToLc/YG5++GiXGTohYcf6loE281rZdGiVdLlXUb0RX254p8h67EOnvs2AO?= =?utf-8?q?YIGXhfjMzf1/efJ9tooIN5nkxDGhrdWi18p/RgTKAF45bpzGAjSBUCltFZit0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rn+6vjj3tes?= =?utf-8?q?bNWiF/4pJKLGmS0PXqOfMzSQ7apVdfwGdZBvqJ0h5E0PBXhxsajWP3heYOZuZmbCk?= =?utf-8?q?6fP+pbGcMNUOi36GB4gTwtofOjk+rjmE3BK8j1plVsfSMGrTuwB2mjKJX3lZM8nRj?= =?utf-8?q?kD1X3sFqPwyYkobH94eQQeBbOfXzGfhKU04IA5/TnaOAdkLIG1/e8lUOkRm1HhJrC?= =?utf-8?q?e7tvFSxox4D15EmgePjUdm0oKNi/S7t+0xhek5HRwkDtbvyHn60f4Kz/bYqqpkS7x?= =?utf-8?q?mkT6RjxYeav7/N4of3MMlW/fhMO4zlerKE49cMSE7IaJQ3yaVp+tB+YbJwottRR+C?= =?utf-8?q?+UE5XjQNocJXV6kKjvtXVqFzmazOfNJeV5kWsqnsmW5u9K5N0YRUJ2CA8p67z2DO/?= =?utf-8?q?Ct5LoSMg/W+gwSz2UH41UevD83ytJ+H6TkLbfubleKUnisWMjl2194c=3D?= Content-ID: 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: 186f3082-8130-4d64-3765-08dc83926175 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Jun 2024 05:59:50.2894 (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: 5A6JQRibUCuaCvsdXAIni/wtgTkAXrEJE0g3Ii/H2cwdkfJNGJKGl8kdYo7N3NCLw3bjWzpRyS09gKq5MwCLWzKnaMt6PKgPiKU/tkIw3XV92y/1FITZWQrFOAUnC39a X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR07MB6238 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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 be useful for devices that support ATS 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 359bca2ae2..56ef48780f 100644 --- a/include/exec/memory.h +++ b/include/exec/memory.h @@ -145,6 +145,7 @@ struct IOMMUTLBEntry { hwaddr translated_addr; hwaddr addr_mask; /* 0xfff = 4k translation */ IOMMUAccessFlags perm; + uint32_t pasid; }; /*