From nobody Mon Nov 25 07:29:12 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=1717394602; cv=pass; d=zohomail.com; s=zohoarc; b=KYO02WPK3bhsDpPi2KjpXuYaWjoHYWMnqUklMa3SbzOFiu0JXkb8N3d6gkFYeX7T832sibd4QDUw0Swm8rAughm+nXSZ9ueqAk8PQTGaKAARfH481ZSysF/ZP+3a+H1dvCwyDcbPOjTDbzLaNufOuP2ip6Extzii5FVIOMXAPqk= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1717394602; 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=+TK6Zle7ulmJBALlSA1cDnHgI2mELoDDS5fd5A1y8gs=; b=CfPLrGu8aUqJPhDVR1ctQosqxlO3oea+5XYNhFScza7lpk33QbXCS8LHp2yviT1mwsZHQdZA8CiNfcpHx9HjciRIwOk52rpFEA+UuqA5eAdb4hYrb8bgo5WjBlK7F4heFODeXQ8onrKXgcqlxvkKeEAUkNAPl2Oa7PQrRqATiB8= 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 1717394602430926.8083027018968; Sun, 2 Jun 2024 23:03:22 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sE0jn-0006of-BT; Mon, 03 Jun 2024 02:00: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 1sE0ji-0006kP-1C for qemu-devel@nongnu.org; Mon, 03 Jun 2024 02:00:03 -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 1sE0je-00072M-OW for qemu-devel@nongnu.org; Mon, 03 Jun 2024 02:00:00 -0400 Received: from mail-he1eur01lp2051.outbound.protection.outlook.com (HELO EUR01-HE1-obe.outbound.protection.outlook.com) ([104.47.0.51]) by smarthost2.eviden.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jun 2024 07:59:54 +0200 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:51 +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:51 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eviden.com; i=@eviden.com; q=dns/txt; s=mail; t=1717394399; x=1748930399; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=+TK6Zle7ulmJBALlSA1cDnHgI2mELoDDS5fd5A1y8gs=; b=JNyOITLC0bZ+QTJ+l03gofKKYHBCA/Tjvgsykmvwwc/dYKZcn9xLxSZo 5zJrplUU3+qs/zuOTHyqQyiVxUmt9EvKrYkESxN3ps2IIc62eVKNjAXYQ lnLoq0jHUNb4kwGB1Z9nFAHVGD8G0CYqNKMVj1HbQIH1OwG6kxxvbMtNm EJkupvf/Nrlm7LxILB8TavGo9E50g+Vns4NxsTSiTlPRUiDUE10OM+t+Y I/MNPUNxuPNjdx7EEsXiXNjvR5XqA4+dRfvCG3By2jIYvm5nsLSS1k4TS sMRMASv7hhZjhKugUDcK8bIw9O+Xf6RzATONMguMQwRG/Gups3AlqOQ0N Q==; X-IronPort-AV: E=Sophos;i="6.08,210,1712613600"; d="scan'208";a="13763250" X-MGA-submission: =?us-ascii?q?MDGgMixguMerjGSqACX2X+IceTYMDiJGIqif+Q?= =?us-ascii?q?3u+lMLNyNRURuoF0d1J5IbktCy2nxRfZXjBCqODzQB1+/9d8VRgbrEw+?= =?us-ascii?q?1Y56/b8BzJBuXTCFEIvpLiGfyLymiIhjkZuwNjIK9APNX6zm0qmCtpeo?= =?us-ascii?q?c68rZHSvFDVhMGzl2nxnNbOQ=3D=3D?= ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YtJlj6X3Kj7KHifMbMtP+ngMwfpLuf+ZtOiB5wnVemqXqudE0pp0JE0pCFkI6vF1f/61RdDmqYjwPGnBaJsy96klGspqf1cmEJZTLQmLoL0lLOx1z4I1hM+DLIevEoESmD+5Re7JCoSB3YCrlZ3dtIpeGCOef8/dz7/DNKNB9rVPoPNuACOtBW4jVtvhLObmO8K+HjZ9Wag0kotu+9ii8LYWZuyHcZiHBoDEP00gdJcN2dc5l1M1K6cWsEquWDxnigO3irE4Pw79YRH91yJISlz15khmtFL58JncY1nbR+2hRUCdXVye6Ski96xEhGs6qLFfE9WKObTSs0o/GOI2rg== 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=+TK6Zle7ulmJBALlSA1cDnHgI2mELoDDS5fd5A1y8gs=; b=T0d77YRi/PJJVvcWxfo2jGOlAYp0edqVlh7D3M3rJPgni1WUzUgMZLxVoEGeqwupSG/6gFNxnlynizSJk6wM/UQfqO2RzqsHmqTApzMcomFb2IdFzDhrypKRRNozKvDQGzH68J0UNXF+Gv9lG3rcaT7YgeZ7tlbcp/QIovfbttai2clUuJMQk86uBetsxGcL637eC6uc1ZYv+8edFiKCoWxoOZZqcGB5agrLYrKVI3MdLpLh756si2T6NfW8rxGvwMs9tXMO0v5bsEAbfxSjf71b4LNHbxNDNkwJSPdf4UpWxK/l8XkzAorXDpxu37kNnD6bZr3MVDmoTX8kLnO7LA== 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=+TK6Zle7ulmJBALlSA1cDnHgI2mELoDDS5fd5A1y8gs=; b=QA+t+cJcWJbTgvjg+FWc9Z821Td57b0LO2kXL76pbzO97ybXKT8jOQE8Pt0/+RzV2KtNaI3+jxYR1uX0ZsnKLOKpsrmveX5ishqjDZ7TCdFtFb5NlT/sFmibUuxYaBYB4SZvyM9G4lU7cKe0jL86eW59GkEVkb1PwOroAwyGy/3PbHNWfqbjvpVlpKeyYZB+F453sGzWvnRO2G4FdRS+pTRpnUNyCV+AJjGeEGVkTkLrgCMude9JOG3oefUPoO7BTyb6Kvs9CNUHmhcs3+RB2C5xFQeeO8MDxp6wUK9mP9DXPrsbxv7Zq0ZQoQbYDKd5gzHWpazXqyq8uPpaH78vbA== 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 16/22] intel_iommu: fill the PASID field when creating an instance of IOMMUTLBEntry Thread-Topic: [PATCH ats_vtd v5 16/22] intel_iommu: fill the PASID field when creating an instance of IOMMUTLBEntry Thread-Index: AQHatXs/2Kth/K+aAEGM/Noyd0IfWQ== Date: Mon, 3 Jun 2024 05:59:50 +0000 Message-ID: <20240603055917.18735-17-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: 7fbee4b7-c0b5-4672-2239-08dc839261de 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?B?YVp5YVNMUkNlMVVBOWhJTzh6bnUyMlU3Z0dsUzhXY3p4MTA4TWVvcy9xMWZ2?= =?utf-8?B?OVFXVFI1MGdnT2Vob25ydEs5YzlwZ0tQenZMcC9Bd3R3c2R5clpDT1dzQWZl?= =?utf-8?B?TUR4dEF3V1hQRGsrdkhDNTJQa1ZyWXZTK0ZNc25BNjZHNkQ5aDFR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hYjVUME9wM1ZQbDU1?= =?utf-8?B?cUpJNGlEYWtySkZuWVJ0Ly9aUGcwVGd0cExEUGZXek90Vy9ycm1tamEyOWVy?= =?utf-8?B?V0RWQXNvUVlweThScnVBVmtmRVUrQ2ZITmlnK0Yvazh0YkhmL2N6NHhVU2Iy?= =?utf-8?B?UVNKQ0puOFR0V0NIZG1LYWluWStRTEZSUEtEbDZsanBFUlY1SU1XU3pXQ0Jm?= =?utf-8?B?MmY2UXFIc2Fnai92bnN1OXdzejhHM25qdW1aemdqQ2xoeGg3L1BDTjRGYmZW?= =?utf-8?B?ZGNlc0dyYzk2bzJGaTZSY2RzOE8xcE55SWs5eGRxVlByTCs2VlBHcnBJdmRy?= =?utf-8?B?cFc1ajlyZDh0YjRqM1lRenBJQ2ZzWjBnWWljT0h4VnF6eEtxYU5TUFRybDZV?= =?utf-8?B?dGFVL0RKMG1NV01OUURNS1M1VjhBVFV2WkozVVdQM1U5ZTlqc3RmZ2FkR3lJ?= =?utf-8?B?MjlKRmdOWmEzd3lVSXhOQzRBb0RFZzM0TVJtM0ZWUHFDR2ZCZGtnYmtoRm1C?= =?utf-8?B?bE5WcGFYbzFTS2tzRTdySkZkcjBQRXBiUERscDB4a1EwVEo2cGhOZDdWNXRn?= =?utf-8?B?WWRJdFl5N0t5eGpmd0pCRDlSbWpOTk1SSFNoMEVlVElhOU1Lbmo3OVQyMzRH?= =?utf-8?B?YVVNNE5CejJwazg3NkhLZXk4bmMvcGZDVzNScWNFQ3lqZlpLa1pMNjI4cmN1?= =?utf-8?B?dDlBT0RURXlFZXBscUZoMW1ZQU90MUt2RkdSTS95OVZ4QUsvb0FYaG1VRzNk?= =?utf-8?B?NFl0SUt2SDNlKzViY1dDZz09?= 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?B?bkJEWGMxZWlUbnYxbzBYYmhTQkdObUp1UzFENXdmaEd3cWZma2F5YVpZdFkr?= =?utf-8?B?VndyditLbnlHbmhONlRjT2tiZVZXVmZFd1pDRlZTeWdLcjY1L3QxSGEreTVR?= =?utf-8?B?NDB4c2h0cTVXTkNKejBoR1lzK2d5d0R2ckZtSmFVVisvY2FGSVkzM2t5ZTli?= =?utf-8?B?YXp6ZThOYUhHZk5iQmZEYVNaZGdCNmNyMDMwaVVSVkdCZlhIWE85NnNEdGdM?= =?utf-8?B?ak0yQVFtQmladXZyblQ3VWpDVm1ldFRYMzZQYlpsTjNiSnVrdGgxMityd0E2?= =?utf-8?B?eEdSTDJQb2hkMDVaVmJMakFkdnh2MHdJdXNEU1NKTzNNMTF4WWlyMFN5VWc4?= =?utf-8?B?L20xeCtObEdiaGx4clMzMmt1ZkRzR2htb2NPU3hQNHpJcUphMGtlWDc0Zzd4?= =?utf-8?B?VzJ2NE14VzNacnRmaklzbTFwQ1k2bG5PTU9TR2RTVEhIaWRMTTFVcVZyeXpK?= =?utf-8?B?a0dLTUUwQlBIK284dzVsMlptNWxyUlQ2Sm9yQkdTT3hEUm5JTnhIKzNaVGxY?= =?utf-8?B?RGlyN0RPUFlkaTB5TjNsckw2bW43SGIrVHVUR2ZsRE5OcGM1d3N6OHpuWFFa?= =?utf-8?B?cjlheHNrQTBPQlRiT3RHKzlaSCtUTUxqSGpyL1huK0dKMHFCL3V0OWorYito?= =?utf-8?B?dGhYdTZhd1JQT1BJWks5WlF4YjM0azVKVlhLenBoWUU1MXhWMTNMU0owbnJk?= =?utf-8?B?em0wVE55c2xvby9Wam82VkFpbWhyVXBWQjNxV1BSUHVDSFNBMm5WVXBMb01p?= =?utf-8?B?RFZLejE2U3RKTmExRWM0Qk9jSzM3bEJEQ25PZUU4VmxiZVh4U0NmVFJsQm9a?= =?utf-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GlDckZp?= =?utf-8?B?QUFJc2hwMFBzR0kwOWNCTXNLVkJkL2h1ZzZEelFQTE0zMk1nVGM5Zk1rdCtV?= =?utf-8?B?SDZ5OUNrTjgwTXQ5a3l3TDZVK1l3dXRaaDB1bkEzdElQcjhmMGEyQXpMVzYw?= =?utf-8?B?c3BpTkNSWER6U2hHbWlTa3FWbnRGeWJrajllN0haM245ejB6K3QydFpKeTQ1?= =?utf-8?B?QVltdEE4TjlLa2dLYm5zVmdRYnN6cWNTSWNXQ0lwVTMzdVRKQ2xQemxiSE13?= =?utf-8?B?NWcyUUs0S2hCRElHZkZJVytERC9DdDk1aEpoTml3c2wzWVFzVWtyOHpoemxD?= =?utf-8?B?S2dGRVV3VDFZaUxaV0IxU1FOdFBoT2tFZXhBb0lIWkhFSXRMSHV0OUxYWjF2?= =?utf-8?B?MUo4Q2lvSTNBK2RqM3VBTVVoR2xNMnpqRXplU1hpM1dUQVQ4WitJSzgxTHlJ?= =?utf-8?Q?ohDnubiTKYJ0VI0ma7CClWo=3D?= Content-Type: text/plain; charset="utf-8" Content-ID: <75FDCE7FCD68974EB147B07684E386D3@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: 7fbee4b7-c0b5-4672-2239-08dc839261de X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Jun 2024 05:59:50.9736 (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: t34jhuhY3EBOzJzT+sibbaNyxgFyteWcy8wOzizkDvu49sKdCtPrZWQY9LKf48cCLrqNQbawJWQ6c4KZCODYhC+pksesYx+yWi85yt0WpHSBjaMRlwWSOmPXX3Goi+6I X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR07MB6238 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.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, 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @eviden.com) X-ZM-MESSAGEID: 1717394603378100001 From: Cl=C3=A9ment Mathieu--Drif Signed-off-by: Cl=C3=A9ment Mathieu--Drif --- hw/i386/intel_iommu.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/hw/i386/intel_iommu.c b/hw/i386/intel_iommu.c index d607562de2..0f3bd5978e 100644 --- a/hw/i386/intel_iommu.c +++ b/hw/i386/intel_iommu.c @@ -2187,6 +2187,9 @@ static bool vtd_do_iommu_translate(VTDAddressSpace *v= td_as, PCIBus *bus, =20 vtd_iommu_lock(s); =20 + /* fill the pasid before getting rid2pasid */ + entry->pasid =3D pasid; + cc_entry =3D &vtd_as->context_cache_entry; =20 /* Try to fetch pte form IOTLB, we don't need RID2PASID logic */ @@ -2304,6 +2307,7 @@ out: entry->translated_addr =3D vtd_get_pte_addr(pte, s->aw_bits) & page_ma= sk; entry->addr_mask =3D ~page_mask; entry->perm =3D access_flags; + /* pasid already set */ return true; =20 error: @@ -2312,6 +2316,7 @@ error: entry->translated_addr =3D 0; entry->addr_mask =3D 0; entry->perm =3D IOMMU_NONE; + entry->pasid =3D PCI_NO_PASID; return false; } =20 @@ -3673,6 +3678,7 @@ static void vtd_piotlb_page_invalidate(IntelIOMMUStat= e *s, uint16_t domain_id, event.entry.target_as =3D &address_space_memory; event.entry.iova =3D addr; event.entry.perm =3D IOMMU_NONE; + event.entry.pasid =3D pasid; event.entry.addr_mask =3D size - 1; event.entry.translated_addr =3D 0; memory_region_notify_iommu(&vtd_as->iommu, 0, event); @@ -4320,6 +4326,7 @@ static void do_invalidate_device_tlb(VTDAddressSpace = *vtd_dev_as, event.entry.iova =3D addr; event.entry.perm =3D IOMMU_NONE; event.entry.translated_addr =3D 0; + event.entry.pasid =3D vtd_dev_as->pasid; memory_region_notify_iommu(&vtd_dev_as->iommu, 0, event); } =20 @@ -4896,6 +4903,7 @@ static IOMMUTLBEntry vtd_iommu_translate(IOMMUMemoryR= egion *iommu, hwaddr addr, IOMMUTLBEntry iotlb =3D { /* We'll fill in the rest later. */ .target_as =3D &address_space_memory, + .pasid =3D vtd_as->pasid, }; bool success; =20 @@ -4908,6 +4916,7 @@ static IOMMUTLBEntry vtd_iommu_translate(IOMMUMemoryR= egion *iommu, hwaddr addr, iotlb.translated_addr =3D addr & VTD_PAGE_MASK_4K; iotlb.addr_mask =3D ~VTD_PAGE_MASK_4K; iotlb.perm =3D IOMMU_RW; + iotlb.pasid =3D PCI_NO_PASID; success =3D true; } =20 --=20 2.45.1