From nobody Sun Dec 29 01:02:22 2024 Delivered-To: importer2@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+importer2=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=1720535251; cv=pass; d=zohomail.com; s=zohoarc; b=GTmvjjC5z02LE2Ne7sbnPjCRbTA0LmJWB7BbnvXJFfDAvmwC1w12ILnoyFZevymOIK1vIvzY3GM+fa/JlPYQPV6420o1vco3f8vR2HmtNnsEo+DTwLWXmZOIvUpBBHpEfhhnq6xwN+SfNqXp9PFXeuPv7ElDWORLqoddljcHolg= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720535251; 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=u/EE/MVYvmwVs8wPu6Il6DxMESvsWjmJtHWqiv7M++c=; b=kEAEgMZ3ws3a5fFXp6hr0GMib+BdpNb4qzkOaNsEVmyMor1V3+BlP2dog1BTMtlMx/5jq+N3chat0ZEHLHng9yLQC9aSJEI6EtHnh0DhVc9grwFD6CFq7qkT/nYSN4XX3Jl+YzPUesl/MFk/lmlkBSXnUxaWINQ6WnBlasaZAkw= 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+importer2=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 1720535251824384.12287323543876; Tue, 9 Jul 2024 07:27:31 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sRBnX-0006YT-Fv; Tue, 09 Jul 2024 10:26:27 -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 1sRBnU-0006Oc-TA for qemu-devel@nongnu.org; Tue, 09 Jul 2024 10:26:24 -0400 Received: from smarthost3.eviden.com ([80.78.11.84]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sRBnK-0002k2-Sa for qemu-devel@nongnu.org; Tue, 09 Jul 2024 10:26:24 -0400 Received: from mail-db5eur02lp2105.outbound.protection.outlook.com (HELO EUR02-DB5-obe.outbound.protection.outlook.com) ([104.47.11.105]) by smarthost3.eviden.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jul 2024 16:26:10 +0200 Received: from AM8PR07MB7602.eurprd07.prod.outlook.com (2603:10a6:20b:24b::7) by AS4PR07MB8459.eurprd07.prod.outlook.com (2603:10a6:20b:4e6::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.19; Tue, 9 Jul 2024 14:26:08 +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.7762.016; Tue, 9 Jul 2024 14:26:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eviden.com; i=@eviden.com; q=dns/txt; s=mail; t=1720535174; x=1752071174; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=u/EE/MVYvmwVs8wPu6Il6DxMESvsWjmJtHWqiv7M++c=; b=N/EcZmLnBcOw9yih7fFjMi/rR+JKAtIvQ/Orqzy6vmrKe0mPMrI3ieFQ iwGUJS1D7s2hfGpwYRp1KVv9/xH6naz6JSF8tSMOipijQ3EQJ1Ta8dNOb RB5urfsdv/dTRhdWMz9JWIA0FoVGLBIDpmcZzEca3zgskYvAGJWdX1kN3 CWJKmdpTyviUY8w/AaD4s5XTaM7r/4psJ5rGY/0duaMGJHAp2+l5+2afr uZ5HcgFvzYfT/D0+QK/p89HmQavFHzC+5jZc/nkfGgwiQr7IKtv/10Wxp n+0yNwkWxfOiq21+50NCz/vvrn4aD6f89/6PbabwR9Ku3enHzKLBdzLha A==; X-IronPort-AV: E=Sophos;i="6.09,195,1716242400"; d="scan'208";a="16172660" X-MGA-submission: =?us-ascii?q?MDHt0OLFiCuR5mDp0hqv4unM60BKCx6Zkpx3uj?= =?us-ascii?q?wDxYt4jv7MdtL3iqfM40u65+U6S5znVKG8A0QjNIz7moXoQGLlqEwXS0?= =?us-ascii?q?fo6ZMu172eXveKUkG6/GBIbaBWCIDjwRZfPhiFBBTzkf/8EGRsi2Zvjh?= =?us-ascii?q?GtguA202oPCAFdPgD0dZHNRg=3D=3D?= ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=unJKgZlBnJStIE9vUAkIBR+S10KOjg4bC3CYdX9JbaRj9RPYy39NUFa7stdL9j9OrILV2mgJ5Maon9cavmbrTUa0NGB37BJMf9VAWBXYUM/Pb9oEo7jKg9ahq3+S2J8w1PiQ77vjgoeeAVINSlGOwmHXCFCGVThL0L1geb+oUJgtKBlVkeNyISAitV6hExHEiLW6rcx1rMgJHAx1WNNQrDKiX26iZr4SVBvWicOxc5sdt5/GLAVMmRBUfZ9KyPvrIh0CijSfKbdkYseomSEPTR5p9TjLOUliUjdJTw/z6RzOsdozolMDGlws3icT+Gz+LFXQ5WMt2J35dV0KXuv53Q== 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=u/EE/MVYvmwVs8wPu6Il6DxMESvsWjmJtHWqiv7M++c=; b=ILNEjZaTFB4/QtXmSZUP4sudjbF4VW+3zWSbP4yibaxYW2hRLCcEuaAfdUGjHANlEd09kvSgiWNdS3t1GuFdPx5IorVLCpcaYS49AzC+MlIsbU86sUYO4PyWFjC/uUBu8xu1kw1Dxrym/jqukckOPjICKYYR8GCUGEwdpYc7WaG1Zmv8CmqbWlREMyc4JOxtLwW/y8HlNLjVx7pm+4EJvpnE8H0RhAsI7jLszh2Ubhy3KLp4t4Eg1AUGJ7Ob04VcolAV996xb/FDKR5c2k6fwPIOpTkIV9GBSWWo8ABukNgblaU8ytYuMPDQBxuP+QhPPFfKEGPo8OfQxoXADSVDPA== 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=u/EE/MVYvmwVs8wPu6Il6DxMESvsWjmJtHWqiv7M++c=; b=nF6hQMx4rNXBVc35IfJ/GCtEOKH052nF1Aaoblf6r3UdZ/h4aq5NrESb4K42EjU+Mw8COiqjIOp3Opt50QN8wK2iOkR8fDcODhcphlbw4vDWyw2y3scoJs+dHxPeOf5a/PtzfQ5AuLZSpHY/tfnEAw3zfhEl7K1eW2gyOgxGFE/7tl+znOxHFq/nsQ9quEXmtqpRXYogTTJzqId95wv6NdAiW3lFc7rcFlrpkryhswic49rccjY+Fdiet7wa7GC75i7mBLfWY/jxgkOMOIJ3qIkY6yl37HZHS0hDfDsmiiUyvmdXr3VV5kBYwGnmVKJBb0nTCDI2AygFEJLoqvvxCA== 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 , Minwoo Im Subject: [PATCH v7 1/4] intel_iommu: fix FRCD construction macro Thread-Topic: [PATCH v7 1/4] intel_iommu: fix FRCD construction macro Thread-Index: AQHa0gvwQEBSmTxjMESb+vD3l1do3A== Date: Tue, 9 Jul 2024 14:26:08 +0000 Message-ID: <20240709142557.317271-2-clement.mathieu--drif@eviden.com> References: <20240709142557.317271-1-clement.mathieu--drif@eviden.com> In-Reply-To: <20240709142557.317271-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_|AS4PR07MB8459:EE_ x-ms-office365-filtering-correlation-id: 1ca57ec1-763c-44bb-e619-08dca023133d x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|366016|376014|1800799024|38070700018; x-microsoft-antispam-message-info: =?utf-8?B?Vk1mc2U5bjNRZ2dKMkgvUnBTOEltS2JsT2RzRzdvOVNpL2ZLSnQzNlJRemNm?= =?utf-8?B?ejlmK2VLVU9uVjdFOFZLK1hVa3NZc3JaVnhVMlp6YnF1NE5obzlSNHRXbGxH?= =?utf-8?B?Zi9ycXRWWmUxVExUcStPZ3NwQzR1L1hPdzZ1djVDS2VBcnhWeVFoVEt2NVFJ?= =?utf-8?B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G:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM8PR07MB7602.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(376014)(1800799024)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?ZDJDT1hCR2piZXlzSUlPRXE4VWVqZ0J2QVhCbXhERVRnYllybXJWSHFFSG03?= =?utf-8?B?MEYrZHc4VCtMa2tmc0VmaHZVV29SZ2lCNVR3bHNWV2E1Y0RJSUpZQzJvTDlS?= =?utf-8?B?UEJyblhLc2x4K2psdkZHQjZGYTBkKzYzVlozNXB6Rm5YOFZGYnpuNGNPejBp?= =?utf-8?B?TXAxTDdCSkpDUW9TamtCN2lEUXkwRzFpd0k2Snc3T1FMQ3dGaGNyZTZkWENM?= =?utf-8?B?QXNHTldPdWg0cjVoNG9QTjFvcmFBK29sWE9zVFFlLzhTK2hNWnJqdGwyTGVw?= =?utf-8?B?S2FLbzhCVHFsajVWeUg5YlA1OVhMdFFSUlhJT0g2ckw1VzBBMStmL0lGMitM?= =?utf-8?B?SGdjOGNEMnNPQ0doem12MEJUOCtVU3ZTeEtGTnEzUTQ5R2hPU0ROb2xHTmRh?= =?utf-8?B?UnEwSFFablVvSkF1d0F5Mkc2MHRCSnQwQXhvV2Y0ZUdiZUUxaWlQWU1tNWJU?= =?utf-8?B?UWlFeEUyNmVpekVHdXFtZWxiMDkybENrbWVIT1BsMTdwRUkxZXp1ak8vbWg3?= =?utf-8?B?a04vNlN5ek5jbFA2YzB5WEIrZTRBZ2pnUUoxY0ZsUjJzQ2hYbUszYlk4aG50?= =?utf-8?B?eVp1MHBBWno4Q1M5R2JQLzRGdUgzTm52c2VNeFc5dVVhQm5VeHhNb2Myc2JK?= =?utf-8?B?eCtyMDQ5eHN5bzlTVW0zYnhrZzJ1WHB1aW9ManZOZFZwWXp2elhacXJ3Y09S?= =?utf-8?B?OTEzcTI0S3hvd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f-8?B?YjErL1pZdWRpMHBteWt5ZWxQa04xbFJyVDg0dEdWenZVc08yQzBkUTgyaXcy?= =?utf-8?B?Nlpqb3RRaEtRWHRrMkZJZ0UzZDg5RWFyL24wOGkzUXBJRktkVC8ySDN1eDdK?= =?utf-8?B?QUt4WThwbGJ1TFZNSmpYUWt4cUFqaU9qWG05YmF4eFlOcXNUV3YrY0ltSWhm?= =?utf-8?B?Z3gzOXY2U0VjR3JsS3d1TXQzdTdaUDdFNU12alAyaHB1UU0yaGczMDBwMWxD?= =?utf-8?B?V3lYTVpqTHpKa1U1MDQ4Q3lxQ3Vyd0R4VnRyZWxwMHMxSWJkTWFoTHE5b0lB?= =?utf-8?B?MzRnWnMvK1RIYjMxY3lSb2szVTg3RVNhczlCV0FIUDk0VXNmdVU1QWpzZlRm?= =?utf-8?B?VHZvWk9DVkpCTjU0Nk5wRkhMUG16V1Q2REJoeC9ERDBDWXBDTnV6bFN5RlZN?= =?utf-8?B?WGR2UU0rRjBsSHV3dFNiUXVEUHFTM2RLeWpwZWowYVRVVDFjdzBDUkJlZXha?= =?utf-8?B?c1UyclhNUm03NVhXamxYZ0lMb20yRlV1NHBsemNaN2wyMnlYQTd4OVdIMXVm?= =?utf-8?Q?wvIaC32gu7F8Xn0NqIf2Qx0=3D?= Content-Type: text/plain; charset="utf-8" Content-ID: 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: 1ca57ec1-763c-44bb-e619-08dca023133d X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Jul 2024 14:26:08.6339 (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: q2RUq1romSoXg1RSkFbm838rFvVAlUGCaB5TTzF3pYmz5zwPsDvpSR91Xdnsm8Rr1OkTTnnUvgFlqShScthTpYIdcjz9auXijY4bviiOriSfoWbJHjTy6k1/pYi9jerL X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR07MB8459 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+importer2=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=80.78.11.84; envelope-from=clement.mathieu--drif@eviden.com; helo=smarthost3.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+importer2=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer2=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @eviden.com) X-ZM-MESSAGEID: 1720535263547116300 From: Cl=C3=A9ment Mathieu--Drif The constant must be unsigned, otherwise the two's complement overrides the other fields when a PASID is present. Fixes: 1b2b12376c8a ("intel-iommu: PASID support") Signed-off-by: Cl=C3=A9ment Mathieu--Drif Reviewed-by: Yi Liu Reviewed-by: Zhenzhong Duan Reviewed-by: Minwoo Im --- hw/i386/intel_iommu_internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/i386/intel_iommu_internal.h b/hw/i386/intel_iommu_internal.h index f8cf99bddf..cbc4030031 100644 --- a/hw/i386/intel_iommu_internal.h +++ b/hw/i386/intel_iommu_internal.h @@ -267,7 +267,7 @@ /* For the low 64-bit of 128-bit */ #define VTD_FRCD_FI(val) ((val) & ~0xfffULL) #define VTD_FRCD_PV(val) (((val) & 0xffffULL) << 40) -#define VTD_FRCD_PP(val) (((val) & 0x1) << 31) +#define VTD_FRCD_PP(val) (((val) & 0x1ULL) << 31) #define VTD_FRCD_IR_IDX(val) (((val) & 0xffffULL) << 48) =20 /* DMA Remapping Fault Conditions */ --=20 2.45.2 From nobody Sun Dec 29 01:02:22 2024 Delivered-To: importer2@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+importer2=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=1720535251; cv=pass; d=zohomail.com; s=zohoarc; b=i0m8268Cd/6R6yGu8YoOsy4qsqyXhMWDBfXjNbZc4h4zRu716w57uMZWoi6qpna2IyExc6i4mTJgWhiNEUaN9yuxRWwCXoXX9RRogaKL6RmItoMKzTm5NmrOclwOlzadnoJOTUPfS2jjMBSI+RLJHYn+gUBtQ8NVEkjFXlYS2/8= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720535251; 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=rMSbcG3FjkA/956ne7dFU6tsNnbwdrHjNAv6+ySCMSM=; b=X1YsxmcehnJ3k1yVmv8k1Lp9oN2d/uX5K+K/LcOu+oBbIN1MRbt4IcDhFjBj4g8QWuNLp/6ve+qywQvIWEMe5sBuv8F0aq8iXDMOJz2UzqxNF+E/heRm1GnwT2mKnbm6JkO5knMw02VOThpLI2vBPuiDwU67pN61NdaSwIxWTiY= 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+importer2=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 1720535251798102.2563344762151; Tue, 9 Jul 2024 07:27:31 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sRBns-00087m-D4; Tue, 09 Jul 2024 10:26:48 -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 1sRBnd-00073q-FM for qemu-devel@nongnu.org; Tue, 09 Jul 2024 10:26:34 -0400 Received: from smarthost3.eviden.com ([80.78.11.84]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sRBnM-0002lO-Ob for qemu-devel@nongnu.org; Tue, 09 Jul 2024 10:26:31 -0400 Received: from mail-db5eur02lp2104.outbound.protection.outlook.com (HELO EUR02-DB5-obe.outbound.protection.outlook.com) ([104.47.11.104]) by smarthost3.eviden.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jul 2024 16:26:13 +0200 Received: from AM8PR07MB7602.eurprd07.prod.outlook.com (2603:10a6:20b:24b::7) by AS4PR07MB8459.eurprd07.prod.outlook.com (2603:10a6:20b:4e6::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.19; Tue, 9 Jul 2024 14:26:09 +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.7762.016; Tue, 9 Jul 2024 14:26:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eviden.com; i=@eviden.com; q=dns/txt; s=mail; t=1720535176; x=1752071176; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=rMSbcG3FjkA/956ne7dFU6tsNnbwdrHjNAv6+ySCMSM=; b=IMOIJMgVK3v5OI1V1nOJWtUKCpNfMV6NXQ2s7FxsQmfyI20IbjM25PIo K0feHUM3VKy7uHinWQ10Cq7IfVNE+gvXo9kF7lDYSGrYzKh2nZACT5ZrW W7OOhbi5ATg/Qy5C0au/sLrte79r0bzLeGSLBiow8KZBToZbt37BkZRfQ hwtfv9GW2N2JxS4hUXtVQNU4VpbmtwoHe7n5XEUXsSikPnUS2oXQgiuQc vrGV0mu7Bajxs3eEUCryCg9mf748Q7vLH/kMcgbmOyxEyTqPsmBLkyWbL ns4dNtRi4f+JIfa0Yv+SQXGyQx4HuE2Zr8/khiSH/voOMia7phHTNDDe2 g==; X-IronPort-AV: E=Sophos;i="6.09,195,1716242400"; d="scan'208";a="16172661" X-MGA-submission: =?us-ascii?q?MDGeFlJoZcif0Gxd9c5oju/xlyOa1hR8axmOdN?= =?us-ascii?q?rwpFNW/Yn3HMQlpKb5W5oHK4i16K/VbjFazZoMoZNwF/xwxH5jyJPJ4u?= =?us-ascii?q?Yaeg7T1RJnoudnUont48OzKVWRIOQAY+9dH92xagBXE/VJuvMJaUebSN?= =?us-ascii?q?UU1VzxsJyL61KwOBiFX6BCWw=3D=3D?= ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=rD1ryXXgg+SbImK77vPKOjbwkzevnw/vOWuCaNf/s7VTKChaHJTmRbydDIbaEUqFMNnGLR+rom39Y7uc2Iudf8Mfsi3RljB7qycCC94IQy/td3ZmkcyEB9ORe1QL58EefvMjvo63e29KvVM1mGLeaL5V6FTnIlIZCtC1FzdC6BIDic+gitKWgdnuC6q8V15zEnTYeZ4v4twTqDi2huSRywYMww0GeVT7RzMy5s1b2KlFD2e1X4SWGNvUklcKomiuaAglUtMsStwB+piJzRBc/gGJ1kcVWswQlfS6Q+Fbbqdb9HJlJZHpkusgVxNG03XPrOehEiZKd1KtYteatKbo4Q== 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=rMSbcG3FjkA/956ne7dFU6tsNnbwdrHjNAv6+ySCMSM=; b=pf39+yrCaTEOlm+uZkBxUd9Pylkd6UQwaO1hRd14YMv4AKFcZUFARgGOVcTr5OqPBvFabla2lM9tVGdVkn9HNbteRZs6q9tXAG9l1JIAz519HqPyV69/qvtJm6RJ2PzsKXlP7ASwLlDMsGnTmImwEMQcNT1KOqASDtnzarz1L1wQazJu4kH43LOe+Aakw/x0NBjYSmpo3QaDMMvkNa9unG08Gck/qSHKCGk84Rc+Y4kqm/I5y98lfDAZvELrkI+diiaxWZcrfGqR9bSb+kX5LIyERUsMpCgOayFhwsB5Nlo8xhBzlVFuke+yXnJDyQqg3dLvu04N//DwHijDfeh9aQ== 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=rMSbcG3FjkA/956ne7dFU6tsNnbwdrHjNAv6+ySCMSM=; b=jHaa4e6RHNBnkd5leIvT0xDE+P8HFLc0ORw/z+lFLpE6jYrOoLHjzZHd8yMhc58o5Dugz1EwM9/a9MUCcB0JgJUAS7URB57r907KzDU+InUVXB3fV1QX8hqF+L7kiXrG1KRkgpRvk9tBHol3PjRHHpw6w5l87y8NCBv7zQ0sC96LjkdnnrgAMftR0mLVEZpO0mlFSFoaphayXvFFSeJkY19s/Tu5aMLleoOXf1ZFMPk2umIr+wnyYSMPu0VIiNM5kkF0C3j5zTrOMWvWaH1RJSnqfUrQV6yVf5VYeoiC6ZW3ifEqPU0OuObGVu+afZYdi31HkYF/GvaG05rxKEDgEQ== 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 , Minwoo Im Subject: [PATCH v7 2/4] intel_iommu: move VTD_FRCD_PV and VTD_FRCD_PP declarations Thread-Topic: [PATCH v7 2/4] intel_iommu: move VTD_FRCD_PV and VTD_FRCD_PP declarations Thread-Index: AQHa0gvxlNSFVDQ4xEy/j0fpVYVa5A== Date: Tue, 9 Jul 2024 14:26:09 +0000 Message-ID: <20240709142557.317271-3-clement.mathieu--drif@eviden.com> References: <20240709142557.317271-1-clement.mathieu--drif@eviden.com> In-Reply-To: <20240709142557.317271-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_|AS4PR07MB8459:EE_ x-ms-office365-filtering-correlation-id: 4bc7f8e3-c624-4409-c3e6-08dca02313a6 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-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RJRjJHY0MrRUhrV2RzUVNteFJY?= =?utf-8?B?SG9sc2tkWXY5OTZUZ3NNN09HWitZa1d2aUkyeUNNemJ4OUJkdWEyM2lINTVM?= =?utf-8?B?dWhweWUxZUdobzNzY1IxeXF4Ync2S3diSGYwK3VFR1VFUlk3bldjbFhCNGFk?= =?utf-8?B?MVRnZHE2dmxvWjlGWFRFd2lha3lRVnpYb1o5eDlmL3gxQ0E9PQ==?= 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)(376014)(1800799024)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?YjJ1SEM3NEw1OHJ0RHhUV3RDU3UrNU5LOXlKZnJCY3k1TEo3V1AxNWNseXJC?= =?utf-8?B?SElKbFU0NU1Yd094VnJsaElGUXY2U3FGNFVzTWxjbi93M0Z2R0Q2b3FJcGdE?= =?utf-8?B?N1FTS21adzF6c2paWWtGRVl2YUpjRTFzUDN1RkI2a29pbThCNW15Q0hpSTRi?= =?utf-8?B?SlBoVXI1WjI2R3BvK0tFT2x3cXZWZWYzTkFmN3lRR01scmQ3aDdIRGx4bVJx?= =?utf-8?B?YU1aTVdMZWJaK0VhZjJRUzZMYldWbnpibXVtazk2OWxLb2ozQ2hNWkZ6czVT?= =?utf-8?B?S2lNQ1FhaUhKejFrQ29EaVVmcHk4Z2EzZlNBVjBHc1dCSmNCaWs5aHVId2dF?= =?utf-8?B?SnpoVVBYemFrMzlBZ0Qyb1FrT0QrQlhKTFJ0YUZFd1U4ZUorR0VGOVB5NHJC?= =?utf-8?B?bXNkbWlZaXhSWkdNZjgzd2NsYWtaZ004T000cmY5SXUxS2VBbEgwNWJwODha?= =?utf-8?B?eE1reHFpSkFVZDBxMVQ3MXkrcWdXUWlPS1BlS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NG44Ky83cVBLbExsYzQvbk1NRnJOVXdOODFOMEJNTnA5ZFhE?= =?utf-8?B?NXVPWERJVnk4SXM2UjlEVHBUZllkMG5HUUVCeHVsV09iejFJeEFXd0VMMDJu?= =?utf-8?B?Z3NJYTBRcXFMS3kwNVRmdGdRY3JMQ1lHYjl6SHgrb0Vzbm13Y09PV3V4S3Z6?= =?utf-8?B?YXlBam1GT1hhamIrYkNoWlQ4UkQ3R0t3Y3ZlUVlSNGdSRFZYbVYyaW8wdjIz?= =?utf-8?B?aUFKdUs0Ymc0R011SitCSVRtUkltQlhOaUxpbWV6Z1d4WW9JU0FwWUxRZTlq?= =?utf-8?B?MCtUbGRGbDBIcmE1bnJPamhQdWtBNFlpd1Nqd3FVNlRCQ0RRbUJZNjlRNUtI?= =?utf-8?B?K3BDZ1ZSNGg0c0ZiOElwMVphNTJNQlZ6eC9Cb2RQSkttL01VdVRqNGV0Njdv?= =?utf-8?B?aG9Gckp6a1R6dGR1RzBnS04vOUlHZkgweUJzQ3VUK1JUTHErMjZJcTF2NmVq?= =?utf-8?B?a3VYUnljSHJnMWZFWDhqb0ZhdjMwbEpJWDBGT1plRjlDQXBOOENvUTV3RFM2?= =?utf-8?B?M2ZGVUMvaXlqL3VudDk4U1pKVDR3NFBsVytEd3czZm5EdWMxSS9YYkI0MVVR?= =?utf-8?B?YTZXZUYybkcwZncwNWlWOXh4YUxyVUVia1FjcEI0QklRVnJMazZtNHlMSW51?= =?utf-8?B?TUtrNmJDNkRycloyQU5tbHBsbkVmemlubXZqOWJkcTJFa2diK2VrWmZUY1F0?= =?utf-8?B?bUhQcndCU0p2WTRUaXB3VlcwTUJsaEg5N3hkTkt0R3czRVMveU5TYzk5Vy94?= =?utf-8?Q?cWrJYXWEQqpeSJ94v265ykA=3D?= Content-Type: text/plain; charset="utf-8" Content-ID: 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: 4bc7f8e3-c624-4409-c3e6-08dca02313a6 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Jul 2024 14:26:09.3614 (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: NWFPlI0Z8AFEtvMNCIlxkSFTzFXcVKFJY0ThdIyqxEyIsDn48vS04ehHeJZ6JOR1g7cP14/RptyjN/G08+i2TtLmNeBar5niTOfVgY6IVkVAm2FDzDRPXJDOEIXal0Bq X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR07MB8459 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+importer2=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=80.78.11.84; envelope-from=clement.mathieu--drif@eviden.com; helo=smarthost3.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+importer2=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer2=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @eviden.com) X-ZM-MESSAGEID: 1720535268130116300 From: Cl=C3=A9ment Mathieu--Drif These 2 macros are for high 64-bit of the FRCD registers. Declarations have to be moved accordingly. Signed-off-by: Cl=C3=A9ment Mathieu--Drif Reviewed-by: Minwoo Im Reviewed-by: Yi Liu --- hw/i386/intel_iommu_internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/i386/intel_iommu_internal.h b/hw/i386/intel_iommu_internal.h index cbc4030031..faea23e8d6 100644 --- a/hw/i386/intel_iommu_internal.h +++ b/hw/i386/intel_iommu_internal.h @@ -264,10 +264,10 @@ #define VTD_FRCD_FR(val) (((val) & 0xffULL) << 32) #define VTD_FRCD_SID_MASK 0xffffULL #define VTD_FRCD_SID(val) ((val) & VTD_FRCD_SID_MASK) -/* For the low 64-bit of 128-bit */ -#define VTD_FRCD_FI(val) ((val) & ~0xfffULL) #define VTD_FRCD_PV(val) (((val) & 0xffffULL) << 40) #define VTD_FRCD_PP(val) (((val) & 0x1ULL) << 31) +/* For the low 64-bit of 128-bit */ +#define VTD_FRCD_FI(val) ((val) & ~0xfffULL) #define VTD_FRCD_IR_IDX(val) (((val) & 0xffffULL) << 48) =20 /* DMA Remapping Fault Conditions */ --=20 2.45.2 From nobody Sun Dec 29 01:02:22 2024 Delivered-To: importer2@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+importer2=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=1720535250; cv=pass; d=zohomail.com; s=zohoarc; b=XbfBQCK9ARB5phEPlPU0LUhw8GPkNeWLc+e7aa+Y16W2MhmHESgKdtwB5V5zf6DkYTotr8Ub0uff1Y2Ta5TW9cUxhzG54yoAUpP3stGY/3nYpnBxG1psyiGeysLeAPg1tAJExh3oNlznVSlGS/sfwHU/LMk1V73FK2Z4kdw7pMo= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720535250; 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=LD3dfZ2F2UETlVfIWevvE8qQfgdkNOQiC0RyOj3j5uU=; b=kb3neB/q6h0zmiY2/rkl6ebeJqoLnGFSEucJcys0v6L3sOZnR0TCWAYdHyULqtNRIxUo0/y2TirjB9J8i5waVMmCK3LYc3xbVGfqJXrOiWbsMNeQsd+jC9Ojgf9WxEWIEm0yDI6vGl04QtrHuMqETUG7JWI8TH3zBy4vLo3GVWo= 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+importer2=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 1720535250263512.3796135718203; Tue, 9 Jul 2024 07:27:30 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sRBnb-0006rE-Vb; Tue, 09 Jul 2024 10:26:32 -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 1sRBnX-0006XQ-5Z for qemu-devel@nongnu.org; Tue, 09 Jul 2024 10:26:27 -0400 Received: from smarthost3.eviden.com ([80.78.11.84]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sRBnV-0002k2-8S for qemu-devel@nongnu.org; Tue, 09 Jul 2024 10:26:26 -0400 Received: from mail-db5eur02lp2105.outbound.protection.outlook.com (HELO EUR02-DB5-obe.outbound.protection.outlook.com) ([104.47.11.105]) by smarthost3.eviden.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jul 2024 16:26:14 +0200 Received: from AM8PR07MB7602.eurprd07.prod.outlook.com (2603:10a6:20b:24b::7) by AS4PR07MB8459.eurprd07.prod.outlook.com (2603:10a6:20b:4e6::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.19; Tue, 9 Jul 2024 14:26:10 +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.7762.016; Tue, 9 Jul 2024 14:26:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eviden.com; i=@eviden.com; q=dns/txt; s=mail; t=1720535185; x=1752071185; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=LD3dfZ2F2UETlVfIWevvE8qQfgdkNOQiC0RyOj3j5uU=; b=a9u0oSy5tNgoSys0WjyhjN8mmNJrgqDmFQ/dtvZCUWmhXqx7clpGYYql DAhP7hxqzeVA+ZpMfbVABPJn5EV2Lc7VNzx2riBNby0oLaeYkHJrKV4oX 77K0u/bnmndzJUYfXA5H1eMWcsKboCmrvLDto4eVmh4edm45EqChBVVqO FSwo0ijteaF26+kBAF9cmW2u6vPp4w5xaPUZX7TI+Bd3hPdttQqX1Iv1V uG9QsoV+L1zW9fl3/+AmBQg/4BsSq3KgO79x4iCm43b6tHsvwCNlaeqR4 EX/oWy541HuORjV0pnb8XgD9QDUjTJI403nswVpb9AF2cAWe6QWxr56Ri w==; X-IronPort-AV: E=Sophos;i="6.09,195,1716242400"; d="scan'208";a="16172663" X-MGA-submission: =?us-ascii?q?MDFFOgHd5UU7r4auyfq9wTqTwmWeLSiBUlIiOu?= =?us-ascii?q?gfvvWfrH9OxUDes7NVdgna3sbaWdxj+SApKoQrtbFnC9GCjERs4kZrzf?= =?us-ascii?q?eoRna3b6lKi5oovmguMHTxKF4NnH6LtbjN0Pef0rHIw+vRa37NzYR09N?= =?us-ascii?q?72hn0Q9gCy5vOdYAFrQkWWWA=3D=3D?= ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=hh4Bi1jwggkafryvK8KPsN5hJAYShNoRNmRlPQxh17dD9uXlzBlNf5yqTl5Ee2Gn44qUBC24Z94o8aDjbNqjf49es8yRw+mMX0DeWbSgKwftwRCIbLst+j8dEcCH+Ako8GSlnVmKqDIovmW7YKOLWCXCGcJRQf4Mvm55AFJsSUQ8Ta+ZOzzx3yeOzn8qNAhNioS27vWiMsi8OMNjKq0+gMa9KbzEa0XwA6O+TIbWbns9ija10sZKp/ksFp1yfAlK8X+KqSKH0i154PR3i0neflwLcPmObSYzwtmwqMON7/0Cf6PLksUih/nTym5gl+x9LjI7w2pS+ECAZqR/ESr5CA== 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=LD3dfZ2F2UETlVfIWevvE8qQfgdkNOQiC0RyOj3j5uU=; b=bI2sTeImUy7Xzio04tbWVwZMF2Hma4w88coMfowOBWKx92PFH64EMu2gWPneD9z3P5rUBAarRBEFA90CF3csEF26f+SmJTtpkCLXk3Tw1x+GEtoLKKWHq+iVMAEh17tx3LahhpvQrZ+tOXBFCkejKYqfG6F+WteC5O7zL9RtIfTflgnK/9Zh7GHUR4KUXLzX2+L1DIopWb+pHs3E/ZDETsoBeuL4p8Dtz1+F1oS5FRRE/phm7KuYx5PqxjkvhWROtDDoXyObvSkkYpOa6AKQWA+s34rYiHZdeAE2KnKIPhJuNtktbl0eKCClBBLuBSkAIKqceWXlk6HtTvAXJhQMYg== 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=LD3dfZ2F2UETlVfIWevvE8qQfgdkNOQiC0RyOj3j5uU=; b=fGOU/6jBPQndhNLmA4y/DB/O2D4PP1tOPPp1mw6KA7zsRQWsYsCJX6L5a8QAZ14P+wbTSkQQEWkwD0/WEPb9H1KbuemPy3kAwjjB0P0UTjZnAvjILeo77o9RkgSoMMGUEbQ3Afutv5TMEGKV+bu6L8utWSPV0RIvpK5wDHdYc1LzDiYre5aJMFzvlY2dUgKvwmxKzoQp2YPsL2VXa6q6FFFklDOM8UoqY+Cfi/QFldFJ419nmpFswg3JZLI1XHC1URNVVC8JqZINycLbtaiRjOg4OLxrsjDvPWqcR/M7KKn+AfzjjLwQ9+5PV17/WaSKKkDbIM2u9KH7alRxPeOiiQ== 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 , Minwoo Im Subject: [PATCH v7 3/4] intel_iommu: fix type of the mask field in VTDIOTLBPageInvInfo Thread-Topic: [PATCH v7 3/4] intel_iommu: fix type of the mask field in VTDIOTLBPageInvInfo Thread-Index: AQHa0gvxim5DZG7IQkeXyOKD2lbMJg== Date: Tue, 9 Jul 2024 14:26:10 +0000 Message-ID: <20240709142557.317271-4-clement.mathieu--drif@eviden.com> References: <20240709142557.317271-1-clement.mathieu--drif@eviden.com> In-Reply-To: <20240709142557.317271-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_|AS4PR07MB8459:EE_ x-ms-office365-filtering-correlation-id: ccab5a72-331e-4ac3-acd2-08dca023140f x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|366016|376014|1800799024|38070700018; x-microsoft-antispam-message-info: =?utf-8?B?dVdFNXhpZHhCdHpZQzZBUmgyZ1l1UVFSREh4Y0F5YngrZVExUlB4N1A4MGpn?= =?utf-8?B?ZjdOeWxJVkdsSnRHSmdWU3lRMWQ4TkdhRDRCTlpwMXpOczlGcmRaM0VFU3Vv?= =?utf-8?B?cmpWV3NGeDFleWZUSWNUOHhOdXRGMlhFNWNmOWk3Y3dsQmZTR3FueEtVRkU4?= =?utf-8?B?M05VK003RHA5UVhUL3FOS1ZyaC9iR2JITU9xQm5UNVpjVUxZL2hMUlJkTlIw?= =?utf-8?B?UFkzTU04MmxyYk9EYnUraUc1RmliYlV4MHRIVDkrUFJtOFhYVEs4RGdCZDMy?= =?utf-8?B?RHpYMUh6NHFYalRpSHJ6Q0FDU2ZhL1ZacVFNbTE2UHdsS25yNFY1bWJRUitF?= =?utf-8?B?NzNra25OWGhLaElSVXMwTFhWM0FNNXNTUktWQkFBZlgxdDNZcXdZSUVqRDNC?= =?utf-8?B?TmxleWR0b0FKMXRwbkVYd0FVekt6ZVlDSXZZL0tlTkdxMnZuUE5IeHZtMVQw?= =?utf-8?B?TzdyTkl1UmFjUm80US8xdndiQmMxYWozQjY5YUVxWklYV1MycGRxaEdoNHVj?= =?utf-8?B?VklVY3hpSTVHM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l?= =?utf-8?B?ZVJsMHluVTZ5Mlp1Z0x4TGp4aTlkODh4Z2Q1UHZWV0UrRUp2T3pRdHdDdXpB?= =?utf-8?B?anhmRS9HdEozMkJNbENWNXM1bTZWYlRFU1RmcnU1Wk5vN0huRExPSldIYVFO?= =?utf-8?B?bGpxbXlZSHY2cEtQQnRZWXcrUk9qWFR5aWw0ZDBWRGtBTXUvNXZOMzY0MUVk?= =?utf-8?B?MXhzR3JOeXU1TDh4Y1VMcDgwejg5eHhQN3dESTNOOWtGNkx1VFZ0ZGVCM0pw?= =?utf-8?B?M2tPcnJKQ0ZKTi92eDJJVEdDWUMvMmt0cm5Oa2pTTGE5UUljRDh4WXlLY04x?= =?utf-8?B?dE9xb0JoUENzR2tqdHJuTGxKRloyeW82MWxlZWFxWXduam10M0ltZ2pyQkE1?= =?utf-8?B?UExub205ckkvRm9iV0YyaXlpNFlJMWZWbFVTa1lwdXJhNlVtTUkzemMwN0tV?= =?utf-8?B?N2Z3R2NHNXFyWTdjcThLajdpMTVDcHFWWTQ4UGFCWmRwbXc9PQ==?= 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)(376014)(1800799024)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?dUc4RHlIWkxoRVpJMHhtR0JhaXpIM3djVGh3N3ZPTXhoclBIYWdJaEw3QXM0?= =?utf-8?B?dlJBekNPUEp5WGFNclUxV1N6T0FLcExqRENsdk5zSHdIQ1VVQndhRk9IQ2tv?= =?utf-8?B?UlREbW5DbWpDWDg4Q25YbWlUSm1PWXBDNU9JSXI3c0NFZjVFNURaRUJnQWNM?= =?utf-8?B?amtDSTJIRDBoTUJQYUprdi8wL3U5bjNjd3NydWxaRkVqRzduRjlRWFJoWDhj?=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ZS2dpK2xNVElTN0NTR3Q4MXZoZGpq?= =?utf-8?B?S1QrYkEzT002Q2l4QVFKYU1vMW85anJDVVJRYndXcVlZL0RFUnpyYThYRk5L?= =?utf-8?B?VkdyYzhIeTV6TnZDVzI5MVV4ZUU3bFZ3MnlwYUcwZkUzaUFVS0RyeGd6SEpj?= =?utf-8?Q?TOiqc50wOYex9/2jMEI4XmU=3D?= Content-Type: text/plain; charset="utf-8" Content-ID: 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: ccab5a72-331e-4ac3-acd2-08dca023140f X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Jul 2024 14:26:10.0313 (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: VyKgq2WgTx/PqY0PGel1kDoOJ9z2/KWYIDQj+pgFiuxY8bJKIr+uI8cWk9y6ZhE6s5OGEk7VSzOZbC0za0YPtxoBD13dIAZAIg7f8HF4fJspcLBJi7uh3n3h5c3V08IY X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR07MB8459 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+importer2=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=80.78.11.84; envelope-from=clement.mathieu--drif@eviden.com; helo=smarthost3.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+importer2=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer2=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @eviden.com) X-ZM-MESSAGEID: 1720535255553116300 From: Cl=C3=A9ment Mathieu--Drif Per the below code, it can overflow as am can be larger than 8 according to the CH 6.5.2.3 IOTLB Invalidate. Use uint64_t to avoid overflows. Fixes: b5a280c00840 ("intel-iommu: add IOTLB using hash table") Signed-off-by: Cl=C3=A9ment Mathieu--Drif Reviewed-by: Minwoo Im Reviewed-by: Yi Liu --- hw/i386/intel_iommu_internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/i386/intel_iommu_internal.h b/hw/i386/intel_iommu_internal.h index faea23e8d6..5f32c36943 100644 --- a/hw/i386/intel_iommu_internal.h +++ b/hw/i386/intel_iommu_internal.h @@ -436,7 +436,7 @@ struct VTDIOTLBPageInvInfo { uint16_t domain_id; uint32_t pasid; uint64_t addr; - uint8_t mask; + uint64_t mask; }; typedef struct VTDIOTLBPageInvInfo VTDIOTLBPageInvInfo; =20 --=20 2.45.2 From nobody Sun Dec 29 01:02:22 2024 Delivered-To: importer2@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+importer2=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=1720535205; cv=pass; d=zohomail.com; s=zohoarc; b=nGfQUt5Fgv0gcalsRsDECFWqprJCHnQBJ/WSKWYq4zHFmxol6fsxxDecnvoquW0Ex4wz2w1CF6twks1teDX7lGiOKaI3mwHuK9ileFDpvF7uYXfRCkWU9Q0hfhyYg5U+dDXMMSQpRNnRF2MHIz2lYIa0kdkOrTbYcKg4rntfRvc= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720535205; 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=HE1nSNC+fM1pwokpWi9++/4rNMhNj9V1sCadInCpIzU=; b=WcC5Pbbd0SB+Vy2Z+gbaVa1aNTELGPViNjNpMRmJd/kZ3hSaMUfzwEyAIqxDnvNmmAMGgnXZtbnlUmJ8QmTz+YHz/qhw/4QM4RgRqqp4RVdxNrU5ycXHx7D9tQvlxWLPwzPQFqXzBimvllThSjX7OG9OOn2wJvbRFqlsqpqkLF4= 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+importer2=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 172053520575919.91061147977007; Tue, 9 Jul 2024 07:26:45 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sRBnc-000708-M9; Tue, 09 Jul 2024 10:26:34 -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 1sRBnX-0006ZL-Jx for qemu-devel@nongnu.org; Tue, 09 Jul 2024 10:26:27 -0400 Received: from smarthost3.eviden.com ([80.78.11.84]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sRBnW-0002pg-0B for qemu-devel@nongnu.org; Tue, 09 Jul 2024 10:26:27 -0400 Received: from mail-db5eur02lp2105.outbound.protection.outlook.com (HELO EUR02-DB5-obe.outbound.protection.outlook.com) ([104.47.11.105]) by smarthost3.eviden.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jul 2024 16:26:15 +0200 Received: from AM8PR07MB7602.eurprd07.prod.outlook.com (2603:10a6:20b:24b::7) by AS4PR07MB8459.eurprd07.prod.outlook.com (2603:10a6:20b:4e6::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.19; Tue, 9 Jul 2024 14:26:13 +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.7762.016; Tue, 9 Jul 2024 14:26:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eviden.com; i=@eviden.com; q=dns/txt; s=mail; t=1720535186; x=1752071186; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=HE1nSNC+fM1pwokpWi9++/4rNMhNj9V1sCadInCpIzU=; b=eWdNAUM88XqvMpsRLDG9atT5/42R87yjT57v3Lh1T010Ksicp2CREGWg ZAtWzIG+iFdcSSr6fdYhz67p+pz+xTLq9GP2NMY1sjtCW5oFa3hdfRiJS NTmLB7YzTfXGNtX00MDhLZbZsc7tlof3TvgYICjDJfso0zs3b/YE1cA5E b1WFxF1PK5KGrIFv6GxFNIY0QCldRC0K1Gg3OKHkZ9cUqEpOj4XiWMOlj RXXJvBy2e5A9Yz58acPYwLQOY2zKrUkwrX6ZE7ojyL0JXazTRPVMlF2/G vbMK1q4KdgEeizdt7KQIyFSShrNva397Pztjg9wKrgssLFBqSp9msXcTl A==; X-IronPort-AV: E=Sophos;i="6.09,195,1716242400"; d="scan'208";a="16172664" X-MGA-submission: =?us-ascii?q?MDG+5ntEpwAgC68QuJnMBPpC3A7wgmGE4UYMjn?= =?us-ascii?q?gDd2aBHajF+cxgk7i6RU5VlAJZyxgQUMAScoKkr3l6BRt4CSwrQXdFMg?= =?us-ascii?q?p9fTekcghx07uZnADruegqJkU37mPehSJWJ3A3i8lR3R/ZF30PxLJq8b?= =?us-ascii?q?wlc4vsM5V37wd6NPiOQL25dQ=3D=3D?= ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=FZSYJf4FQS41HC6VAMZaLcIMXCXe4YnJ0BYwOYNpo4kiEuciLpuhl4a49fyg+EwwxLd5RF6Lj+KhY2UmZLF1hBmAL/W4gKDQPuvbWO/cP9LNEdQyjm2XvOWy5J2ocmp9gLKrA7zJypBqK6KvVlPO5zJrx01qJtduTacYzbsOAUKTDN6ejluAgjUSzYJv7UTPjF8bhyJOtm6xgMme4oU5AC7CEAuFJFen92kaD9RChA5kToaU9sPOvFrPioOETFeWdhUcHmFvCRsRVLGbHFhAbzU9vNM38t7KNzr5sfP++tNKbgFAC4+j3iShysrInlqToaV0BuYTLrhKVcU3R5nz2Q== 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=HE1nSNC+fM1pwokpWi9++/4rNMhNj9V1sCadInCpIzU=; b=Drhw/A2CQVxykPG/XF7Z7D21UfdGP6FvuHZEnmzvMcibU4NLrTasxHkedrbdloZMi0Booec6wfcK0QNhysH9puKrUlfrTCFoMmKfVcSAeOUrJoDyerma4zRvwSCj4U0vQx33XMB64O4RnA0ljvgI3riPuFGf0a/wmQfX5ee839Dy1GTXpXWHlbpEc/+kU76zq9otubW02gQbzMsW++AFW0LrkfXEvbcmT2R34wQQlRYUKKkFcUDJVxAOU5rlibM0owtJfcQ8CfV4VW54k0KxHgXs51LbwBQlc87pKyL5JQG4V9j4Msdf/shoicWQDq/jFY8cCUnsb6QAGYH01pjIAg== 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=HE1nSNC+fM1pwokpWi9++/4rNMhNj9V1sCadInCpIzU=; b=FMPHHDrF/PG6Ng4hJ78dLsBV0RUEFKGdQBub/FFe89mAQg1c+/sirizPJmQZfG678I+A9Adzh14shkWwDaL37gPkgpj/NQ/MfdBsmE17dkCdfOM3T3cYTjVWgxqlNgBM6xRecRP8xWlwTEjCmAtF++b7DM7Yr3DwgjtvBy29BWJoyYEUelNM/5Ra3MB7W9y7NAqdtj5G2lrS9BV6NZobBexENf90bWSK/LBr7FL8k+CFdzIGi1/z86SIpGYYVU1OyAnDn/Nr0S0ccJ1VTAKQi/5XgHkqE4nSnGkxKUaWUwEHcSJD/uFGStiV+ipT2jEOQy+Ci+VYxPUOMBMYjc78VQ== 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 v7 4/4] intel_iommu: make type match Thread-Topic: [PATCH v7 4/4] intel_iommu: make type match Thread-Index: AQHa0gvxRjyKfg1NiUKh789rILHFuQ== Date: Tue, 9 Jul 2024 14:26:10 +0000 Message-ID: <20240709142557.317271-5-clement.mathieu--drif@eviden.com> References: <20240709142557.317271-1-clement.mathieu--drif@eviden.com> In-Reply-To: <20240709142557.317271-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_|AS4PR07MB8459:EE_ x-ms-office365-filtering-correlation-id: bb01d6a3-ddfa-4816-904a-08dca0231478 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|366016|376014|1800799024|38070700018; x-microsoft-antispam-message-info: =?utf-8?B?YjlDdDZQSENTSjVaTk14TlcycmtVakJUTjN6VVZKVGJMRzlVUkoyQVhpZVU5?= =?utf-8?B?d2lBTUh6N0p0dThQL3NMSGw4Zld5QzlYd1RBOFYraGxybDRGWmkybm56czRK?= =?utf-8?B?QUlTWVVhZXVCS0gvMEFBb2pLdVh2ZVRtRUxZUTJyajBKeW00U2hxTXFjaHdq?= =?utf-8?B?ZUxTS1NQNktLZkV2SXJHcUlva0Vsdm9ldVVDNWdhY1Qydi9mOG5SK0JydHlO?= =?utf-8?B?Tnd5Y0s5VEY3aGRTdGpacitQK0JFZTFrTHk5WHcwYnBzdlNncW9wOEdndjZ0?= =?utf-8?B?cUpZNU4wZzhadWorYnY1dEdMeS9LdHlLUU9PamFZQU5EOHJMNmpwZG1XQjdY?= =?utf-8?B?bHJ4T253cEt5Y2NUTS9uRmpZNWMvQ2JLTTQ1VDIwZ2xuKytnU0t6VlN0YzRQ?= =?utf-8?B?bTNNN2JUSUZjUG1CZjM0aEFuYmpsa2JhMlo1MU9mZkJ3UDJ1cCthbGp4bVlr?= =?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aUzRM?= =?utf-8?B?QmtpUVQ2Ly9KTEQybXduVFkrcFNodUR4c0w4b0EwNkhIa2VzYXdnWHRmT3RN?= =?utf-8?B?bXZBVnVSZ2MzaXVhREFFZlY5TXBCYU10Q201bzNPUTlKQmZFZzlhbDcvdU1v?= =?utf-8?B?RGhYZ1MxaGFocHZ5MnpzMEJWOGpIUE0vWm94K2NLb0JuVTFka0hDOE5RT0h0?= =?utf-8?B?d0ZtS2JVaG0vbnUzaEo0Tk81V0I3eTdkTlplMi9vdXJzL0NobFhzcWYyY0hn?= =?utf-8?B?cHVvN1JKUDNMRVhTSmx6VGtQLzVZNmRPaUcwdnFuUDhaRllpQnowak5NakUz?= =?utf-8?B?RGZwSzErMUkxNU1Oc3VIQ29zWjJISU1ZTjZGaVMzU3AwNWdIMnFGaGxuMVFC?= =?utf-8?B?MEVkUGdjVzVic1pSOHVmcE9OeWYvWUxtQXZEMkZvSGVtbHFUMyt2QkdyeHJi?= =?utf-8?B?NVJ1ZjgxVEh0K2dwWlRKc0ZPOWIrejhTS0oyMklPaFZIWFh6TmFaSjJXVnJF?= =?utf-8?B?aEdBZHlacWZad0NxTDAvMkl3S1lVSitEMSt3VVY4aDlHZnc9PQ==?= 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)(376014)(1800799024)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?cllVNWtlMFNDam1xQkdpWGthR3dTa0hndm5mR1ZLYzVPK0RGYmJUWDc2bi9m?= =?utf-8?B?czZTYzVleHpNWVVNRWtwNXFMUVE5VTcrZlBscGtUZjZoTEducFFLQW9qVnhM?= =?utf-8?B?SUlHaFJsbTdEczI5Rnp2SHo1QnUranA2UjQ1Ynhmd3lNdmtFeXd6QVFzRkk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4ZXNqSVptYWsrUTZsTEUyUk8va1ZHMkFyUHlS?= =?utf-8?B?MS80OXd2UTJjL2I3UGJwN2xhQzF6R2tDWFFRbFB6T21oendhRGUyb0JnTk9D?= =?utf-8?B?S09LWWUyalFzbmN4MGZiWngvc1Uya0hNYjduQnV5Q2FwTnVYdUsyT3I0RGVx?= =?utf-8?B?bFlMdnYzQnM0cjBodURpN09YMnY4Q3FaaXJvS2M5REt5aE40OUcxVjJ5eFdN?= =?utf-8?Q?dYmgbF+2ppC79a1Df8HKe1I=3D?= Content-Type: text/plain; charset="utf-8" Content-ID: <9A237FF0AC58C24F933878A4935EAC3E@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: bb01d6a3-ddfa-4816-904a-08dca0231478 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Jul 2024 14:26:10.7457 (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: eTm6I7nO5AC27XoljQ38+g216WPplaeNMdO7BptIn92LshGN8EARdxSBnM/rsXwqD367dtKoPYD308dQ3nFSs7rBJOuCL8rL6Qdc4JJ6ricV7Ut2cYn8VS2TzrdHimbN X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR07MB8459 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+importer2=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=80.78.11.84; envelope-from=clement.mathieu--drif@eviden.com; helo=smarthost3.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+importer2=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer2=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @eviden.com) X-ZM-MESSAGEID: 1720535209934116300 From: Cl=C3=A9ment Mathieu--Drif The 'level' field in vtd_iotlb_key is an unsigned integer. We don't need to store level as an int in vtd_lookup_iotlb. This is not an issue by itself, but using unsigned here seems cleaner. Signed-off-by: Cl=C3=A9ment Mathieu--Drif Reviewed-by: Yi Liu --- hw/i386/intel_iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/i386/intel_iommu.c b/hw/i386/intel_iommu.c index 37c21a0aec..be0cb39b5c 100644 --- a/hw/i386/intel_iommu.c +++ b/hw/i386/intel_iommu.c @@ -358,7 +358,7 @@ static VTDIOTLBEntry *vtd_lookup_iotlb(IntelIOMMUState = *s, uint16_t source_id, { struct vtd_iotlb_key key; VTDIOTLBEntry *entry; - int level; + unsigned level; =20 for (level =3D VTD_SL_PT_LEVEL; level < VTD_SL_PML4_LEVEL; level++) { key.gfn =3D vtd_get_iotlb_gfn(addr, level); --=20 2.45.2