From nobody Sun Nov 24 20:49:48 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=1720155850; cv=pass; d=zohomail.com; s=zohoarc; b=CwBQvasXF1eITuGOeIGHL80dEy/wYifAsf9+5NG2PdpA0Qielz7dFYeXRyqSmqueq0lyN1qJoJBpo7eUZ/8I+kqI91ItQl/J+Nr+qwr7mczUaUHCCwmmx/btA7g6BtPdWPCsxvNCKNStQKQ2ClwSU+27OAMXDNYjB6uYafKl274= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720155850; 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=n+KWipWUJfWSA2mhPfNQC43RVT4lkeLpK+cxoqpKD4E=; b=NrwYunT2ckVo/Av4SFAaHX6grWBWC8eIecrcOJNCETnkkWorPOgwpMZxkxByzabMq2qqaN3CHVlMcfuJVvLi13LEaFte+OWI1Y8s9IxA0uOUI26cAY5fZpq4O5J1bbAufJspmnZ5wy14LTHSGL9G1nQbfu3HWpv6Gg8myBVv26w= 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 1720155850188197.8082338281431; Thu, 4 Jul 2024 22:04:10 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPb6V-0005LS-5B; Fri, 05 Jul 2024 01:03: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 1sPb6T-0005Kz-DE for qemu-devel@nongnu.org; Fri, 05 Jul 2024 01:03:25 -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 1sPb6R-0003dq-BM for qemu-devel@nongnu.org; Fri, 05 Jul 2024 01:03:25 -0400 Received: from mail-vi1eur05lp2168.outbound.protection.outlook.com (HELO EUR05-VI1-obe.outbound.protection.outlook.com) ([104.47.17.168]) by smarthost4.eviden.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jul 2024 07:03:18 +0200 Received: from AM8PR07MB7602.eurprd07.prod.outlook.com (2603:10a6:20b:24b::7) by VI1PR07MB6542.eurprd07.prod.outlook.com (2603:10a6:800:179::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.11; Fri, 5 Jul 2024 05:03:16 +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.7741.017; Fri, 5 Jul 2024 05:03:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eviden.com; i=@eviden.com; q=dns/txt; s=mail; t=1720155803; x=1751691803; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=n+KWipWUJfWSA2mhPfNQC43RVT4lkeLpK+cxoqpKD4E=; b=VnOqRd1Lpmc7D01+DqUg8orV9wHWGyE5G2RDg39PDLVlAcyutTjj6pPk baikHeNg6wy8ILPP1WPizSaIT2TO69zT3lFmzjWmrd4l9lMcCH8TgirsH bRh1Qq6SyxdvgfBcg2Y+We/1w3CuWxAqhyfnSJU2cDDxS/JAQUxuRr1F+ iRfmqy932ypIhj602v7rFn0oYo64tw3/+dW5bGQbdeRsANx0kM+3i9tIV A6EZ0h78/kQodGkPz+ySfoN5t3vxI8WtgnVLpay7LfXJtdx7pYjw02ngZ EZk0NZwickOHref8tVo2Mx7h+uqID0g/eofzwnWbnj9qB9ReUuBpYTcMR g==; X-IronPort-AV: E=Sophos;i="6.09,184,1716242400"; d="scan'208";a="16030231" X-MGA-submission: =?us-ascii?q?MDGEHUwOIuPgVdBdVf16c1kNXZ42L+f3kxqHpL?= =?us-ascii?q?BabrcBpQbhj5jg0Rgy7ECm1tWpS1V6KyJzyn7DPD/xFiQm/aMWQYHdgH?= =?us-ascii?q?SK3MzEN79eLg8L2Q9m+kY9YzHEqL5f+39YNtV08440beR2BZv5EPGf/n?= =?us-ascii?q?NOIeKawb/mM4L51kxXcjje2w=3D=3D?= ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OZeR8yOeCg/GnOujNsxAs9NfKuSsk/9qDxXwjxOCkZ11bALkQk+2SffCu0dSj8A2RyBr3Uk8T71gDrBpeSqeC4QP/1yN7DQDOAE80F68XhRQ+hZwLxy53XLBY3cz+c9828+tBcPkOHDP5Ynsh4suRNjw2/CJL/eIXtAnc6d5gkuM8eRaVH5JGFE2rtrhHIygebNBHGAd+wU/TAs6KaGnGetOyVvPbB4sIm1Ea12cuvConXt6efCVBE/U6atiT5OO1/a/CzchptY6RkilOyxt+ShLFPvUuTY+L6bnMe16/ctf/n2fnT0bgMxOqgcufT/MCj9RMB9jBSz1sntkbgmxKQ== 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=n+KWipWUJfWSA2mhPfNQC43RVT4lkeLpK+cxoqpKD4E=; b=axgUejzfv28JHZhnt/dwpsGSlco7/2EedyIlQ8GVH/DqPRnlaAk8AGs6YWAd/Huv83P+WleO2pDzTvu1qFNQW9Kh29lGRMf26QFzmTaEr88OgdnUyDjqSlx4oFHLPFSJdcEPLbLCl1GH2tSKnffOIpls4w/RedOOfx/X2JdGMsGAEltEqNYTnN01kVAepwmO/pVbISpOcLRc8ZKFCPGSA92785uqDrIDfYMS962EducTDF/g4ovF074zZmslLbLD6pxlIEm+eC9c3VhVv0lqP+sweRTGPiX0Ao4b6pxVilm7GDBR/4ZZ+ir9XoEIcYeXxNea7BGEEhqOUYZbHuLEKA== 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=n+KWipWUJfWSA2mhPfNQC43RVT4lkeLpK+cxoqpKD4E=; b=Sbf5drm6Ecp832cjI/tgQtbLh37hRy2bfH9p4cgeJAcQGJTwm4WWNheWuhW5CxgM8KJAjjeEGjnp5c/QyjZi1X3G8BojJGGb9IhMn7Vx5JT8W6MN825lFHALFgFEtaNpFUWma5VuSTwR/+BnS8BymorDyXgN8QpG26UJj6rrjZUfVTQP4swwVlZbvyQ+vP6Om4/+9RyWhTvn4WeXPBa2kt1f2iLqxTiCCJ0fGPXIvGmBsrCgkq2tZcMw3KinIN7rkCDPdy+uNEPrP2I0l5gOmbhO2lGH+WAT9p30mwrmslgwezpNWBd5bact0Nep0HFLR8pdMqevY9M1fmz/ekhJLA== 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 v3 1/3] intel_iommu: fix FRCD construction macro. Thread-Topic: [PATCH v3 1/3] intel_iommu: fix FRCD construction macro. Thread-Index: AQHazpilPvi8AA6UY0+AS7/gkgP0ZQ== Date: Fri, 5 Jul 2024 05:03:16 +0000 Message-ID: <20240705050213.1492515-2-clement.mathieu--drif@eviden.com> References: <20240705050213.1492515-1-clement.mathieu--drif@eviden.com> In-Reply-To: <20240705050213.1492515-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_|VI1PR07MB6542:EE_ x-ms-office365-filtering-correlation-id: 91f817e6-5f3f-483c-79ab-08dc9cafc7ba x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|1800799024|376014|366016|38070700018; x-microsoft-antispam-message-info: =?utf-8?B?bVZIMXBod0kxU0NsL0g0RU5wRy9WRlVPSlVPQmJSQ0xrS0JMRFZhWngzakV0?= =?utf-8?B?cVRaMWU3eDNTNTV0QkNtKzY0RTRycmN1Qm9OMWVJM0FyQTVHTTFvVzBxTENX?= =?utf-8?B?L2I4dHlSSUY1N21IM0NPbWcyZS9jUDhod2RFOXptUExtZ09ZT1A2blB6NnlC?= =?utf-8?B?bVJkeVQ4TDVXaTlNN2VZZlNXQmo2ZWpk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od.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(376014)(366016)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?OVdzMWJvUGNwREQ5M3ZObWc3bmpRcm9qa2ZxK0NwVjRRRDBqaFpGTkFpYUxM?= =?utf-8?B?MFVmR3ZJQmpvMkc3TDRPTU9tOElVcFVWdWQyYU9Sak8wWmlrZUYyNWVJaURz?= =?utf-8?B?aWNiTk5POGk1MmRaejBZbWZDcGlPZGd2VGVpaFQrbHRRM3dqUXpxc2tJZ25x?= =?utf-8?B?Z3Y0cGRUWnN6a2RHMEZONFpsN21PVDRFL1hMdWh6aGFnb1NzNWZET0hnajA5?= =?utf-8?B?MkxCVkFjT1FBMVNaZmd6REtWRjgxNUlrRHRUb2xsR1IrS1cxcU5YNTNlRWp5?= =?utf-8?B?N0pJZEl6MktpWWtOQVJ2a1BkQWdDWlZLTmJVYjMyVElreGlZMmJhUUJvdWtB?= =?utf-8?B?ODAxOFg4YnBqQTlRVW5ZcndKL2g2TEhuQ291YmtYVDVhT2tWcjJNWXNxQXVC?= =?utf-8?B?WnNxWlB2aEhlNXZJbUZUb2F0WEYvTm1DeDA3OUkxbXZodEVwK1JNMEJJOXRJ?= =?utf-8?B?VG14NEsySHFOS3ZXcktmSEdvNVZoQnBSeWdiNjVmd1VxV3gvSnVtYXdRQmRI?= =?utf-8?B?Sm9aczVMZXFZTkdYZVpXd0hJYXNMZW1ua2RvcGZSOUYrd1ZDRGtOK1VYWHV1?= =?utf-8?B?ZnMvdllwVGRyamFmMVh5OHd1Q3I5SlNNWHpETEVVL2J3N1FUbWg0SXRXejdh?= =?utf-8?B?QnFmQlZFblRyYXJualU0ek1Kb1Q5VVRGYkgyTFJqSGZ0Znc1U2pJWW85dW9X?= =?utf-8?B?VE5ScVd2K0tzU3p3V20rMXRSUFFpMzhnUVkybVNsUzRCSllmZmJVb3Y3OW1N?= =?ut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3dzaXRoUmdkWDgxRlcw?= =?utf-8?B?SzlDTHlTUThWQUh2RXVKUm9hOEZ3aURHZ01sYVFlaVM0K1FMSC9mTXdjL1Fx?= =?utf-8?B?M3NweTVkZ3JqSHczWGZvYmRUV2QrZTgvaXpTQUw0cS8vRHo3OHlCWGFSOW1l?= =?utf-8?B?WFJ1Z0NrKytzdW9JWlFrU1lmVVFGeHpiN0tET1pHQ1Q0bHlHS2sveXlvc3pr?= =?utf-8?B?S3BNWVhUOVUyaFBmenAwQzg4N21ybmVJNnpwNEk1L0FDbFNYOUZFazFsandF?= =?utf-8?B?UnhHZEgvUTd2MzNGMmE0a3FQS3FvdU8wQW5renpiQjZDeERsUXpNZWhXZ2Vu?= =?utf-8?B?Sk1wVVQ0MWR1cmVKS2RrT0hyOUw0Mmphb3JVYWZLMlpsd2thREtsaTBNT2NL?= =?utf-8?B?UzZlTEZTWlNpRy9LcENuTTI5RStndXlnVUU5RGtyK2pHdGE3ZTN1T0JWUU9Z?= =?utf-8?B?djYrenhYeFR5NVJXU1NkdVZ0SEZrUVlTY3dKVjQ1eXl6WmlvS0g0VXoybjdB?= =?utf-8?Q?l9PjXzsYnfK7cdQOSvK+5vw=3D?= Content-Type: text/plain; charset="utf-8" Content-ID: <2544701311DD0E478C9928077DE812AA@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: 91f817e6-5f3f-483c-79ab-08dc9cafc7ba X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Jul 2024 05:03:16.3538 (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: v3wRJh1LyciE6IKtL6Y0lHkVN24JQgS03yEJuRiVo9m92U+oXaFWs8sx5+cYyxb4/zFvhgfljHqJuMyqFuJTJ4UMM6134HlX4C7za08tmHtGHg5FhVGXKVP+2qJ2B6yQ X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR07MB6542 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: 1720155851959100001 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 --- 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 Nov 24 20:49:48 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=1720155845; cv=pass; d=zohomail.com; s=zohoarc; b=cns4GQqxsc7A7DdYXkgRbCiknOkyQ3CWKhrdjUNagiL1Cs1aHlTHfdkRmA56W9qEVHdl8Bz9FfvsmJvW3Uk2AvxJCBBn+0VniVaT3ubt62Kunmpzp20o5OS3GV7pGeZX6c/ec+nl8mGavQ7Ce1EGvN4B+71eAnuQFEPW1qDXD3E= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720155845; 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=8hp9YS8jEEsaaQtV+h2ko9fpqQi3pY6lFFsOK57EHS4=; b=NPHRmvsLMTAVLuisEX0IIXJL31+dAIsHticTW0auO1gAqJOdYe4cxo6A+qBb6iqxCNn2okrvyCbnkm+9+/XxlcSo0yfuS7DV+kgrL8wqI0zMaonaD+o0Jk6v/fX/w/ArmrKxz4LJVRP5Vd7lyKy3Zwv630SYaSd1GQGJUxpZX4o= 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 17201558451111005.0462290436626; Thu, 4 Jul 2024 22:04:05 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPb6c-0005Rn-IX; Fri, 05 Jul 2024 01:03: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 1sPb6a-0005OT-Rt for qemu-devel@nongnu.org; Fri, 05 Jul 2024 01:03:32 -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 1sPb6Z-0003g3-2n for qemu-devel@nongnu.org; Fri, 05 Jul 2024 01:03:32 -0400 Received: from mail-vi1eur05lp2169.outbound.protection.outlook.com (HELO EUR05-VI1-obe.outbound.protection.outlook.com) ([104.47.17.169]) by smarthost1.eviden.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jul 2024 07:03:20 +0200 Received: from AM8PR07MB7602.eurprd07.prod.outlook.com (2603:10a6:20b:24b::7) by VI1PR07MB6542.eurprd07.prod.outlook.com (2603:10a6:800:179::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.11; Fri, 5 Jul 2024 05:03:17 +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.7741.017; Fri, 5 Jul 2024 05:03:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eviden.com; i=@eviden.com; q=dns/txt; s=mail; t=1720155812; x=1751691812; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=8hp9YS8jEEsaaQtV+h2ko9fpqQi3pY6lFFsOK57EHS4=; b=p3RdIs1Crs+bj1U4bS0Pl7nhk7PqaLSgTyGyg6fli07HkGo0j8HXL6jU eXPa4uFHUdDdpaSUWXDD2lAlxapfQOE6HvCo7t2IfpGQ1HQmrsa5NRAHx V3t5k3XyVGCE8oKP6ik3K6fZxHySqG3SBiqiVKlEwqbsiiKvuQyYGeowU hCIAW8SidmpSL+yE0kpAPje0OhaD1QSDvMg8X127UcQOjNIhJUQQbQpTb ZZE5NKpQENIHYYUw88oCIGBI5y1e8tWUasKCdMnpfXMRHV8DVXA40Vug/ AHobaRgosiTcs/oa8eF0i9xwsW2wER0CXJM6ahg2uhOHqNZzyEMUVkpUx Q==; X-IronPort-AV: E=Sophos;i="6.09,184,1716242400"; d="scan'208";a="15924033" X-MGA-submission: =?us-ascii?q?MDFK+l94PiF81q8arAJRzBfErXYhlrAHhReiw2?= =?us-ascii?q?QoMg0LaEHyJoPxOLx5lBU0uJe7IPcE6P1+IAoHFJEZ8wviF9GxgzpvKd?= =?us-ascii?q?2uwBqUZZP25MrI+xFo23P2yJDZu60x7LlLBBV7t8gQlsuEq8yKWy83FC?= =?us-ascii?q?Q1sQ+wScoNAb42zPZ7jqKapw=3D=3D?= ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Z7/B4GHyd6Ae2kfdXDsc6KAHwgCV5v05g+FUMDvPYhcpfOJn94OJOZa9xgTicI1D01Lk150XSbbo+wRbX7fhttJEEwqNS+JVEL5xfJjWDQxXYuoPAF/nFeL1LB8oTMIfKxT01dyM7kwm8u57zCYRXoUpZnvemfQ2KvKRe9mg+WTn54Vb77ZqfsnuVhs5reshE2Ae+nKNaPcy79G+hadLxlW5yA1qwdDLihtR8qxd8kUf/YWA+tY1OkitJxSqD+W1Co5NWnn7bKDeEKapf/+O+UZ8TzM0nnv0E2HjVbXL1BsMHqVb36O5vgjI1V1U4QXiRGh539qIuHFdKXemiSaZfA== 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=8hp9YS8jEEsaaQtV+h2ko9fpqQi3pY6lFFsOK57EHS4=; b=DcLcxl8X78bvtlmv3wDi2OOJ0iM56tZ0Wq8vjrO1CUPSW5FGigPv5e0BUjex1jdZNs2HGZusdYjwnZkVOCgLsS7Ej8v0cv9YNZVBpEs3k8PiDfMatZJKPu932n+utFKzlcPa/q6ppfq63oIVgNL0cLWPdxbZeAzszh/c90hYnOqwdm/CXhWSE+t90DvFuduGLPFIyeEKV+vQDvkE5pfJaF9CGnXIpPdIVySiNWhyjPipk3c6Leum7QhEMyDriu8dvxFqqYI48wgnzwqh4GoWcRBSR+AxPsuLqRTGYFGFvxHEMyYbhf6qcdEIwOg8NCbSBG5WwUGQcqpeSj8bK4nYqA== 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=8hp9YS8jEEsaaQtV+h2ko9fpqQi3pY6lFFsOK57EHS4=; b=gx0BvnlcQP6rBSzbCCfXMu1DAJHIUojgPL9BEsy4zV1CtXSxVU6pmPOX1jA2nXpCkr9qg+miDlm6aiy3/+LUHP1K/cBu6AnxWJUSl56HjpP9KlApsi3PxMZjoLjzndWYoV82zJtPZtuqhX0Qx0NFqnK20zqQTC29z0zsxZKyBDAGLA0kVISLnt4jzUJhNQO4ZEIlLYElmd1R4f26khlCK2jCOOBvL871Nxj6Des8fIQsjH2r3Rzav4vRHHztpppQbUI4YXBJj57+pFhnQPcLsbjAS0S3HEnwWsnEoxp5Fxan0fAE1ay9ob4ZAfkjGedsIqL2BPCLK/NajLVzj5ClMw== 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 v3 2/3] intel_iommu: fix type of the mask field in VTDIOTLBPageInvInfo Thread-Topic: [PATCH v3 2/3] intel_iommu: fix type of the mask field in VTDIOTLBPageInvInfo Thread-Index: AQHazpil+0mQLG18N0+TygrrlyLdGQ== Date: Fri, 5 Jul 2024 05:03:17 +0000 Message-ID: <20240705050213.1492515-3-clement.mathieu--drif@eviden.com> References: <20240705050213.1492515-1-clement.mathieu--drif@eviden.com> In-Reply-To: <20240705050213.1492515-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_|VI1PR07MB6542:EE_ x-ms-office365-filtering-correlation-id: 731a34f8-adbe-4e59-0ad9-08dc9cafc853 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0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3Q1FwMTBvb24x?= =?utf-8?B?QVMyRTNGRmlRaDR6eXBUQ3dhWFlxMTNQTU5iUzJ5b0NrNWlNMXFnT3pTOC9W?= =?utf-8?B?R2d4QUh4UWQ0YmZETk1MWlh2dGRvRXcvUG5Ydy95MmlyZE9CeUh5RkRBNVE2?= =?utf-8?B?bStic1UvQjl2Wkd1czRHSXVtZ3dZb1Z1R1ptNHZ3bVVablE9PQ==?= 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)(1800799024)(376014)(366016)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?Y2x2cVdxK1dwUWxKS1FTTkg2S0xaYWZZOGZlSE1kdEVqYnpFblliTWZaODRl?= =?utf-8?B?eEUrWTcyWUt1NzZhSEhuSDdtSkVIMTBDRFNiUVFxMkFFeFBKTTJ3aDVMdDZE?= =?utf-8?B?UmZNM0NmNFpxWmNKaG9oVHRNNjM3UGRxZzFwSysrTW1ySkV4Qzc5WUE5bGRH?= =?utf-8?B?QzVhTzc2OElpTnd0bHY3dXdWQTd3c3RuSlQ5aVBIeWFKMkRKQmFhTVFKK2dS?= =?utf-8?B?TlVqVDhyOW5LZ1pTUUg3THl2aUxIVDUwQXoyWjVCWHovR3NqWFJlYnNjWTNC?= =?utf-8?B?TXZCcHE1R3B1c1hGZTg4anJxc0U5ZWYzbE9XMHk3ejNpd25SUzMyUkZXcTVS?= =?utf-8?B?WEVNZjErTUdpMGFySHJhZU8vS3Z4SHp5d3UybWJlYWlhS1orM0ZKbTBpRkJ6?= =?utf-8?B?RzZBaFpEMFFINS8rbUVOeFVoSUpiK1pIWGpjdzdUSTIxT3NLZWRGQzl3UmhF?= =?utf-8?B?TU1xY0lrWFY5N1Nkd09kUWJIOU1NMnVINWE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GpTVDN6NW9mSEhrVXpYdE9MY1NYM1FnYjFxdkpH?= =?utf-8?B?ZWk2VlJsS2VNQXRhMU9pMjJXQVc5OEl5NEhZWEl2NmxzY3RnbUhGalBEUVVK?= =?utf-8?B?NUxJQTVETGxvazIyZW92VVIvWEFrc1JIWmE0VnhQVGpTL2V2TlBnVHBuQUxT?= =?utf-8?B?eGtMczZsc2RPOGNnM0prTUVPaTZHRGVLVzdXZjdwdWUvaDB2aS9GeEhGRFJM?= =?utf-8?B?V3k4S2lkb3pNTTFiYUtUdWR3Q1RhWEFDK1FuRktKZTNrczFJd2duQU5tbzVG?= =?utf-8?B?ZUl1eHRiRi9oOXdQdDNIWk1iNGQrd1IrZy9ZMWthdjR3UTd0ckU4VDZyaVNm?= =?utf-8?B?UjB1cXg5QlZKSWxqVStTODhLWURwTEc4VStvTVQ3eWJ2dzJvdkVKMEg3MDk4?= =?utf-8?B?LzFpTS9ncEYwTk55V09qVlZyVmdCZFhCeGM3Y2oyeGx4ejlnZkQrZ0tYcjBE?= =?utf-8?B?cU5zb2R4WUxsbjl2cnIyMUM0VTg0Sms0S3dTMk83UmViR3V2VGRxMFRwS0s4?= =?utf-8?B?TktCU1BrMXZQVlhCY0Q5U2FFWUJ4dUJZU081R0M3ckdkTEcydFZzNTFkaUNI?= =?utf-8?B?TGFldzd5R2JsTFU2eHA5RmluZjR6KzFaY29PeStKUGRNekpmMHNCM0JNa2RO?= =?utf-8?B?SDhwUzlFRmRoSFk5UjNKOU5QaE01dW92K2FMbENNMUNEdHRJN2NqeUpxdTlj?= =?utf-8?B?bEhndFBMU2d4ZFBYZWdkanI3ZHM4TGJ5RFJwV0I0R0M2RHJML2RoSFBodVRq?= =?utf-8?Q?O27GE5FZrpSXRIqMazR4Ack=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: 731a34f8-adbe-4e59-0ad9-08dc9cafc853 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Jul 2024 05:03:17.3459 (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: nb0D3kvg5GUxACaqOhKUEkN5EJIFXoND8P8mqC41JpiHb7fzyFw7HCndUKb8zJoWFgo8FMRTmn/iyAR52gTURNzZ0aM86QaqLUMvx9w/+MMCxxlDMPgAHJSEj9oEvUju X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR07MB6542 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.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 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: 1720155846267100005 From: Cl=C3=A9ment Mathieu--Drif VTDIOTLBPageInvInfo.mask might not fit in an uint8_t. Moreover, this field is used in binary operations with 64-bit addresses. Signed-off-by: Cl=C3=A9ment Mathieu--Drif Reviewed-by: Zhenzhong Duan --- 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 cbc4030031..5fcbe2744f 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 Nov 24 20:49:48 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=1720155845; cv=pass; d=zohomail.com; s=zohoarc; b=N7cMHFi0n3Rsj9ZL8kuifx5F4CgsMmkkP4Xal5j9blmbyLkO70X+LGW/lM/WbivQaBYdR2YX+7AY1aMiV0zBtgi3finoHNuDn1h+bViCE0TVzV0LXIbFAqHquKFYdZ2TiMV4Q+wAy6XFDhBVqk3I9IqWWz9iZEEjK4w5G+mbhzw= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720155845; 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=+vlW/HnbLcXMR2jiiiKIos58VNaFzsvBUZnsSR8WMWc=; b=n5ingNbZ30CFDAqTfu5FTA4sJORgNgKyuLYOSDwPx3soJBer2YTDdXDhUnLNGAPZVjexkqz/0YmkSW9Ka22S+DBWyCQpdRiErcKpOyzSgqfrzQQ/d4HP/vu3kzlmKjHthj6SR6mV4uV4ODBBD9Xcwjw5cInMhD+Of5ZqLyfUu50= 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 1720155845025322.3550265134071; Thu, 4 Jul 2024 22:04:05 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPb6X-0005MX-R8; Fri, 05 Jul 2024 01:03:29 -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 1sPb6W-0005M0-KO for qemu-devel@nongnu.org; Fri, 05 Jul 2024 01:03:28 -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 1sPb6R-0003dt-HP for qemu-devel@nongnu.org; Fri, 05 Jul 2024 01:03:28 -0400 Received: from mail-vi1eur05lp2168.outbound.protection.outlook.com (HELO EUR05-VI1-obe.outbound.protection.outlook.com) ([104.47.17.168]) by smarthost2.eviden.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jul 2024 07:03:20 +0200 Received: from AM8PR07MB7602.eurprd07.prod.outlook.com (2603:10a6:20b:24b::7) by VI1PR07MB6542.eurprd07.prod.outlook.com (2603:10a6:800:179::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.11; Fri, 5 Jul 2024 05:03:18 +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.7741.017; Fri, 5 Jul 2024 05:03:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eviden.com; i=@eviden.com; q=dns/txt; s=mail; t=1720155804; x=1751691804; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=+vlW/HnbLcXMR2jiiiKIos58VNaFzsvBUZnsSR8WMWc=; b=c2UwBF2V+agf3SjBFf4lkJJIKedPH1dx8/goqud5n3QySXaiutg5jzpC ss07hUZJx+XjniahZlcgk5KcEtn2PGISlf7M5RxVKE5WPymQNvFo8YucR d6xthEWucyyXKcFDHnoLCsq8q7Xgzz3EZapx8fzJ0s0/G6oXUurNeBx5B umzQOdkKkAO64Oyg8TNH8srVexEoYRX3h/JNZN1opn6SweP4Fk8ySafbq wR5y3+h1tFUicqwYAY4+JFRWkMEHR4jbjUzn3ZFgGWnFh9aoe4lJ1cOLg wNM3nvO6nMywKjPZscD7rmOqXRHbZmbqy3LkPjMJdqvtZ9B26kA37+ujJ g==; X-IronPort-AV: E=Sophos;i="6.09,184,1716242400"; d="scan'208";a="15932577" X-MGA-submission: =?us-ascii?q?MDEVUNVIeB+2nLfWcbH5HR5ei1ZZqTvmKgKffz?= =?us-ascii?q?sv4HmSrZ40dfF3Rm8da38FIdPdgnAkRrmf4en7GlhrkwkQ7uV7gFkxXN?= =?us-ascii?q?nm0d6deElYFf6kr8JeDtYTx4s5fL2bT1HypnB3MeInEa5LfT1qJh3OmB?= =?us-ascii?q?Z7Hy02n8uPUDR1ddos8A3yaA=3D=3D?= ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YlomwKmB21uWsKKaJqfW6zG4a4+OztCtzowJs52w8rTBKsHqS2y4xw7hP7BslZIpTaIWOV1ZMAgYdI7mD0e81vDPlVaNqW2KYq97AqNhqh+SFTlHPXRSFi8Q5Mj7ROomo992YA3rYmfG2jAv/outPuBxBaBA6cqtYMQPEiEgSxjE/i5+R3ajpTa4Ymm9laQjcIj04FVz9XN7W6/V0qFhce1XLyRagDmfVB/afQgbLra6hYLBhX3KQ+nCk8B+Vs7L6byeAV+P/viWJ6aeCdkFaZF4O1JnBs+bznBXF08baPW4DnkY5E3qW5kjHnvs2QfDgkNJW3X+FxND9QOYNffqqg== 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=+vlW/HnbLcXMR2jiiiKIos58VNaFzsvBUZnsSR8WMWc=; b=EicSsr0D+fCcnrJpyypDqQYJra3KYDIGstzYoBp8t2WaPeVA+yRY9svcc/8O8XSKQ8RZWZDB0iMztot8UelFve2Et6kYk6QyGk3kV2ISGCNWoXl5tPzU6z4RGe9zK1boBsaP4Vs2sx7SNERxvvWyMl/46qiOJMMUG3RiJXedRPDM3LK24ZSu8B1/98LOvFh/WbSD2/FxRwxkjCp441nFHWxnIVVakM+CAMaFQOSptP33GZGkz5cwmrwP92ZuEjBLGXukRJyX6ABoer6+3BiI5sEF/TqxFw9fj763DYTr7IJqLYrK7enx7iLEMqW4bNLNZolxjCSLLYv0HS/i0Tvr6w== 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=+vlW/HnbLcXMR2jiiiKIos58VNaFzsvBUZnsSR8WMWc=; b=os+2s7hN90coL8gbIOQQEvrrfsa5xp8u588NWQwqqMj0+z76JWziZZyoq/PZSja1XUeI6JLXiLfU8a84jSg8sfOT8B2xo7luWYqG68F/p8zaKsV5DD00hRmej/FtArPrd64SLbI1mdm+SNnCOlITYCYqSkghkcWjYd9kCby7weeLVMGUESVAUFTDJ+bLfWIK/vc+XK/VfbJkvtDAZzPJ4KBVJHLlU71nYIE9Rbp9KpoB6NwwnkKiDKsajrsBlSWaJkpA/cMv+eQRZbq+sVotY3D3OFCubLAbhxEyIr8itfAPrsYaBgkAhWxOje29bDkJLY2ajpZaodg5kIvCcyEzew== 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 v3 3/3] intel_iommu: make types match Thread-Topic: [PATCH v3 3/3] intel_iommu: make types match Thread-Index: AQHazpimYumHqjSOhEagUatp7yyYIA== Date: Fri, 5 Jul 2024 05:03:18 +0000 Message-ID: <20240705050213.1492515-4-clement.mathieu--drif@eviden.com> References: <20240705050213.1492515-1-clement.mathieu--drif@eviden.com> In-Reply-To: <20240705050213.1492515-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_|VI1PR07MB6542:EE_ x-ms-office365-filtering-correlation-id: 9a1b8379-de84-47e3-947e-08dc9cafc935 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|1800799024|376014|366016|38070700018; x-microsoft-antispam-message-info: =?utf-8?B?UTBBSjBCZ1NwSzIvV1Rha21yMTVidmdDeExzY0NacFltbEdXRUhqNHYvLzZv?= =?utf-8?B?N1FzUE1sWnVMZU01c1p2SU92aWxaRnFaZTB5aVVzK0Y1QzJLWG9YRlRQQlRD?= =?utf-8?B?RFh1dVQyejluWXJpOUJ0amRDbzZLZnNNK2tPeXRWQ1Fmblh6SU5IU1NaMU95?= =?utf-8?B?dUhTZk9Qdlg1dVNYVHRudjZIZ1hCODd3aW9lak9KZTlCZ250Q09EblRMZnRa?= =?utf-8?B?UmZYV1RmTDBkREhaaE1IdUpXTjFONFVWcFlFdDJLQXYwbGxUR0NJM05pWFR6?= =?utf-8?B?YzVKQ3NtVEZYbkhqQnlIdHJ0Y245Y2NGM2FXRS9qRytXTnFFa1IyVm8zRHpG?= =?utf-8?B?NXBZY0ZCNzRhQ29mWk9XWmc1bnhXeDI2bllqcmYrTU1uczBFT25iVTJ2bUZX?= =?utf-8?B?YmhBOTNsK2R5TE9VSWk3UGVMZDg4SDNZY3JOVHlWY2d5c0pXeWpGWFNNalVR?= =?utf-8?B?Y0tZZVVKa3VpR09idFJXNW0yWjRVQUwrRUx3QmI3VW9sdW84WlN1YnV1enNP?= =?utf-8?B?MzBNeDc3QXEwZnRleDZ3bmRSU1c3QnhmdDFGRHN3S214N3JsN0NoVXhNWnhY?= =?utf-8?B?QnphTGh0cmZ3VjdqQWM2T1RxWElSMHBZMEZibklSNnZLM0ZhU0RScHBYT3lz?= =?utf-8?B?ejJmeFdUSy9CZC93c0VyemRTQngyak5kN3JNMmlTeHR6YkJyaUYzQm9CcXlZ?= =?utf-8?B?dEQ0azdjWlZxNXd6UlFHNkkzUGFrRGFUSTVuT29UYllTVmswVWxDLzZyamtm?= =?utf-8?B?TlB1UzYrMkpLTzFvbHVBY0doRndXVC9rak8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Q2JrUTJBcHdXSFJQb3d3UC9TMVZ0MWVSTlFMdUlG?= =?utf-8?B?NEIvNkZhME5sd01KNS9Yb2IzS2hLa01pRklzWHFzRk9VN1BQVTBPcjdiY1Ji?= =?utf-8?B?aEpzbG5hRDQzT2t1SjhQYnVKejdRUmlNUEh1R3hBSTBqRVJjUXM1NkRKdFhT?= =?utf-8?B?U1BtRnV1L282VTl3QndRVEI5RTNlbWw0UTZxdXFkd0R5eWc9PQ==?= 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)(1800799024)(376014)(366016)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?c0p3b3NXNjRpYkpFeEVzWjFGY2wzM0xOQit4UmRRcS9GZkUxNGlrbmhLWnJZ?= =?utf-8?B?Z3B5YkV1QzBaellyRGE4a01Ba0pRZWdycC9SR0xIaS84YmdtK25qU25GN1JF?= =?utf-8?B?UkVrOS9MbW12RjVPUy81NE90UHNQYWpJR2tXZlZNZkR5S3VMbzFJcE85Q0ov?= =?utf-8?B?b2F4YXJyMDArNjVkTDFjeVBURG55QkVHMGNCaUF2RHVySzJDQWRmVFpNMmlF?= =?utf-8?B?UlBrdTQ4cU1JZXBFbkxvMlZMZyttVzdWc1YzUTV6SkVNVEhuU04yYnFVRHZZ?= =?utf-8?B?L0l2ZkQ2N3hCVVJTV2lrdWNvWEI0bUpHVjMrNzVLbUdaVmsvblRLcUNkS0tZ?= =?utf-8?B?QzZObnREWFlTOFQ3QlRQRllRcVdLTHdsSERNMENqTVVwV2E1MGlXMnVKeE40?= =?utf-8?B?dWtOa09vYTFmZG9DWG5OZWVKa3QvRnB1Mm1JUEx6cUFGVzE0MVY4MXpQK21L?= =?utf-8?B?ZEY5RFNOSDRpNnlqOEVQYjh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4cWxYM2dlanU2L051WllGVjhRRVVzYU9XRmVtSXE0Z2xo?= =?utf-8?B?WXNyeTlJVjAyZWNFV29QTTZzbVpIcU9rMGtHUWt1dGVHWkRSNEFYWDEvbHJT?= =?utf-8?B?TTJiRjNTV09CMWFzUm5HZUd2VWNsNFNjMkcwOFV5N2swTWFmZnhFa2NsL2hR?= =?utf-8?B?ZHhjcmJWY3Rkd2pCTHMrWWxrbUIwRFNZcyttcVJtVnF5SXN4SnFzeHJicVRB?= =?utf-8?B?b3dJdWs5NW4zUXpvclFQRXBhSmVCYW9DMDM5SG92WkFhV1dEMU1uY3NkbGxt?= =?utf-8?B?dWxhdXFESzRaQklEaTkrT0hoZVFWbS8wS2ZzVFk1QUhneUdBRHV0dHR4WWpV?= =?utf-8?B?bldQQjM4MVVFWFUxdnVEbm1qU1REVkQrMzUvQUdoanlrSWRPZ3ZiYVdPbHVM?= =?utf-8?B?RjNYR3F3SVRmRTdkSGhzRENhZDZMMkJROTB0WElSL0Q2NUZwVmoxZkpCZVJF?= =?utf-8?B?QmZyZ2x2L1czOVAwN0tqeXIzWkNiMVFacmw0QTJpWGQrQjZGVHJPNTJuZlJO?= =?utf-8?B?MkpLVy9EN1RHdmVqK3hSTk4wZjR1cHhzTW9tWGN5MThjS3R3YjIwZUJrK0hJ?= =?utf-8?B?RkR6TkxnSmxmZWNrMDI0a1htb1NUbndPK2F2ait6VTQ4NzVpZGhoQzNPR1cv?= =?utf-8?B?dWFBc1VZZ0d6TStWSmliYTRMK1FrR3l0TXd6RkNtUE9ta0tPeWFJekw3aTZE?= =?utf-8?B?UjJKMFo1RTVrc21qRzNPZVdFQmNZcmVwa054NXE1YU9ZUkdwMTE5SEdBVERV?= =?utf-8?Q?jrvK7kn5UbkgqslnXfPf3GE=3D?= Content-Type: text/plain; charset="utf-8" Content-ID: <5CDF6DCABFAA834885835EF427752511@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: 9a1b8379-de84-47e3-947e-08dc9cafc935 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Jul 2024 05:03:18.8503 (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: LI5sklwAeSNQFRJ7ajsYxWZ1yhYBSWMDUZFRzQAmVqI69BAH7xrJq89L0yFImgi7u/rjj0vXp/C0vDyge+Wp8MrEqPcqXcXbOfRzedf/C7QuBEZ3wZDFEdam/nQ5vODk X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR07MB6542 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_PASS=-0.001, T_SPF_HELO_TEMPERROR=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: 1720155846421100009 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. Signed-off-by: Cl=C3=A9ment Mathieu--Drif --- 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