From nobody Sun Nov 24 20:19:41 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=1720177418; cv=pass; d=zohomail.com; s=zohoarc; b=V/9RMNSl+8MGQeu4iiGEmXie3VRJsa1X23OxR1djj2dvJvK8m0rdd+fnzGJ9LeVG7feo14XYQyR4OLVSWc6/jRezPex1oP6BgmbMO1hZtPyltQEW9FGmsQoIjaM/3Vn51oAt8sxEqZYVCRsviNmgwBlhB4ucLjmwWil67eUQi/o= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720177418; 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=pqwkHTle5zShwb1UCmzN30OIyPBuDlyHBRRNtdojXrI=; b=lC2aZxN0jkm+elun+37hfq4WIoPuxT8I1oI+ESUFVBTTNEzJFAjAquZTlPtBFs95LX/itSUiSTpU2DYDcXy7+aXxVj1LyAG0p3GHjpkmhFymnEIjE64S3tZtDFActvgITk8eQNE6kCaegp7zYbRUxDbKzYodCE466+iRAeYbEl4= 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 1720177418960263.10249838740583; Fri, 5 Jul 2024 04:03:38 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPghl-0006OH-8p; Fri, 05 Jul 2024 07:02:17 -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 1sPghi-0006NM-H4 for qemu-devel@nongnu.org; Fri, 05 Jul 2024 07:02:14 -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 1sPghg-0001Tp-Ql for qemu-devel@nongnu.org; Fri, 05 Jul 2024 07:02:14 -0400 Received: from mail-db8eur05lp2104.outbound.protection.outlook.com (HELO EUR05-DB8-obe.outbound.protection.outlook.com) ([104.47.17.104]) by smarthost4.eviden.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jul 2024 13:01:58 +0200 Received: from AM8PR07MB7602.eurprd07.prod.outlook.com (2603:10a6:20b:24b::7) by AS8PR07MB7303.eurprd07.prod.outlook.com (2603:10a6:20b:259::9) 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 11:01:57 +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 11:01:56 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eviden.com; i=@eviden.com; q=dns/txt; s=mail; t=1720177333; x=1751713333; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=pqwkHTle5zShwb1UCmzN30OIyPBuDlyHBRRNtdojXrI=; b=KtlUg61o4xBgsp771pGfLGfMsGbaUokSTYZVkFrclZjDf/0k0byce6a4 /AFQubHaejnkCAflm9AvlCPkL69UeSzmlfpzO/nFcIU3Ax1BevxjowDDe r5FckWFTS0XKR3CUvRUNIGsJHBRu+CiCgAW0Nz7mxXdRlob1Ih2eVGGVc 3qD3Sxewc3et2ShcEq8Z6ahvmyDwY5eRe4bnFeV7TmFWfCygKjXPG5Ruh lQk7SGmZTL02OxQXNOUj32/urmum4eVxcc4FTLJStm3nndkSyV50s4pW7 R5f1LDFE9w82FYMEXlht0Xqs1doxmcizaMLmDnFJI9TfwWktL6vljRXj2 w==; X-IronPort-AV: E=Sophos;i="6.09,184,1716242400"; d="scan'208";a="16056518" X-MGA-submission: =?us-ascii?q?MDF81VNHdETT8m7DUYm1R9HzmQbRFpR8fLT/F8?= =?us-ascii?q?LkxX/MCI2D9ADG6pHXGr2A7hQDbAasZY1S9rgG0bewF/yzzrxiDiMN4n?= =?us-ascii?q?exmTYKGyb7FyhPZZ1QgSWF58Bnp79tRMmInaGOG5V/qBUcH2KZL0uU2r?= =?us-ascii?q?Eh3orgL67uNvnWFPbdWiijvQ=3D=3D?= ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=B4rLa4Z6fUS0t6UNSRAqXF/K1V+moAB/dSv3m36onN6ScJv74vKexUsxA1IjpERdAmsmnHgwVLXDsTJifVTacNih9qhlIQL/LCVdwQsyaxvBpFl1mFK3+ovztAKEByKLfI59kuXb6tPMW56LcAeRdMQaUelXrzLbWYsMpDvWIuvDhkIbbERa27MnEo+fe+Q4VH6Y4WhtyuDhem5GUcdcRrDEfaWEiiAMqoNsFj/toSMsOIaiYLbFgLFna2Q8m5R7wHlUjAOn3rw4l0PqkXcVJCWCQ60EScPhkeeJQxF8lx4dCZ9CWoLx0Z0u5MFQpkX3RgiGCctIp8eat6KhLN8wHw== 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=pqwkHTle5zShwb1UCmzN30OIyPBuDlyHBRRNtdojXrI=; b=NSSDa9RtAqT2epk9AExU491oQ1iDF6nQdrMZ8VovPayGOuZPX0TnzNDSe5aWbphHDeQGv5P3JtEOGnMEN866OSoo+YsjxVNHnO8KdBdOCAl3UpakHtprhUGZ40IjIeg1Y5ZsIbNDXiCtlurGS0ytOwSzY54CDCgTDTDdngBXOHJof0nO0NXLYbnZUL5+RT/LDieLjIukJ+ppa+TyRhTMDjHqPFKlIz+T2IpEFULz/APvXFUCsKT9XTdEefrtyjMa7M0yIPkMsEXlgDemu4JYtjVM90Uq27/kHDTc2ROYSgT7NKapORbwbLbzPG7OE797L4Y91Z8pjUC9A04epo6Spg== 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=pqwkHTle5zShwb1UCmzN30OIyPBuDlyHBRRNtdojXrI=; b=Grgg6BmwVm7Dxp1YUghj0k+OKHaESzI5/HWL6cX3OiJ9raaCtr9t3Fn4F0bKUbTY/HQMPLzCO+AHwwibfVDn0Xrmy4i+PCbRx8OXHGwf6Ch+4krRWhGBs8Pmky4Tfyq2ky53eRlVuYwzL4Cn7gmJP7DmNglQqh7efnlwIEU8k4ONb27eDBlfevYBLqLC/IltpciJqbsRqKjMGCyRlH/1GdUV5DPrevv7NBWVgYuorfDJOR4pyHG9RSYzs4tthpgv9s25xOo/KNVWEg6Rze2iablElD9PIqF2eUaLnZxpI7i461uKy8WRoe1XwFiKEnv77MqvZeXNBZI+ViMw6cQcAQ== 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 v4 1/4] intel_iommu: fix FRCD construction macro Thread-Topic: [PATCH v4 1/4] intel_iommu: fix FRCD construction macro Thread-Index: AQHazsrARhZLqun5JEis8sZiKlyPAg== Date: Fri, 5 Jul 2024 11:01:56 +0000 Message-ID: <20240705105937.1630829-2-clement.mathieu--drif@eviden.com> References: <20240705105937.1630829-1-clement.mathieu--drif@eviden.com> In-Reply-To: <20240705105937.1630829-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_|AS8PR07MB7303:EE_ x-ms-office365-filtering-correlation-id: 5bf0e129-ae69-499c-a499-08dc9ce1e300 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|376014|366016|1800799024|38070700018; x-microsoft-antispam-message-info: =?utf-8?B?VmJFRUpuNlVMODJjeE5xUjNCYTQwa3UxakN3SjJ2WXJ4LzN3bytlVmZSeUVH?= =?utf-8?B?QWlKalNLckdKSVJkR0tXZFQrRlA1RktlZnduQ2dBZXFJTEdvbGFRNmk1THlx?= =?utf-8?B?dGlFNlp5OXJvUVA2V0d4REt4QnJRb0RValZDTW04VVpybDY5ZEFQajA3eUNJ?= =?utf-8?B?Zm5Jb1dXUkNBK2xXV0xnN0VkWFFDSjcwQlJFNGJoSzJm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aOVhVRnF4TmlvejhBL0N5QklpelJpajFhV0dy?= =?utf-8?B?RzJKb25tVGlTdlNLOUN1L3hxQkcySEppYWl2RHZMck5uVWtieks3dWQ2KytW?= =?utf-8?B?VXY5L2xDR3hGbTJ2bDByNW9pUC9Xem02dXk0dDJhczRRNXNCK2ZjTy8zYVZ2?= =?utf-8?B?WlRLRGQrWDNpZm1SemJCMWlYcHcwSURRblFGWE5CVXlUV2x1dE01VUlZTG9O?= =?utf-8?B?dnlxOFpyV1NOdkVlTEswRUhISGZ5eUtrblNEMTlYYkducGZTNzJDSkEvVFRx?= =?utf-8?B?alU1Q1k2Rkx5ODRqa0k2YWNscmlqZHNaLytMNi9nZ2lKVWc2SmgxL093ajlt?= =?utf-8?B?QXdxV3EvZWpEREpTblhnZTFGaTgwd3h1TlhvVVU5dm0weWxnWU9IVFZFdEEw?= =?utf-8?B?Yk1ERS83aXNYL0pVMDhaenVOSEF0azRrbDk0WWVlMFZ2SCtYQlZDNFdIQTAr?= =?utf-8?B?a0l5aXoyRzVtQTFLSWVRbmVNbGswZTJoTW1DUUxlemttOEVyMmQ0Y3hpMUNv?= =?utf-8?B?VnhVYUVIZWJERld5MC9jTUwxQWZlRyt4KzRtTkxuMm5zTjZ2TFI1V0lpKzVK?= =?utf-8?B?YzZVTFFlUDF2b2luZmU1N1FtYUJoY0ZHUXRJM2ZUaHNoRVJweTU5emN5b25X?= =?utf-8?B?U3lSZ29OMUNOSVJPdk9FYlFpMm0xL0JGVU05a2JxUk84QXN4UFNPSjMrZ0lx?= =?utf-8?B?M2g1VFlVTnJHdkNHOU12ckhHckRHSTIvVVhVU3BaMnFxdUYzMkNaaXdxcUN2?= =?utf-8?B?dG1rUHN0TWNFdk1nbys5c3F1S1lmbE5kMUsxN1NKRHdqM2c9PQ==?= 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)(376014)(366016)(1800799024)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?cUFhOHlyODRWK24zRVVrR05sRWlqQi9UeHhCSlA2Y1UyS0RPSDNuQ1R6MndX?= =?utf-8?B?VnVMV0Z4aThkaDZZSE9BVkdxT2o5ZWdHQ2lTZUlmOWozN0JENTczcU11Skdi?= =?utf-8?B?ckxxNjkyYURZSUl3ZW1Wa1RxRy9YMnh6MUtveU12cmI0ektJUWVxTXpsTTRi?= =?utf-8?B?WitFNHdtUVcyWm44UzRsaE4xOWdPWjkyS05iUkpCUHRnODJVNkRBUnRtbDdk?= =?utf-8?B?dHNDMjZKbTJXNkZDT09Qb1YwWlZUOG4yNDgyZjZPbWN1WGhER1BxZnFzUUVv?= =?utf-8?B?VVRLUVZVcGs4V2s0RVhreUFkU3p3eFhwbW5IazFmanQyTjRPU1ZWYTVwTWtZ?= =?utf-8?B?YTJNdGxrdWdqOC9XMlJORm1zQ2FOSGFoRmpRSTlwbmd1WmpzMU9BL0hKQzAv?= =?utf-8?B?dmZpQlhtWWE0MVVqcHBxS0hhVnptWGRKVlc4RGJqZnhzWmdFbmozVnoraWNn?= =?utf-8?B?Zit3VDNEMDR6ZWJUQjNkb282bHZtSFI2MWVUMTZya3g2SFU2YU41MjcrWHlD?= =?utf-8?B?ZUt5L2RBZlFNazVkei9TWmNreEZvOEZvZm5iMVRDVU96c1cweTJ1OS80V3Jj?= =?utf-8?B?TndaUVppMnR5Q3N3ZHVuUEtIcXgzSDZUa1FpMDNWOXRrQndUNU1yUXlGeVpw?= =?utf-8?B?ZFpLWVVsY1FRSVlpM1RFNjNiSVM1Z2FuUENLcmFxd0pGVTZlc3c0TzN1Qk1r?= =?utf-8?B?NVh3ZHBabWtyaXRXbDVqRUk3OUlnMFJvbmlxdHpobGtrMnI5VXRRUlFBdHZL?= =?utf-8?B?eHJ3K0tsQStEWlZlZFl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JmTWZrL2dJWVNXZ3dacVFvYkV6VDBLOG9oWW9RQmtSTURwVU9i?= =?utf-8?B?U29tYzJJK0UzbGViOVo4QXBNWnAwaEZ5dks4OVB3a2h4NVRBWXVHNWxIanpu?= =?utf-8?B?ZE9HZGt6MHV6Z3F0Si9YTGhvQVBJb240ODFMQ1RsSk9yL3JGdVZZNS9yckl0?= =?utf-8?B?TzlxbW9HUGxmVHN5R1NIVHRPWXNpY0JCbTI4czNpYkdKeUtqbDJ3MkQ2OFN1?= =?utf-8?B?V1RnWFhqdkdNMnY2aDVScTk4OHdOSFZGeFdIWXRvUXlpRjJiUGpYNU9tNmQz?= =?utf-8?B?Qnp6TEV5MCtYaVZmU0w1SWtwMDJFTUp4ZmFZYmdzakQ5c1I2enZvWE5meCtU?= =?utf-8?B?UXJNQVp6Q3BYZ1pUaWtGajNNRTVCOU5vMFNTeEZNNTczRmlibWhHdDh3Y2Vs?= =?utf-8?B?K2JqUXp4b0FYU1hBQnN6L3ZBaXpUSEo5bXlzSjQ5V0ZHUDlmNVZRMmNvTCth?= =?utf-8?Q?VkLWX692Hb/O+SPONe04lxg=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: 5bf0e129-ae69-499c-a499-08dc9ce1e300 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Jul 2024 11:01:56.9537 (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: 9C1uPOXehEW7YKHzXo4VgdMTlsM5hlWE+ZZG2vB5F8pf7IBzBvN80uQxNq1F3jw4Q/Y6gzqNKUluL+v/LLG6N5idWWVRDFT99qb0OHEk1Vmnh8uq0W21zzErNnXJ8Zh3 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR07MB7303 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: 1720177420904100003 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:19:41 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=1720177400; cv=pass; d=zohomail.com; s=zohoarc; b=dd6cAnMYg1qtFTmYNqOcZNyqIMcVwdBoFK3EfdJhIXBbRQFFTjRBhc5FZOGf0bcgRd4UAz8S6VN1RJdqSZJ+tWrT93SxVSLAl1738LbV0Ng+4v13oY0tRSAj4jkJISWXwme8EtPj3oVvCHQTHNCEaMHdI4wF3EUrK+j1xU+qhbc= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720177400; 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=xQVM7ylMlGKzxRaBVpQZpqXD9KGA8oCWP93OVr5usyQ=; b=ljFfKx/rcf0K0NNa63xz/DqI63aS8CRJ8UWSMDa/KURa8FeSZ5md661qc1oon1eNRI+Kpy0xcPBzN9KlNG3aldrJzN/jGehlvSEQX7kK0mN91MY0CG9j8c0PMXeu11u/udwv+Tyjyo56EaNORT15uItIHZ8711oOvB2IJEiBHC8= 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 1720177400009957.924401926619; Fri, 5 Jul 2024 04:03:20 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPght-0006Ti-5x; Fri, 05 Jul 2024 07:02:25 -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 1sPghm-0006RA-7t for qemu-devel@nongnu.org; Fri, 05 Jul 2024 07:02:19 -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 1sPghk-0001UB-KA for qemu-devel@nongnu.org; Fri, 05 Jul 2024 07:02:18 -0400 Received: from mail-db8eur05lp2105.outbound.protection.outlook.com (HELO EUR05-DB8-obe.outbound.protection.outlook.com) ([104.47.17.105]) by smarthost4.eviden.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jul 2024 13:01:59 +0200 Received: from AM8PR07MB7602.eurprd07.prod.outlook.com (2603:10a6:20b:24b::7) by AS8PR07MB7303.eurprd07.prod.outlook.com (2603:10a6:20b:259::9) 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 11:01:57 +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 11:01:57 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eviden.com; i=@eviden.com; q=dns/txt; s=mail; t=1720177337; x=1751713337; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=xQVM7ylMlGKzxRaBVpQZpqXD9KGA8oCWP93OVr5usyQ=; b=Ylc+pk5dOAcknYdpnlMcdjV51s0/TfRAWaWnaoaHVIQXbfPSPlFJqVZM j4rw4TTo616tDsFreE24LXOR0mQC3V9NtUbwT+fgz2W93wxiZldbEbeP3 nufrOtJLcA0GPDUgRPtOxngpIRDh2a/nHILWbAC5bpb6qkN8OyHeznQHT 8Axy4W2pSwiary5HM0v2KPstx5NNSMjBVP1osty7FlCjHRu0/POLxc4ht eLRItNd3AyHUEOFKADTcg4nTT/xeC43c5vwAJAdKDdAjggjk8hz35pCZU bMMtaMD2Nm/F4qEI2Twzrz1FCFoes9dMPS5zofqzy6We/sAdZZXu07OjD w==; X-IronPort-AV: E=Sophos;i="6.09,184,1716242400"; d="scan'208";a="16056521" X-MGA-submission: =?us-ascii?q?MDHlrUuxReAWgnVhkPvP+ginv1tq7w0+HKx/d9?= =?us-ascii?q?wOC2RId3eKO87B3D/ZT50WoMlXuTXWOWUh7g1uY2FpDU01swOk+OJHP9?= =?us-ascii?q?ZHCSl1BwJ/K50vGdop8Tia6D677mU0pD2mIhwwQiVj5C5nDK2Cp/x9yP?= =?us-ascii?q?jgfChnsq51GZrtlRoBiZsFfw=3D=3D?= ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BueE5yn6X9gtbCo4d4d1Cmup23JSQuS3M7iiGT0opbra2vBFOjzXP0qw3U2G7lhxiI8nwRbGyAPP8rXHiLvL4TT3GtHBCVQfDB6IOBzpmY/3sFsgWwanKQ0gf8eLvNPa2OKDllI3rnBV7qriLyEX9kKuXxNuJ3UC3f+I6WZ2ufwL+6+4XpirMMEFxYECnsvKJCgKyi7KcDYF3GknikmqFah9bjmMzd9UBsKz7QPAxohnE6GJvZcWNMcuHl756HmPbREfzRg0BzBr4cIRyt4Bg4wi9eijof+WVmrnhaYFhF1jDOVTkWuszP4LVg/oMyTEI1Nlm6g/42IJ5mT8SgX5Lg== 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=xQVM7ylMlGKzxRaBVpQZpqXD9KGA8oCWP93OVr5usyQ=; b=XOLQeHVhwp2wqY9m6u8xj+KXN47hqJKdKHmnghDtlmqHJ3MFXpfffZzbWlWfaPftmihwydrS3rDbpBnaGt4Wqu6Yui4tUD3ydrsiV4WqDj/3mSToMolfz7UbU6gemBQfX7NgoqXYx9C62YnDXQgtt/nJItjuQ8T8OpWzZGv9sO3t9lYKg7qWFj8KU5i8CRkBGUcMFkezvnGuO8fgFw8p1mUGoooac08LuVq7jq6LTv1+MurujDhmaIw3NWEBCiWe3hfMutB/S/wLWusGPxfE3qU7sHjlXraMX/DrXjw1KrdZhZ2tMmS7R5drP0LnH6afyqh9gAJybDRlctrfueI/Jg== 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=xQVM7ylMlGKzxRaBVpQZpqXD9KGA8oCWP93OVr5usyQ=; b=B8e5swG8jr5djHO7BIa5BTfiKYF5b44tWFN3LDJkaw/ZzfnVoqvqxGbQITGOoLMwbrP6MoJ90eO5ku+MKkCFyEXicdnvcCUmARxT4oX33OpoGp0jF2l2IJEgWm/IEJgFFc8ZOfO1pvEOSwK8+oxA4Q6Wtj2FFauzIGu9dBqf2f6rwf/JAeOMgPg30njmTm7XPZnFBh7ORf0ZHXqHm8r5T93eguDXzhwpdKKTw7vy9E0OxM2LKZ9nZThI3hg6b1lFUM17Ppf8ncX7FM81PXlwOlM8/utzhERFWybWFhddAJxihXH/k8IdhRFrcplDk4LWGKlyCKk6nCAJtFBtjPkqNQ== 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 v4 2/4] intel_iommu: move VTD_FRCD_PV and VTD_FRCD_PP declarations Thread-Topic: [PATCH v4 2/4] intel_iommu: move VTD_FRCD_PV and VTD_FRCD_PP declarations Thread-Index: AQHazsrAAk6W8c6+BUWyia/w+c4s6w== Date: Fri, 5 Jul 2024 11:01:57 +0000 Message-ID: <20240705105937.1630829-3-clement.mathieu--drif@eviden.com> References: <20240705105937.1630829-1-clement.mathieu--drif@eviden.com> In-Reply-To: <20240705105937.1630829-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_|AS8PR07MB7303:EE_ x-ms-office365-filtering-correlation-id: 7ffd236b-be85-403e-0444-08dc9ce1e373 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|376014|366016|1800799024|38070700018; x-microsoft-antispam-message-info: =?utf-8?B?V0tiL2d3L3NEVlM0MUwvYWtldUltRkswRE8rQTBHaD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WjRweXdpZzRULzdFcVFJMWtiaENOdm1aVGlrbTNjWnRVUTQwREwxZ0VZb3Qv?= =?utf-8?B?eXlnUU96RGZjWG4yNUdkM3FSZEZFUEJVK0NPT0hwSEVaWnc9PQ==?= 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)(376014)(366016)(1800799024)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?TUM5LzRYOFdUTTU5WERDWDR3M3o2WE5tbUNMcnY3bzUxSjRNOVNjRi9GTXdK?= =?utf-8?B?UDFVSzhMTktTdXBjK3BMV1RzQlQ2NlVGNmVjTjVPQ1d6L1d6clhueDFoQkd4?= =?utf-8?B?cFYrVTJLekNYcmhJRzFLK3hPemRtaG1TRm5CQWxaSklGK2MvNi9IUmJIZENC?= =?utf-8?B?RGJTaWw0dVNCaVA1YXRRUkxiZ0hoenp6aEl3b0duSm5PREU0UTlsVDB0K0Z0?= =?utf-8?B?aE16eWU1VFMwNC9JeWkwN1lMclZCMDhvc3NiVnhRYXlSejN0ck5kWWFnWFZE?= =?utf-8?B?alVZNlV2SmxxUkFpQ2tTcVBHOFZSN3ppMDRNSGY1cXhQNzRGQWZyWWk0YUMx?= =?utf-8?B?dkY4RGFNbk41UFNaRC9IeTkyeGRUZnIvcmd1Z3V3ZE80aU5PRUlNQ0VOSzV3?= =?utf-8?B?TDVEK1dHWEFndG50N0hacW5pTVN5cy9XNWwxckw5cDlTVXFsWDZ2VnUxVnpV?= =?utf-8?B?VTJpWDBpV2FwTjgveGkxZVpkb0ZxQVd4bGRzYXlzT0pNaFpnSGNxeDZNSDFM?= =?utf-8?B?ZWJtMWZWaTlJdnhEbmU0QWFmc0dEelc1VlQrZFVBQWVIa2NkRktRVVQvR2E5?= =?utf-8?B?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M?= =?utf-8?B?RUdnS2xpQVFIaU9wOEhrVCt3bTh3bU9jRzY1TU84VWtPamx6MmxwRTV6QVRQ?= =?utf-8?B?dmVkdjQ1RmcxYW9mV056UWlTUXFRcE5RTlVXL1k4cER4SzZuL3BtbFNIaDZR?= =?utf-8?B?cTRMckxwbjFUcjlzeUQvY29FdkVLdno4MGRmVC9lbUYvL1R4dzY0d3RpQ0hP?= =?utf-8?B?OTMrRHEvTnp0V3ZoK2ZXRkdQSGlEWGZSL2hJQXV2Zyt5dDBpYUJ3LzRCbW9M?= =?utf-8?B?bmVzUGNhZUlra1hCOUZBbldzSSt4YkNPY2xCSFp5MFZPSlZKQWNxcWZITU95?= =?utf-8?B?Vkp4QXJOSmJLcVByYmVMWFl5M3VoMklSc0xhcUY5YTBEY3JQTGRlcEMyUGw4?= =?utf-8?B?KzVoWExMcGJhYSs2aitwZHNSQkpjTTNPemRiNkRJQ0FQM0JSNmFQSytTQzBT?= =?utf-8?B?M3pDY3pLU0pZaFZtS0p5eVFsendBaGRLMkNhVGFmV3hZQkJ3YWxCOGZrUnRt?= =?utf-8?B?MDNBWVUvL2dwVENNOGFyaU1JYXg2UWl5aEdaYzEvTnBCNGVpaitXT3U3cEl1?= =?utf-8?B?bkV4S1EwK2ljY3M0MERYZEpObWdTMGFkVWowT3QrbWEwZG4vMnVyR2pFd3c3?= =?utf-8?B?SEd2b0dLdjhHZkdoNy9lS3YxNzlObFBZTnE3OXNIa0lPRlZyQzdvazdtZXBo?= =?utf-8?Q?ffgF5SHXgnH6Csr+0LMc/mA=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: 7ffd236b-be85-403e-0444-08dc9ce1e373 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Jul 2024 11:01:57.7288 (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: nzUm602UVUBTmvyUp10C3K0hlNFdBsqDT28lWisudSIqxhEDTe0F5rcRYY4ch5YlJOPeF8nL49mJGJ/v3AaVJrdpPvQ2tt5cZe+J5RDCFG/WcaeTHQlr+iJfsX9hPcMh X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR07MB7303 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: 1720177400986100001 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 --- 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 Nov 24 20:19:41 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=1720177375; cv=pass; d=zohomail.com; s=zohoarc; b=Js3vgNbATmk27RlS/9cp53HwZmov+dSC+r/UiJ7Oy/ze5nIRaGTqmQIl8s98ULTJNewhABoCeJbF2ey+ccj/NYszSyJpO8ZrrJllUNOw0ngZp2WVICbVHUPI7MHC42LuQRBvB94F3qZBHYa1xiBqve8QFeJ695aZBulLKKDjfq0= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720177375; 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=OSaq06YEpf0TE4yDv2Vg7mB2AzPZeqdCRli7T3bqPdw=; b=RyA8alAH36eTbcourr/1lcQ2X3QgyeQzzDdpwW0UCjm7AwHquXcwnO2O3wrpyVWI3juhOSLAGK9OPaWFYNDAXHdLNXFlwmSatjEsRTGL08CRyCrI8wDtBwqVHkxPPhXoetT8Yw1FwgdZBfLijKmNLn+WjVq0ezZQoxqTz3rHOS8= 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 1720177375678855.0710291870862; Fri, 5 Jul 2024 04:02:55 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPghg-0006Jx-E8; Fri, 05 Jul 2024 07:02:12 -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 1sPghe-0006I1-Vx for qemu-devel@nongnu.org; Fri, 05 Jul 2024 07:02:11 -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 1sPghc-0001TS-RL for qemu-devel@nongnu.org; Fri, 05 Jul 2024 07:02:10 -0400 Received: from mail-db8eur05lp2104.outbound.protection.outlook.com (HELO EUR05-DB8-obe.outbound.protection.outlook.com) ([104.47.17.104]) by smarthost1.eviden.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jul 2024 13:01:59 +0200 Received: from AM8PR07MB7602.eurprd07.prod.outlook.com (2603:10a6:20b:24b::7) by AS8PR07MB7303.eurprd07.prod.outlook.com (2603:10a6:20b:259::9) 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 11:01:58 +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 11:01:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eviden.com; i=@eviden.com; q=dns/txt; s=mail; t=1720177328; x=1751713328; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=OSaq06YEpf0TE4yDv2Vg7mB2AzPZeqdCRli7T3bqPdw=; b=kF8qC8Mcl6zHFh5zGFIF8a+DMgnWj5WcVa70fHCPxVQKrxJUcW/4WF1H K98znyXKETOVm9qMueccOsb2Vv631Sj3QsC6hXU1lmb0yFc8qWtWqHE6S /O9jUR7pLoACt9AuWsjVVYUYvhAAblfaf2ZiCK6/KYZ9+POGwEhSDUgBe kynJn5X7AkZJhhTAI1qomNpdu7Sm4u3ziORtn2iHzDMOLCpI4DrZKYTJ7 o+k6v/pn8vbor/gGtIFt5vNvdI1RqXJnsQxTf2sMWGHmFjOmzAct2zbmr sfm/qquXNVEFJfDr9ANiJWCcBV1z4q9A36FZHDWBBIZA3SI/qapksnDYl Q==; X-IronPort-AV: E=Sophos;i="6.09,184,1716242400"; d="scan'208";a="15949129" X-MGA-submission: =?us-ascii?q?MDELdEO0ckOqF/CCJ2pgPrUNKVnLZSHeHuV81h?= =?us-ascii?q?5wCHEhM2BF3GJao2wap3IYGJYC8d9J3JkxDB9j743Slinf+FdouwRkdu?= =?us-ascii?q?w1Y9xwHDNTm7gGWN8GTy6fkfOQqQrX8t7tijS0e5Pjc9WvlYABlE0D61?= =?us-ascii?q?H0g1M7zNGGDQDeWD8Crw17ag=3D=3D?= ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S8zARc2q0+tnaC5rOoak4mfa929Gql0NUkM1L/mRmSUMDqFiZRugYHcRx3/nHKEj9FmnI1NrY/AE7KrZSH49xVdgagLav2km6vkO8H9s3B9MQaPVKHLaSa5lO3KPGXSdR/FI+DRlcWgBaO2GaF+DBmhfR9yhpM6Bll70YBcd0ConNgMzEpGmZNjFMtizoQif+w74UHSW302tNgttvuhu/D9KFEyl5nehxNmNKnV6CNcKDFaILjbQiCfINzYDobd7bkq2B1VNGSeiwJvNgguocm4FzML8dK4lbXuxHygbvZWxNle7LFRfFIv9wS8t+peKJnVzFT9t3eni0GLVrYsioA== 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=OSaq06YEpf0TE4yDv2Vg7mB2AzPZeqdCRli7T3bqPdw=; b=hV42v3WhqiDnq1fd5KIY9imlPLcDFwMlhwOLudUwVbRYvABHfG1RsgXfcCBjosv6fZeG9h1mcygA8/bNqR4IvirQCAXVwl/UuKAieBBUhmqcjios4gYnmE2vlvbdGpk8tGVI61BimIbSdXA6uio0B9KERhYn875Jz8NbREkOYw6MF8k7QLVXFIEUUvDpml2LmBevhC3q+TAEcEgNDsi1NlTRa2JQsnr6Cdz0h6PmZYPNlZVawuP47tY115IEIqitj/4IsQI3ZyJR5ZepKXYd+T+XATZXMZrYWORSouzjF6CNgU5dYMOJ4VijholRL2eS1SFBf7QMNXk819i/oBX4eg== 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=OSaq06YEpf0TE4yDv2Vg7mB2AzPZeqdCRli7T3bqPdw=; b=VLKmbFUa5/A7lfoVX6QNRiFnS8U6SpLBZYP3FztIHiV6zvOQuTLtm1uae0R+CDK5ZbLKjZYS103+4TmYasQQWVDQPC0C2abjzhA69AYxJqk0aqqu/Aq10WEs57lEd1xRMl2mRAiIQc8gNaZm7q/fAcTcEmyxW9K4i0Lh3CVTo0kDQ0KDyQI1ywfmjGE+SkmwxwZZoUue7Ia38QJLFBl2EQagzrCz3dKrTdtdW817kACHSw+qoBQr5b2m1+YvgiWRMhXT71cqqfAp5x8GRnHT6i+cgVSViU2bUz+Jb3HNC+n2ElqC13p5U9u/axPAGBYnQNXA/+ZVX2QT+x/lwLseZw== 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 v4 3/4] intel_iommu: fix type of the mask field in VTDIOTLBPageInvInfo Thread-Topic: [PATCH v4 3/4] intel_iommu: fix type of the mask field in VTDIOTLBPageInvInfo Thread-Index: AQHazsrBYascOMgzcUiBvUTQcBllOw== Date: Fri, 5 Jul 2024 11:01:58 +0000 Message-ID: <20240705105937.1630829-4-clement.mathieu--drif@eviden.com> References: <20240705105937.1630829-1-clement.mathieu--drif@eviden.com> In-Reply-To: <20240705105937.1630829-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_|AS8PR07MB7303:EE_ x-ms-office365-filtering-correlation-id: 7a0ef729-7e27-4a8e-2990-08dc9ce1e415 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|376014|366016|1800799024|38070700018; x-microsoft-antispam-message-info: =?utf-8?B?dG1XbFFlK1h4TmtUQTVrZ3ZKbmI5NlVWYXhhckJrRFk2aHJrUDJpUjdqU3dB?= =?utf-8?B?VExkb2RDMUhSaDVzM0thYlNBcjEzWWtCZkFKam1hTEFIb3YrN1JpeWwrWjRW?= =?utf-8?B?b1ZyRk1IWHF6RWRVK1NuNUZLd3lXYVRYTERGUlVTeWlPV2FOa1ptWXg3SXkw?= =?utf-8?B?Zm0zQ05MZzNTK05aZlQ0dTNhQU5tOUxuamZXZTd2cGZkRFUxcWZCbWRVUnZl?= =?utf-8?B?THdzb3VrYkJ3YUtKWWM5WGZvSytTN2o1WVNHeUQrVmgvV2dac0FqTk45U0tH?= =?utf-8?B?Qlh1OUZETGtoUjBFV3VVd3BwcURCdS9JaWQvYlM1NXdpVnZOUzc2V2pjNGdX?= =?utf-8?B?Z2plU0NtaWo1UnBscW9HL0xsQ1BTaW1OUmJZQkFseXdGTDZiOGR5RUN5aGVT?= =?utf-8?B?NHQvOW45Q0psS09SMVhLdHZNTFp1TGRHYjB1cHpvS0NuWUF0Z3NoREtHVU5H?= =?utf-8?B?VzJiVzV2MEVGakZFM2xTMW9xQmpSNkRmZTUvalpFUTlhaWZ2ZGxGNzQvdnhr?= =?utf-8?B?RlJIZ1VVSS8zQmF3bnhSQTZWaUhYcWZWdXVjRW0xczZXQ3JrTWNkbkxKemVu?= =?utf-8?B?KzRhODlBR2ZIaWJlNHdLV2c0QUFSbWZrdEloRThyVWV3R0ZvOEhKODN0ZVd6?= =?utf-8?B?SDlBZG5qRmVHbTlGK3hwcDhudWUwQzJNQWYrR2d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c3lBeDFsNXcvNHVrNXBVbDNJaWUzNkJKSUlXSFRz?= =?utf-8?B?T3pGZCtOdVgvYnRKa3IyT1N0cW5JNWY0Qjk3TnIwY0c0UVBDSVd5OW5GRVl3?= =?utf-8?B?ZG1XNElWU0h4MHNWUkl0Q09nbllVZlJTa2MvM2tWYTVCVmNvOHdESXVxdUl4?= =?utf-8?B?a1RWdVU1dlRIR1FMZHh0L2lEZ3hjS2Q2U0lzR3B6V2xhZXdaTU1vYXhwamlF?= =?utf-8?B?c3ZiQVlGU1VLOTByMXA5N29oUldMV2tFR0hERG5GaDNEZFNodVdKcXBxM1Bw?= =?utf-8?B?MnZaWHVBdVV2R29EQWhKbDA5M0FnSDlSSUpKV3VvYmhVTFE9PQ==?= 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)(376014)(366016)(1800799024)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?cjVxRHFQUDVwV0xXTEhjeGp4VXVNNDlCTEVDN29uQjNwZ0hJamh4M0RtUUJp?= =?utf-8?B?K1Z1VmpweFBJR2tvRzZ3QkJ3TDkvT2EvNDVFa1N1ODZZNlRuOHhuVnN2WHUw?= =?utf-8?B?Uk5vOXZOVzBsNDhMZFV4bmYvN2prVjdiT1NWSDJyM0hIS2d2N0l0R3FmbUZJ?= =?utf-8?B?bjNlNm05N2packxyYWlhMmpBc2lDVEJIcjBYL1FHSGFmbVlELytrOHRxM0xl?= =?utf-8?B?Vjk0Wi9kWnlSTFVoc0RGRTN1OUVBL3Q0TUdBeWR1VzZYNU5zenZ2NFR6V0NN?= =?utf-8?B?eDN4NDNYRVNrNmwyTzVQd3NRcTJqRHRGTjh2ZGpCeHYvT29RSVg0MFkzUHZs?= =?utf-8?B?dlp4N2FGe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jcUtE?= =?utf-8?Q?HDHhJCJfbAokGLvZrSxe6So=3D?= Content-Type: text/plain; charset="utf-8" Content-ID: <8EEA1010084F264FA4F043D3AF8B381B@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: 7a0ef729-7e27-4a8e-2990-08dc9ce1e415 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Jul 2024 11:01:58.7402 (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: wHKx/EbFjDpd4Y6ju1/wHpqV3oHUlvVrBn0K0/OJIYCAJqilVyypnMh4iUAntz41uLjbhaPpT8RtnQBoALCem3d2rWeZZheuqs2giEtpB/dGUc+SncD7sAWoAhonFPne X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR07MB7303 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: 1720177377143100001 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 Signed-off-by: Cl=C3=A9ment Mathieu--Drif --- 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 Nov 24 20:19:41 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=1720177413; cv=pass; d=zohomail.com; s=zohoarc; b=LQ1EZfwtEbMG/oBuOAhI58b9tjTvdrUqL103HaVpz0m0OxdOdIhXf7IC5xc1u0m3wgLB3DqZ4E8LG2RTNesBQhkrnHm4mX60iKZr/5LclyRu2eVwZ6/AcilffNsf7IgD4Tpss2Xj/hjvxswGj9aNktRotS6qc51N+Oc2weQoAdU= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720177413; 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=la8b6EsER2myyyqfK0mnc02PBu9H7RQtt1F+MmsewQc=; b=ifEHqlG/aVdifL91L13SHfDm5uuHkAfoiB817Z+EGWTZAdPAXUxbpCl0q17P1E8qwHLOAEIXaDQbr0tN6Rz94xCiMMxs7nDa2StltVGa3RT14oKSSnzacDR8aS9ZxS4K4r7GTygPaX16AAnl8x0rGkcYQ0ubPQicP0mn0HPczww= 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 1720177413404962.8356084052015; Fri, 5 Jul 2024 04:03:33 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPghv-0006Wy-9T; Fri, 05 Jul 2024 07:02: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 1sPghq-0006TF-Qn for qemu-devel@nongnu.org; Fri, 05 Jul 2024 07:02:23 -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 1sPghi-0001Tp-RE for qemu-devel@nongnu.org; Fri, 05 Jul 2024 07:02:22 -0400 Received: from mail-db5eur02lp2104.outbound.protection.outlook.com (HELO EUR02-DB5-obe.outbound.protection.outlook.com) ([104.47.11.104]) by smarthost4.eviden.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jul 2024 13:02:04 +0200 Received: from AM8PR07MB7602.eurprd07.prod.outlook.com (2603:10a6:20b:24b::7) by AS2PR07MB9502.eurprd07.prod.outlook.com (2603:10a6:20b:649::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7719.25; Fri, 5 Jul 2024 11:01:59 +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 11:01:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eviden.com; i=@eviden.com; q=dns/txt; s=mail; t=1720177335; x=1751713335; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=la8b6EsER2myyyqfK0mnc02PBu9H7RQtt1F+MmsewQc=; b=Yk9clPNgKwnATra+AZdbg/p4YN5QVltoGXVGNeLJVq8oMbKWD/x1ziI1 gvelaf2+SYbFE9E78a7qunX4GG/CCbvkpq5s2k9PTpZ45tSTSsGJYDmVU LSvVQr4yNzGSSsmZgYElSUSOSIDS35PxLJsv4fmxBGjlMYJcrzFrK3jmo nB6Id9SzaoPdE8pbTnzjyCgcNa1Z8uSCfTdU0U/LSoSJr12Kfc3dNahVF tofh2rgdlF+564bF+yHz7iq4bT/Yw5eonBclg9jaXUMSkZTadCDBe7t4h 7woyoxvwXFL4dJ5pRMHx/br9o5Go5LaRRol2XCe0CjWTV+Doae71RU5ma g==; X-IronPort-AV: E=Sophos;i="6.09,184,1716242400"; d="scan'208";a="16056529" X-MGA-submission: =?us-ascii?q?MDHy3uUudlM5pFoU4fo48EyQ9kstlmK1+5CpBH?= =?us-ascii?q?mNpzrvdopxkoKQyWigHf3CztWdxtzp9XsQd227AihOHmgDn0iw4aBijx?= =?us-ascii?q?MHIpePeJZYXf4eGMaHxb3buEQVOCzDYhkmwfBNvLxIXkqd44SHpHZ8AS?= =?us-ascii?q?vhooBqMUGUtTAHMGrpGjoUog=3D=3D?= ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WbNLgvMRDz/bzwba75+Jr6K25BNrzo4243mA7YYtZ0rSxKPpNn/s/YuEIv3N+qhIuIsb0lI/cA21hPAdGhvBcsrxC0bXWTClEo/1T1g3tFU0py+742LJJMkgW/26zMKAtmzUj74Ti0o6BFQis/SleGzx5LOJP6SILdD+M9quvjcQs1bol5Vf/ickvrN1snZMNFKTpYH2QBPtZbcNU1aoPwjy2vEgFkukRt8dq9JEQFVqt0EVx4ohBP1uQTd3rQuq1kq1mQ6yeLo2bADEJwf7QKSpU4fav/nsWtv0QO0QtCMsWN0wCcx5hJAeAVNHcjTS9cmMWk+goMRaK3w83GFjkQ== 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=la8b6EsER2myyyqfK0mnc02PBu9H7RQtt1F+MmsewQc=; b=m36D5/QAm6VmOCn08qg0+l2wiadlSOxGRqlrl1d1nTdOGkU9g8hORW9M8pyhk/QfL9Apx2F/7nWBU8nAWrEod/JE0hn2pQfDA5rHIT+2byyBv6AvnyzTjWvd+GIRh9OkKm4tB/upe0KqX694udw2cxrbPy9JAl3lGtcmm7pkBxKDV74zIfRq7vdoSiTywX8qGWz0HHhj1RqCWu9ertJsLxC/oW2YgZ213VzWuadhAumqKqbp2iRRDf9qCRlj3ilIz8LegDOrk0rH8O2LVcqPmI4aNN6jRo9r3hZDW2LWl1cMND95J8bY/2kUvwlSNrM4JYd9ye7piXm5/JO2OrOT0Q== 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=la8b6EsER2myyyqfK0mnc02PBu9H7RQtt1F+MmsewQc=; b=R07i3oAujca48BoSbJZFJHsZnkmcvpTuuX2M/trxsD7EQSqCnPDJ9fb8JwvP5J64+jSaxVcreU5Euap4JFsKdiX5vmd5/JwulV5Pdsci4vgUOxxyRI3e2z6Op6czzjQ1NHxg+1GvlfWzEmvsGZpq9vtgV6o2iNbk96vrj3akxsXdegZ4xntUdG1ACgSSU4gHJHzC5JnjM8E+X7roHtoJ7nAr/m5MrRTWRPI/vrdV1GTPr+00qJWMsWYjaklVSDKtLXSMBKkvhJSBGX47wilyNUFghUv6yCra/UwAcYhkPK3Y6kFAntOxkqXK42dryL/bewtsYV/P9K4sFbJbgBxTJA== 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 v4 4/4] intel_iommu: make types match Thread-Topic: [PATCH v4 4/4] intel_iommu: make types match Thread-Index: AQHazsrBg81pTYUcukGJyjgjd47O+g== Date: Fri, 5 Jul 2024 11:01:59 +0000 Message-ID: <20240705105937.1630829-5-clement.mathieu--drif@eviden.com> References: <20240705105937.1630829-1-clement.mathieu--drif@eviden.com> In-Reply-To: <20240705105937.1630829-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_|AS2PR07MB9502:EE_ x-ms-office365-filtering-correlation-id: 3f7bc1ef-9fc9-40d9-1a94-08dc9ce1e47e x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|1800799024|366016|376014|38070700018; x-microsoft-antispam-message-info: =?utf-8?B?bmRteW52cVhvSXF3ZUlUdGREVjZKZ2Fra3dzMlM4d2pHUUh2aGVSelZrMHZY?= =?utf-8?B?TWZnVGZpNEZWS3A2WWgzeGkyaEVFVXBoZUhkMHN5RmMyNm5tSXZ6YmxBczQ0?= =?utf-8?B?cEdJbURrZnNLZXBSMGlldzJpYUQvV1M4Nk1aMG9jTmRzSHVMblhXZndrTGd3?= =?utf-8?B?Y3RHeDlBZHFoak1FYm1MT0FGOEZZNWNTTjFIOTI5Nml2dmlhYmFsTlIxeVZ3?= =?utf-8?B?V1FPWFRNQ0RrYlFkOW44M2E4cjdWLzZqTlhiNEZIenBEL1N4emh1eGdSYXd4?= =?utf-8?B?YllmQVplOEI0R0VoTm02SnJDZnVncG9yOEMvdzBEdU1sUW1kajM4VWEzV2Z3?= =?utf-8?B?eVAzaGptVTNseHNYaWROSHhlN05MMkpma25hdzhsL0dpRHBBUWR0YzNzZmRD?= =?utf-8?B?NEhPUkVXK0ZiT3plUHR0NU0wSVd0cFR0K1BxRENxSDRHQVIxRGplRlVzOFFn?= =?utf-8?B?M3VoTWZRZWl3WXEycVprMlVxbGVzVFNackRNbzlMKzBJODJjV25rQ0E0TVVH?= =?utf-8?B?aHB1cmt6TVg3ZzlrcUdRT0RMNVZMeDFMZDZwdjFGNC8xbmhJdDM5cVVXOHRy?= =?utf-8?B?WHE2aWJ1RUZJL3lxbHVjRGlqWDhvb0hqM0FHeEoyemxjTGRIYXQ3b2VBMzZC?= =?utf-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WlJ6TEhYdjFvS0Vvb21U?= =?utf-8?B?UnpsY3RrQlNDL1FETnh6d1lZMFAwblZKamlQcE14clFQYUphQUtnVEFxQnhy?= =?utf-8?B?MFllYzAzYkV4VFRyOWZKRFNXVlI5STFOZWZUYnVKSVpaNy9TS01pWERNdkZN?= =?utf-8?B?dHZVWVNnYk5LbjZOZ0xtNlRQaGFPSzFaaEtLVWlmTXBDRGVaaXZvY1JnNjdV?= =?utf-8?B?K00rSFZqMDROTUNPd0o0Q3RveE1GVmdCVGp1SllOYTdQYUd3a0RZa3VySFRq?= =?utf-8?B?SVMyY3QydFVNcjZ0Y3VnWGVHR3cxWTR3YmkxeHNlcHIyWHZhUWZTUTVBQjAz?= =?utf-8?B?d21jWlNwTVcxbGdmMHhhMm0wOXhVK091ZE9hd2hoVzhDZ2c9PQ==?= 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)(366016)(376014)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?MHNvSkRmNkFyTVdkRG1jNHJSeDd4TEFmSHZSbXRwQjJDWkpUMlZCbGxuUmtp?= =?utf-8?B?c1h0eWZicFhTT0pqa1pyeStjSDZnSVFib0ozck1hT1N3L1ZveXlTQjdLaEM5?= =?utf-8?B?UFF1SGZWS1kzblNoNlM5ME9NeE9uZUs5d2dzb3d6WjE0Wm9pM3RhK1NXeHJW?= =?utf-8?B?SWYxdzUzSktwZjg4WnU0S0hZM09MMmliQVhyT2IrYW5zSCtMQTB1RUFpRnoz?= =?utf-8?B?R3FrUFlhb3hGdjlwU25FNzcyVWJnMWZCKzdNZUlhZER0bDRSbUNybTlRdi80?= =?utf-8?B?aW45RnpoMjl6eEtyVWNqYlV5cjgxanFCU1Nod0xQTHFndGx2L3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Z5cjVMdlNMcnBrTFZxOE1JRURZL0FMV3FLN212ekRo?= =?utf-8?Q?Y5nYMG4k91Kx4r8kVPK10wQ=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: 3f7bc1ef-9fc9-40d9-1a94-08dc9ce1e47e X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Jul 2024 11:01:59.4215 (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: 5FOMf2aYdpCjxOalsEVa8iLsRKsqjE1W72yF1iaYLmydGzb6mfDAVTiqoJBLn3CAxMEeL/X7dKBwVLgZ9pVvEvRAzKuxPNHdokU7Nqk7pQrWCirSVEO3/7T+x81CZges X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS2PR07MB9502 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: 1720177414881100001 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 --- 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