From nobody Mon Nov 25 10:21:03 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=1716297244; cv=pass; d=zohomail.com; s=zohoarc; b=fWQvbJiQRBMld4dsdqTLBgsy/kxJgp1bJat4xHSZN6gWH4OaHGtqZ7YInldIKihBOzg33hWi+TE8bpqlZdyIk3R1HroGgzE+u0unAADt4CWgu2jjonDRycfjONPYNZJrsaRT/WscT7DUDyGsKOJIVWvpXjBgWR1UvQU2+BAzKrY= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1716297244; 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=tIM0BHg6yThMkhqORC+BUeZDUMynoBvXIlaRATWvIhM=; b=kH1uliW5PCgrgpqhgD8UrmING2Vi/zLfhQGv9JXeC/DtgMv8pc+n7Mry4ialmdK7wAmBrRR+CYMdFy1SarukO0V25CbuY1jMab/DvtHhKsabHXaqTC5xRU8YjUlOei2wldborPOK25HdHJ6CRdOIuxN95j1FdLe2g9lMVmmNzWU= 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 1716297244320489.1009080953406; Tue, 21 May 2024 06:14:04 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s9PHj-0007tv-5Z; Tue, 21 May 2024 09:12:07 -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 1s9PHP-0007e3-RW for qemu-devel@nongnu.org; Tue, 21 May 2024 09:11:53 -0400 Received: from smarthost4.eviden.com ([80.78.11.85]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s9PHN-0001Zh-0e for qemu-devel@nongnu.org; Tue, 21 May 2024 09:11:46 -0400 Received: from mail-db8eur05lp2105.outbound.protection.outlook.com (HELO EUR05-DB8-obe.outbound.protection.outlook.com) ([104.47.17.105]) by smarthost4.eviden.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 May 2024 15:11:42 +0200 Received: from AM8PR07MB7602.eurprd07.prod.outlook.com (2603:10a6:20b:24b::7) by AM8PR07MB8148.eurprd07.prod.outlook.com (2603:10a6:20b:323::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7587.35; Tue, 21 May 2024 13:11:41 +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.7587.035; Tue, 21 May 2024 13:11:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eviden.com; i=@eviden.com; q=dns/txt; s=mail; t=1716297105; x=1747833105; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=tIM0BHg6yThMkhqORC+BUeZDUMynoBvXIlaRATWvIhM=; b=pBCyUZDKY+cZf0lC2wb6xMSA5lE359V9+m1OBL3beIPWmxL8A0e2jNjY Xc3SgEze72xFyyrWQowfW1s8Hbh4x2bUfEXZneBpQeDCQCTQTj5wQXhu9 RrXGY3Po+cwEdMc0zqdndpk/GaFppb31bHqfBjDdcbvwE/AVptYzf7MVa i3sgx5s+P1f8e754PxjKpV7So40zgQaGKCeBcNF1AFjl5GyDQm2a1ZM1D Y40BhT9okFcZOot4VdLSpE3DandUL4Te8KW4kIY+O1BU44z6ck2w74Uqm qslZszSl7lbfGtHDENmOFJodxkotEfV35j1287k2L8vj96LlqFZIQArk9 w==; X-IronPort-AV: E=Sophos;i="6.08,177,1712613600"; d="scan'208";a="13061498" X-MGA-submission: =?us-ascii?q?MDFGfMax9gt4oByEnWpuEkg42rartscyw/UmjY?= =?us-ascii?q?0gNUmz2r+/bL+YQ1/N4t2yjzgyAEG3gj8sq63hw0x2TtUk0reLJAl2Kz?= =?us-ascii?q?XVT5hKsQpyyk0FFEfibearhyRzZVZXX95PDQ7xXfTXQyMCvgUHAaYcPU?= =?us-ascii?q?e/vvTjwHwrD8FjfCDUBHhW7g=3D=3D?= ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HcRr4R8KOh7ZxfL50Re3DE3ckW78jo7yQsrtUeFc54C7BDcBpVGC/92/EHUASSuHqfowzmU3rT0+ThITVME5WkrwMVscmiEU99s9KN+01aEtIaV1OjelTlvT1oG6P/MtgD1UXguu6XYWSDTIMmssvFPREbEwnIKohYnxLCjFT7a17rzY7/NF5/wv5Zbl8cEzXoUXs/by/MRUjdu2ON9Woirm2PoCZyel0CdWCh26p0AycziYAkm1S+87JCHH/zN5KOXyDYSuLBVJBQI2FIPgSBzCEAJwR5K8+jg1t2kul+dqua9jjbGg2v0FSFIbvcYwVRB0r7vhz76vbRmzMMWM0w== 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=tIM0BHg6yThMkhqORC+BUeZDUMynoBvXIlaRATWvIhM=; b=T3Q7s2g7x4F1riGiMADAuMVuaZo1ws3h/kLcsk4ZtarjY72Ob3Tm1tGGCdQCPMZNiH4a5o+h4N7Y0WpL3ca9/Va+EC2h0ky6Lfnoo7gc07VnJvIn6RPyucBwjEiPV/SQc9Izcj3LdzXWndiPt+UAN3QAPca17vkTEqWFCGjLMMLaEgRWBafi5nMMdwmoxL/EnhLIopSmkKKHSYkepYaQ8iqDfdm/J/fp7Mn4DLqGJ7BIH5mte3+XMgr+AOXjEq93AYGkaZnHjXRHK5kpfzdT92sQwaf7x393ew8eDvIna96A5JoRjmveJmPV4NaB4KtGKVZE1ufzgNOuITa27F0naA== 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 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" , CLEMENT MATHIEU--DRIF Subject: [PATCH ats_vtd 05/22] memory: add permissions in IOMMUAccessFlags Thread-Topic: [PATCH ats_vtd 05/22] memory: add permissions in IOMMUAccessFlags Thread-Index: AQHaq4BrjVcZ9I524kuvkvI+pg0RuQ== Date: Tue, 21 May 2024 13:11:41 +0000 Message-ID: <20240521130946.117849-6-clement.mathieu--drif@eviden.com> References: <20240521130946.117849-1-clement.mathieu--drif@eviden.com> In-Reply-To: <20240521130946.117849-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_|AM8PR07MB8148:EE_ x-ms-office365-filtering-correlation-id: c1b4feb5-3167-4bb7-d694-08dc79978e1d x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230031|366007|1800799015|376005|38070700009; x-microsoft-antispam-message-info: =?utf-8?B?Z0YrUkRkNlhxUm5MY2VIVWljbU5FYWgzZFlHWTArQTBKb0wvMzZ5MzhkSTBa?= =?utf-8?B?SGV6c0ZiTTBEKzJHbVVwNWpXL1BJS2EvY2JPdFJZZWVPdXlweTFsVCt6UXo4?= =?utf-8?B?aEViZGJHb3BMNjUwQVppUCthYmk2R1VYT2Ztck1GbTkydFhtaGdpNkduODQ4?= =?utf-8?B?dCtBL0Q4MzhuejIxQzFmeEJjWjY1VzdqY3dVNG1lMWduU2VCY0pkMTd6QTVr?= =?utf-8?B?UGcrM0U1enVLUXBiNTM1TVhaeXRSUVFJQUdmMGc4TUdVWmliZ1dkbEFEekdr?= =?utf-8?B?VWIzbXFmcVpxdUM0c0EwUFhMNlY1V3ExUmJqc0pETzZiVmZGRHlGT3BHdkFQ?= =?utf-8?B?QkZIc1pHVmwybTU2ZW43aUxNTmczd1ZLT3B6N05TV2tIVCtEbDYvU1dWVEFC?= =?utf-8?B?RDdYdG1KUGhVVmZyRW8rd29VeXFDUmlFZ24xamdGNVlDbDZNSnJMSnJyUVRv?= =?utf-8?B?VVp5UGlQNFI1ZmhTalduT1Y5NEtxdkVrQ2pyYjhndUt3aWg4ZGJ4M0ZXSFpI?= =?utf-8?B?dG1GbVI5NVJjQitPUjRaUkhsYUQ4QXVINXVMN01MeGQvbTA5eHpvOTdzYSt6?= =?utf-8?B?QTJkQzNQeGI0RXkrcUl4TTc0OHJLd0tOMHJseWN5VEJGNU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MTQ0R1BmYWtZaC9jYkt6Ym1hbTNS?= =?utf-8?B?T3BHSzlaNHNpdDVYc3MvTWdMWlZ1bzErWnp2TTVYenoyVU01M3VjQTZVbFpp?= =?utf-8?B?MTYwaWhVYjk3clRiWlpIdGl5aWZsUk8yM0I4ZmF4dEUrVjh0MGpJNjhnOXdF?= =?utf-8?B?Sm9TYnhJQ0NSUnVUV3laczUzaDN0ZWtsSUJZU3o0ODJ1NjloYzJZTXI4REhC?= =?utf-8?B?TXdRZjB6VFQ4dHVlUVJ5MnBaWm9SS3duQVpVSCtXWmRBVmNLcis2TktkNDl3?= =?utf-8?B?WEEzNUdPcjdFOE5peE1Bdz09?= 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)(366007)(1800799015)(376005)(38070700009); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?OTlBcGIwREFQbENqQWo1Yjk5YmtkS3FoZ001S28zRUdIZzRXM2NLNFkvckY4?= =?utf-8?B?MHVReU43Y0g0bDd1S2g4dU9jT0VYYmZjQ3NibFo0ejJrVWcyZXRSemx2L1hi?= =?utf-8?B?dWlmZWJjTUFrQXN4OTU1cWZnS0dhR3dHSzQ0RlpqTnFsa0VpWjhPSGFxd3J3?= =?utf-8?B?TGFQdWhYb0V2c1RPMlNyL0czQVl4bWRYNjJoVU9SYW05VERPSDdUOFkyZHJG?= =?utf-8?B?TEExT1VORk5GTHloYWFLZ1FOc21wQ1hYdmthazNTWnhRTmwzaGdFa1JtYjUz?= =?utf-8?B?R1oraXIyQnllajcxN21sNU81aCswdTdkd1R6dUZXa0czTXRxb0trdzFGTmUv?= =?utf-8?B?d2Z0RGdyb3hNeEh5VC9HcW1ucWY2WXVjelU3aXMyTFdySUU5LytsMjVjSUU4?= =?utf-8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-Type: text/plain; charset="utf-8" Content-ID: <9DED61B897366F44B800F3F344ADF684@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: c1b4feb5-3167-4bb7-d694-08dc79978e1d X-MS-Exchange-CrossTenant-originalarrivaltime: 21 May 2024 13:11:41.0279 (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: 4k+VeVuaX/iox+dSqEsKZdW87htQWFTYPItV+5Q1pjETRgDTcYKVRul+uedavD/lB36Y0exdSmY1UkKLTErEsx2VnCienD3GdboRqDCTPKpaA/uv0mAu9hvZN8Z9qdcz X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR07MB8148 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.85; envelope-from=clement.mathieu--drif@eviden.com; helo=smarthost4.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @eviden.com) X-ZM-MESSAGEID: 1716297244764100001 This will be necessary for devices implementing ATS. We also define a new macro IOMMU_ACCESS_FLAG_FULL in addition to IOMMU_ACCESS_FLAG to support more access flags. IOMMU_ACCESS_FLAG is kept for convenience and backward compatibility. Here are the flags added (defined by the PCIe 5 specification) : - Execute Requested - Privileged Mode Requested - Global - Untranslated Only IOMMU_ACCESS_FLAG sets the additional flags to 0 Signed-off-by: Cl=C3=A9ment Mathieu--Drif --- include/exec/memory.h | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/include/exec/memory.h b/include/exec/memory.h index dadb5cd65a..0067b2266a 100644 --- a/include/exec/memory.h +++ b/include/exec/memory.h @@ -110,15 +110,34 @@ struct MemoryRegionSection { =20 typedef struct IOMMUTLBEntry IOMMUTLBEntry; =20 -/* See address_space_translate: bit 0 is read, bit 1 is write. */ +/* + * See address_space_translate: + * - bit 0 : read + * - bit 1 : write + * - bit 2 : exec + * - bit 3 : priv + * - bit 4 : global + * - bit 5 : untranslated only + */ typedef enum { IOMMU_NONE =3D 0, IOMMU_RO =3D 1, IOMMU_WO =3D 2, IOMMU_RW =3D 3, + IOMMU_EXEC =3D 4, + IOMMU_PRIV =3D 8, + IOMMU_GLOBAL =3D 16, + IOMMU_UNTRANSLATED_ONLY =3D 32, } IOMMUAccessFlags; =20 -#define IOMMU_ACCESS_FLAG(r, w) (((r) ? IOMMU_RO : 0) | ((w) ? IOMMU_WO : = 0)) +#define IOMMU_ACCESS_FLAG(r, w) (((r) ? IOMMU_RO : 0) | \ + ((w) ? IOMMU_WO : 0)) +#define IOMMU_ACCESS_FLAG_FULL(r, w, x, p, g, uo) \ + (IOMMU_ACCESS_FLAG(r, w) | \ + ((x) ? IOMMU_EXEC : 0) | \ + ((p) ? IOMMU_PRIV : 0) | \ + ((g) ? IOMMU_GLOBAL : 0) | \ + ((uo) ? IOMMU_UNTRANSLATED_ONLY : 0)) =20 struct IOMMUTLBEntry { AddressSpace *target_as; --=20 2.44.0