From nobody Sun Nov 24 20:34:03 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass header.i=@eviden.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=pass (i=1 dmarc=pass fromdomain=eviden.com); dmarc=pass(p=reject dis=none) header.from=eviden.com ARC-Seal: i=2; a=rsa-sha256; t=1720438907; cv=pass; d=zohomail.com; s=zohoarc; b=EpLYS7r7/1Jl6PDxDPLYSZ4Nu11EOM7q8QqaYumbk6XDhYHSvtVrqpn9+KMgRhRk6XMPo02K5th0EO1uBShGhxNtE7PiyxhrJgVA+hQoTK0QSOJ/0VlAgM75VDakoStIThopP/TAXAOaJ6nDlRNB0VZ8TxUqF+GSDMpBITuW4MI= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720438907; 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=hVh5soF1sbHB0PJ604yENPnseV6Ov4o/X3k1Zl3qdXU=; b=BXdZYApJhiJY+RPHdwI5RmgFe3zhKBMHzfYtZ2AvY+QubwRuNYS7P9+6Zmm1jjXaqy948CaPQx9ofjH2ewABp41lBMbODSRg8t2JRFo2gGEB3xCqrux4ssbKHKBukHYcaEuHMUl3CzAhN1peU7rKyhvkSEUjFmH38ODLbQ3oELg= 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 1720438907877562.4348535230778; Mon, 8 Jul 2024 04:41:47 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sQmjO-0004O1-AP; Mon, 08 Jul 2024 07:40:30 -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 1sQmj6-0003x4-UD for qemu-devel@nongnu.org; Mon, 08 Jul 2024 07:40:13 -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 1sQmiv-0007ru-2R for qemu-devel@nongnu.org; Mon, 08 Jul 2024 07:40:12 -0400 Received: from mail-vi1eur03lp2105.outbound.protection.outlook.com (HELO EUR03-VI1-obe.outbound.protection.outlook.com) ([104.47.30.105]) by smarthost2.eviden.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jul 2024 13:39:56 +0200 Received: from AM8PR07MB7602.eurprd07.prod.outlook.com (2603:10a6:20b:24b::7) by AS8PR07MB7400.eurprd07.prod.outlook.com (2603:10a6:20b:2a4::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.18; Mon, 8 Jul 2024 11:39:55 +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; Mon, 8 Jul 2024 11:39:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eviden.com; i=@eviden.com; q=dns/txt; s=mail; t=1720438801; x=1751974801; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=hVh5soF1sbHB0PJ604yENPnseV6Ov4o/X3k1Zl3qdXU=; b=TWZkvPXcuqc5p/iVCmIpIpBx+PsSzyctJZAIbTKyZllW0sqXIWwHbdnq TeBq3+n5eDgHB55LI2+w6ozGP3WOAeFS6m8zzWis7aHhlfche13D/6LkG B3C9tRGl+pA8kUW1540NCGcerTE6qraimzAVtSa1CbOnudbFjeOGW6YpE SVVGMA5p1GngaeFJPu4kuYvjlrzRwvSmtWB9h/2mKn7MHyGtK+WJjq+2c nD4UByXeJcm2kwIJ3F3lpo2e6xkuEf/5AQGPbfCDLlX23Kc3rc/IF6NDA Q7FEvkpvSIKEz/o/IBHI4ZGeDTPUDS3+waJ7bG2i2kSWRDYExlaqTKaBT g==; X-IronPort-AV: E=Sophos;i="6.09,191,1716242400"; d="scan'208";a="16088415" X-MGA-submission: =?us-ascii?q?MDFAqD+/7YTWuWa8Ao4O1OoCaN49GNglfsbPir?= =?us-ascii?q?Os6tkaG/U9KBFGAuRK0XcXjLR6Kh7UL2EP3Tp261Dm05SwwxM/zUfwWC?= =?us-ascii?q?sqYXbILs7FW9IhPvVGRSYbTS6OqDK9PtwrxNVOKZH1Ve4burjLtzEa6M?= =?us-ascii?q?nMrRq9vFtjJHBWLthZbrFnKg=3D=3D?= ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CFUmfmElNTxIm9dEnaCgZ9LixdOLaGvdmpRuAXaedfTfCBbwHlRKfdhQOwyCt5gPaxDpO9ou1wDsCHqzNaJR7LviAS5LgGbds1ybTP5Z0CVBEg4Yan9RnCDH2LAFBz9Vx1PwssXbfb+Sl718uCuqaZIhRQKKhXmCo6vU8iXr2fp0hgVMbEluJ/EwKJkJPI4h2TmPpLmGAEX0Vt/TV4XRWRbeIB6xiQ7sa2N6xm4QeA6K+XwrSIgvq1rEZRgHR/xm1PL+K0nqTE8QGmLwpCQ2hilseIr618OqPoOAey7W2G8y4mkup0vv2bwdamr7oRGqbdTdG2DV4ESyJCurWMfyDQ== 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=hVh5soF1sbHB0PJ604yENPnseV6Ov4o/X3k1Zl3qdXU=; b=k3bfaldWrJUtMHlr/EAGbZe8s207dIOC0nM0Wh5jaAx0Ma2HtleEoxCWIco93OLJsSV06GSa7LUp9hSA5RalSf7KEI/Fu8vCKbM2nW/+PkEhjjxwiHqOz6Cs2pqMYdzKLs+5EXtu3DY6gh1O9tjeWSBRQJ9asI6UV6sff0QErF3M3nhhhLkPp08/MmgYumOVmsmNr1KrYMDEWo9oyT+mc7FqU5ZJOzvMO8++In1Wdk8ayJJqHxoT3TPXo0D1EKc6jbmhWj0IkmsEMq7Wgr5BfyjCMYUbX8WSYPX46YSIq+6pJKr+uv1Ek+jq5ckeoYo/x4coyO2f7S/POYKHiIlZsQ== 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=hVh5soF1sbHB0PJ604yENPnseV6Ov4o/X3k1Zl3qdXU=; b=AqR0fxLuLUbZoeSvqyd/ObYWNuIftjX0sHOUgYEPiqfBXL+5MrpTqpt5h4DQz7WM6Dy5180SjQkFn8E4U61P2i76whnSJloOmkkr8kDk4A987c34oqXFQsPlJMs8bo1SiizGv+paGzbFtBAkuo4y5ApZrxkufs/M0P2JXbwcScNBj4QMOtXMuT51+KjCWH5vsiOdqzHpfGDS/7fXpyvuzCYCpDqf+pdvrDhnN6xLagLD6qJhgN2cBAC2WHLuOO7DHBgVPGWSrZ0wLRNmVdZLJqLEfutKVInYDTBHX7PupBOcxgGaGKjsDlS5DfJgorHCDXA7iH0pbLtUWJLpPYhp4g== 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 v5 3/4] intel_iommu: fix type of the mask field in VTDIOTLBPageInvInfo Thread-Topic: [PATCH v5 3/4] intel_iommu: fix type of the mask field in VTDIOTLBPageInvInfo Thread-Index: AQHa0SuNYymPsQHFfky5WnjMRsYUBA== Date: Mon, 8 Jul 2024 11:39:54 +0000 Message-ID: <20240708113908.19535-4-clement.mathieu--drif@eviden.com> References: <20240708113908.19535-1-clement.mathieu--drif@eviden.com> In-Reply-To: <20240708113908.19535-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_|AS8PR07MB7400:EE_ x-ms-office365-filtering-correlation-id: a59437e5-7193-42b2-b31b-08dc9f42b00c x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|366016|1800799024|376014|38070700018; x-microsoft-antispam-message-info: =?utf-8?B?cHFXUkhod2VPbWZWcWphQ1lDSFJ3YXJ5WjRGQWJNRVFqS1J2cDNPV2ptaG93?= =?utf-8?B?ZjAwczNjdGRWYTFhNVZ4SG1vb1M1RTdCdGJEUFArVDFtMDdEOVVETEZ4Ryt6?= =?utf-8?B?WUpzRVhxdmxLZVBVelpjQmJpQ2pFSGwvV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-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)(1800799024)(376014)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?dHpaR2REZktET05oR2ZDQUR0N0lWSHhnV05sZEs2cVcrMEtzR2lCZnZVV0xD?= =?utf-8?B?c1ZZUEhmTjlxYTlnWG5ZeWhJdFl6WGNTZDZSd2ZnMHl4TDVPMkRhaXVvSVFW?= =?utf-8?B?Ujl6U21vd0t4VGp4dEt0RGd1aVJ0SVY4SldybEtpTkRUTXR2dkR5TlhXMmxh?= =?utf-8?B?d3M3aW5oTlNqdEM4RlpLVEh2ZEUxbldjRVVUWlBjVTQ1NUtDR0VKL2pSTHJo?= =?utf-8?B?MXB3UjcwMGZWRmE2bnBVZFZtblJMTXBPMk5SczhyaFB4MWNDY1M5M0NQUlRU?= =?utf-8?B?S29YZnp3Y3o4UkxRQmQ2WkFSMExpLzgraWkyRklhMXRLQU5DMjZvUElrWVlB?= =?utf-8?B?WXU5TDJFYUt5cVNKems2QW5keWJyM2M3SEd1RnJMRlhrczhDMTJDZDduYThw?= =?utf-8?B?VDhYL3lydHBKQWh6TzBqZldjcHBYMVJ0QkF0V1VlcDRsUGJnYVg2Y1c3OTM3?= =?utf-8?B?aHgyUWNNYWlrMFM1YUdLU0g5VWgwVXhXQkpVTmhYbll6TmpRNEQ3NStueVdw?= =?utf-8?B?VEJ4bnFEQnF3SjF1c09xMk9GT01uUG5xN0w2QVFoODhZMHFVZUdVN0dFZzRE?= =?utf-8?B?VStnYXcvUnZ4QlFWbG00TE1kaCtxYmRjbjEram8xRS9MZ3NJNDNoY0o0TXY2?= =?utf-8?B?ZUh0M0dPOU9adjExV2JOalA1cEkycWtoUEd2RjJCV2QvNXhNbS9UOFg5dm13?= =?ut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GROZXVDSGE5QVJVbm8v?= =?utf-8?B?b0JmajRGUUdZNk03Y05VTXVweEFQUGpjQzJDdGpkSktCNGhBS1E3Qmc0S3oy?= =?utf-8?B?Y0JLMUc4OFBKVmRHSlp5MXI5d2swMDJocFhnb2ZTUWdGZ1ZHV0NwVWJnODlp?= =?utf-8?B?YWRJVEFmVXU4WUh1cDI2QU9hZXlJeWFsWG9tK0NzMkIwUkZtbHBFRXVZNmtX?= =?utf-8?B?NVp3bzRweUpNYjRFWGlpNkI4d0dtbk1GRGNhekRyVjJzV1dvbGErblFUSVQ2?= =?utf-8?B?dUViUVBBemdNVGpYTFltK0YwK00xaW9qSDJicVVPWXdYQ2d0YVJVSDlpbVlP?= =?utf-8?B?NmQwWUxkU0g2WFhaTnJwQTl3Z1ptMTJTZFgyclJzajZqRVhMWGNUcTBQMlhq?= =?utf-8?B?cXVjUDdzZmZtUUN6RFpuT3pZa21lQ2hOOHVQT3JDUE9ETXlOb0RZZjh5ZVE5?= =?utf-8?B?ajBVKzNQSyt2WXA4Z1I3VVROZW5abTljYm1yb0M5OW14U1RpZWM4cnFnL0kw?= =?utf-8?B?d2tsSWF6K01FR1ZlUE5TTEVXeTNaRkhETzNzZlU5TTl0akg5RHFuTVQ4eTlu?= =?utf-8?Q?5BWdhZg9r0QsyIi4ncNvSYE=3D?= Content-Type: text/plain; charset="utf-8" Content-ID: <335F543A0BD124458A581B97CC6CBA0B@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: a59437e5-7193-42b2-b31b-08dc9f42b00c X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Jul 2024 11:39:54.9477 (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: 3lxipbX/oFtypJYJU3vQGThxZYW/naPd/r5tN+PkJqzZ9u4cQAWISZw14G4Q7agHIPuduSWCQJytOKOQH/6hxqsxiuacwj5WRGmy+fVRJbXVxX+HK5HaLUon2ZchEkRW X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR07MB7400 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 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: 1720438909817100003 From: Cl=C3=A9ment Mathieu--Drif The mask we are trying to store into VTDIOTLBPageInvInfo.mask might not fit in an uint8_t. Use uint64_t to avoid overflows. Per the below code, it can overflow as am can be larger than 8 according to the CH 6.5.2.3 IOTLB Invalidate. And you may want a fix tag as well. info.mask =3D ~((1 << am) - 1); CH 6.5.2.3 IOTLB Invalidate Address Mask (AM): For page-selective-within-domain invalidations, the Address Mask specifies the number of low order bits of the ADDR field that must be masked for the invalidation operation. This field enables software to request invalidation of contiguous mappings for size-aligned regions. Refer to Table 19 for encodings of this field. When invalidating a large-page translation, software must use the appropriate Address Mask value (0 for 4KByte page, 9 for 2-MByte page, and 18 for 1-GByte page). Hardware implementations report the maximum supported address mask value through the Capability register. Signed-off-by: Cl=C3=A9ment Mathieu--Drif 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 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