From nobody Sun Dec 29 02:06:08 2024 Delivered-To: importer2@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass header.i=@eviden.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org; arc=pass (i=1 dmarc=pass fromdomain=eviden.com); dmarc=pass(p=reject dis=none) header.from=eviden.com ARC-Seal: i=2; a=rsa-sha256; t=1720505987; cv=pass; d=zohomail.com; s=zohoarc; b=ITTvgDss4iHT8WkPWTjd28yxaRVujwCx6u6df2Ut7TA7bGjMLxCAzDtwqzOIunB199hn2o92h9gYg6h3BP8ODLOekuwu7esvMeEXK4v6GknHFq83oZRtvFCU0ejorUjk+rkoDBRnY+s+gUmAyBcUbJkt+mIsfrP/Qo9RuhDR/x4= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720505987; h=Content-ID:Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=u/EE/MVYvmwVs8wPu6Il6DxMESvsWjmJtHWqiv7M++c=; b=OqccrniFmc/sgJLMxABuxlfkzEUy+f6uGaIOKXdBveM7l6aUGoKXXbJRf+E9B2IriZUud2jCXnFBAmCjJzeLEJBEA27qmZSNm3FkJTAFID1n+dA20ePiyebaptiYBNgeLjxHezpTxM8kxc5yXwcjA4I+VYFZfVzQ1TUiEolTFeo= ARC-Authentication-Results: i=2; mx.zohomail.com; dkim=pass header.i=@eviden.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org; arc=pass (i=1 dmarc=pass fromdomain=eviden.com); dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1720505987400127.38541859194481; Mon, 8 Jul 2024 23:19:47 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sR4BE-0000qx-BG; Tue, 09 Jul 2024 02:18:24 -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 1sR4BC-0000l1-MX for qemu-devel@nongnu.org; Tue, 09 Jul 2024 02:18:22 -0400 Received: from smarthost3.eviden.com ([80.78.11.84]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sR4B4-00080Y-9D for qemu-devel@nongnu.org; Tue, 09 Jul 2024 02:18:22 -0400 Received: from mail-db8eur05lp2104.outbound.protection.outlook.com (HELO EUR05-DB8-obe.outbound.protection.outlook.com) ([104.47.17.104]) by smarthost3.eviden.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jul 2024 08:18:08 +0200 Received: from AM8PR07MB7602.eurprd07.prod.outlook.com (2603:10a6:20b:24b::7) by DU0PR07MB8466.eurprd07.prod.outlook.com (2603:10a6:10:355::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.19; Tue, 9 Jul 2024 06:18:07 +0000 Received: from AM8PR07MB7602.eurprd07.prod.outlook.com ([fe80::fbd7:ca71:b636:6f9d]) by AM8PR07MB7602.eurprd07.prod.outlook.com ([fe80::fbd7:ca71:b636:6f9d%4]) with mapi id 15.20.7762.016; Tue, 9 Jul 2024 06:18:07 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eviden.com; i=@eviden.com; q=dns/txt; s=mail; t=1720505892; x=1752041892; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=u/EE/MVYvmwVs8wPu6Il6DxMESvsWjmJtHWqiv7M++c=; b=c2j3YLxpTs1D3C3/w6uJAdjMbNrPqsZFBDiXTK855uGoq7d/hjivey2N gmWw/w3M5LZ5GzIreFohPLTc9MsF9ngrFN8LUo2oi+8GtQ2KjebGl8TrQ 6pv5MQSi8cJqMsd8P6Mr2ba4YKRkHlZTLbc6F6a4c7AfjDVioDusKOiLO 5BKOMfHsESf2CoqUA7rbXHdi5oEwXuXWgxnibmqLDIDk07k0DP53P97FB QHQktWfXc+HjNxs2oFXyGg5D7tpWpYaC3H6ukrO3aqCaPxsyESqx4gJYy sYykCphttpQyRIzY9A2XqcZVtKuRnUWmzo6cwPoeY7nECUQFGzYYVwmrC Q==; X-IronPort-AV: E=Sophos;i="6.09,194,1716242400"; d="scan'208";a="16131806" X-MGA-submission: =?us-ascii?q?MDFZkqDnocJs0Ve7nOf5mK0LcPgE+m5APfHnug?= =?us-ascii?q?irGUpw6OOBO7dZ4uNmwwOS0OVXXyV+If3x0YJIt2osAXlDSJ1/F+yZG1?= =?us-ascii?q?ZqUbj8/Mt29liI47xn2HYTdIuEpxVy1A4QMHGDUdwMwEAOxj9bn9u8F2?= =?us-ascii?q?2zW8LIEGWidm3RLMdW9Xh9bg=3D=3D?= ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=mKsznQQ4g39mbFBVWIHPQZtUXO29S/9KnpUsIVNZBq1OMpDrD6v+mB91WEHvWZBWrCGNKoZNFnF7GwrmhFDre/ytlzyAGw5GKA0KCa0PE4wORU52BE61wv82X++/swzgYNocgaTMl1Fk2jAgvyjK7S/QA41xQYSO+XBONYZQie3vDlpIbc2xRFuC4puPWxpGmV8V9YY8ytel6fhB0RVdpBeop1JoVgidCci1KFQVJuYJSRdElHaxldVZvK2k8V/rww3Y52Ac3IJyeld22TcLSMBhHPnKWLmXRu4zDlV0Ulgc/ecSQ69rGaQubThGKn75YlMoig/gtpsnzAYAqhzx8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=u/EE/MVYvmwVs8wPu6Il6DxMESvsWjmJtHWqiv7M++c=; b=e2fyPuoU3hoKwmZA6bzmrgDiAtgzcS5SOmD2KzF+D9cE/VYAy6jR5/tei3zum2nZIbs7yAM+Z1pP456G48pma6QKZ+W4yzV8LlfeUh/h2eVFEE81lwEbu5sjMY1acsaYcA2gCca0bppaMBJHfJ4yw28as/3ZecUWes1hafgofg7sXrP8sFA7oSmR8GrqSDbtG1AGN4BqYGdJjsN5GbPi6pNm1GdWp+IIqF7vxZyfhs5Nky3tAfYPVcwKahXb1xgLNhwDeiP6klIFKe+w0oHvv/e12ff4/dTHoPOcF6SGgZmB9iE6SOcpGUsymKyfvJqnqeOsmqXaEPIP9DGQ+CWY0A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=eviden.com; dmarc=pass action=none header.from=eviden.com; dkim=pass header.d=eviden.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Eviden.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=u/EE/MVYvmwVs8wPu6Il6DxMESvsWjmJtHWqiv7M++c=; b=Qwh6Ld7xr6W8HTtP3L6L+tuylo+HKiKeA0x4Y9m2kHLut4BL4tfSYA6BfL0NbxU0x1RjxNYW083OQzpGOeGsh6bFFMSu7MXh+fauLXpPZ6DbjmWOJwxeeLKZq6J0AcgJHZcmi1vv7ugkobvlL/X39urKupR8zsu3rc+LULEt763GOCumXnkte/y/wK7daaBi2rpmNeh1hgtzqwv5OlEXS3LmpqQF//tUxkwVrUbpeZ78OPcAUf7TIqtqxWjuRU494wyb47V/ozC9DzGyO2NlziQCrOHOCU615TfFrJsUkqf/IPyFPZ57+bZjo+q4SmQ3yENCSuH4y+pg1VMjE05hOA== From: CLEMENT MATHIEU--DRIF To: "qemu-devel@nongnu.org" CC: "jasowang@redhat.com" , "zhenzhong.duan@intel.com" , "kevin.tian@intel.com" , "yi.l.liu@intel.com" , "joao.m.martins@oracle.com" , "peterx@redhat.com" , "mst@redhat.com" , CLEMENT MATHIEU--DRIF , Minwoo Im Subject: [PATCH v6 1/4] intel_iommu: fix FRCD construction macro Thread-Topic: [PATCH v6 1/4] intel_iommu: fix FRCD construction macro Thread-Index: AQHa0cfDyRBjQJXZs02vrGVT0F2j9A== Date: Tue, 9 Jul 2024 06:18:07 +0000 Message-ID: <20240709061756.56347-2-clement.mathieu--drif@eviden.com> References: <20240709061756.56347-1-clement.mathieu--drif@eviden.com> In-Reply-To: <20240709061756.56347-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_|DU0PR07MB8466:EE_ x-ms-office365-filtering-correlation-id: ee56422e-ddcc-4e86-4998-08dc9fdee621 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?cE5XRFhsS3dZOWNwSlV4eDZLSm1ZQVBxZDNsc2pubDZCTzBBMkYybkQ5RGdm?= =?utf-8?B?azNMZytiTXdzckZVa2lCdUpFRmpMdGRjSTg4YytlM2QyekU1Zmp4T3k2djV3?= =?utf-8?B?R0tzR0NrbVdpd3N6SWhSNkxlR0VUbEVTb2lCVEVyNzd6VTVKNXlvT3Q0dVMw?= =?utf-8?B?NjNucnlmVy9LbWZoQ0cz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prd07.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?d1N2TDRpaldERytYTjVQVUU2clI4VkN5ZDJVRjZ5T2Rhb2FuYlhLN3Z0TUdY?= =?utf-8?B?TGFPS3h2YVNNUkE1RnhxSHdlTGNxRURiMWVIZDAxUDhjVGRlME5uMjJ0ME0v?= =?utf-8?B?RnNxaVlzNlJBUmlPQ1lIWHZ6TzVuMGVNdWpuZHNoeEIyTHdWZlFTeDgwOWJF?= =?utf-8?B?Y3pXR2RjUHFOVEpmWlJ3WkNLS1hMMXhBTk1VWmhpaHBiTE9GSDZjTEIxNVZC?= =?utf-8?B?cXBpa05UWjhKM0N3RTBvV3MzbklKVDdmQ001MHV4MDNFdE1RdExMb2c5dHpV?= =?utf-8?B?T0E3OUM0OCtvTCtCUWhFNjFvWi9SYTlSMXlqQjZ2LzRUUitaYndXenFTK3pv?= =?utf-8?B?VUw4RnVZVHBQRHV3RVM0MXM0Q3VzM3k3QUx0S1RraEhnWWFibkN3WG53dVJC?= =?utf-8?B?NU0xTElVcW1MVjFjWlBEZWFRN1FFVlR0cFBYcWJsbG5lUTNEQjYyZy9KaHhX?= =?utf-8?B?ZHhyckNla2tEYVBWbTdVT2Naa3psTkVxNmhOaC9LYjg5ekl1VHFQNnBRZFFx?= =?utf-8?B?ekU4WTJYREZmSWZ2RXJlY3JlVGpRRW5Qc3Q4SG1QVDF2TnVpMTJRMVdHYWp3?= =?utf-8?B?MFpGRGRqWngxTkFqMGlkbExaZU1MNTA3d2UwTGxGaHoxK0RSekNKY0l6alh5?= =?utf-8?B?aEFYK1ZHY0Q5R1J6TEVzR0ZZNCtKSGVaYzZHOEoxdk9KcTQwVk5YQXVnOTky?= =?utf-8?B?U0FNMVk0Q3dZWjY4ODZHOVNtWkM0QXo1dkl5Y1pFZC8rU2ZvdDZ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S2NTcDZQVEpiVWpEQ0FlUG9NWjJp?= =?utf-8?B?NVZZM1pqYmNvcDZJeDJIOVh1a2tUY0tSY0FTeWhXVkJnSFlxejJKWSt4QmE1?= =?utf-8?B?R2EwVXlndkJKeGRkUkI3ei9XR0p4TlptaU1pWW05QVpabzNzNDErdFcyTGtu?= =?utf-8?B?b21aVjdPSzlrUEFjTXI2MEJzSURTT2VqTDJQL2dwakJya3FnZy8rclJ1a2wx?= =?utf-8?B?QnB1b1VFMnZwcDYzczMwV0tsNGY1MWhIc2hoWGQ3bkVweGZlRE9sQ0IwdWVO?= =?utf-8?B?di94emg5d2E2d0RMV25wYVk1UHUvaHZoaVVOYnV5Zk9Gd1dvZlcxbDgwL282?= =?utf-8?B?L0htRE42a3ZHMnBmL09NTW9idDBiTW9yQ0dWWUNQeDMyZ0swbjBFVmpWTEJs?= =?utf-8?B?YjBoWUxqaEQ0bUQ3Q0kyN3luL3M0cFFPMWEwSnNESHM3TTd2NUpJYURuRFZT?= =?utf-8?B?S2RrZ1hCTFVJSFRUNFh3VGNsdmI1RFFsNjVFa2UxS0JkaDdWSWMrdDdsZmZq?= =?utf-8?Q?UOqNY+LcAxHrFkHhieKFnAE=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: ee56422e-ddcc-4e86-4998-08dc9fdee621 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Jul 2024 06:18:07.1829 (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: HB9AsLjF9b9QPhovnEWOyT+8s2SOl2+w2D6X4KUPL9CTJP47Mb2xJohQoq3UpE0HtEh/rYhiAy31bznWy02Ap39hWNpPbP6ZXfPGq4bVUMxuMWtpgmKfm7CM2pDIg4BN X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR07MB8466 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer2=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=80.78.11.84; envelope-from=clement.mathieu--drif@eviden.com; helo=smarthost3.eviden.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer2=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer2=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @eviden.com) X-ZM-MESSAGEID: 1720505989450100003 From: Cl=C3=A9ment Mathieu--Drif The constant must be unsigned, otherwise the two's complement overrides the other fields when a PASID is present. Fixes: 1b2b12376c8a ("intel-iommu: PASID support") Signed-off-by: Cl=C3=A9ment Mathieu--Drif Reviewed-by: Yi Liu Reviewed-by: Zhenzhong Duan Reviewed-by: Minwoo Im --- hw/i386/intel_iommu_internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/i386/intel_iommu_internal.h b/hw/i386/intel_iommu_internal.h index f8cf99bddf..cbc4030031 100644 --- a/hw/i386/intel_iommu_internal.h +++ b/hw/i386/intel_iommu_internal.h @@ -267,7 +267,7 @@ /* For the low 64-bit of 128-bit */ #define VTD_FRCD_FI(val) ((val) & ~0xfffULL) #define VTD_FRCD_PV(val) (((val) & 0xffffULL) << 40) -#define VTD_FRCD_PP(val) (((val) & 0x1) << 31) +#define VTD_FRCD_PP(val) (((val) & 0x1ULL) << 31) #define VTD_FRCD_IR_IDX(val) (((val) & 0xffffULL) << 48) =20 /* DMA Remapping Fault Conditions */ --=20 2.45.2 From nobody Sun Dec 29 02:06:08 2024 Delivered-To: importer2@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass header.i=@eviden.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org; arc=pass (i=1 dmarc=pass fromdomain=eviden.com); dmarc=pass(p=reject dis=none) header.from=eviden.com ARC-Seal: i=2; a=rsa-sha256; t=1720505982; cv=pass; d=zohomail.com; s=zohoarc; b=OGa1x3Hwgo0VPL6uw5JDGf4K9t0kvWJOJliMpQ+amsOomFs3p3qFQunaXrJHhqKllOvup0ynY9+sWSN9kcOZT2G2UWNVvxOE+YwtFoB5wWhA4sUrbQWymjvsOVBqR+WI3ak83HbztlNdkD5nQaHKTZwtHBmiFzjiO+SY/TPsU/k= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720505982; 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=DyEyFJrO9lIOagX6ucF6+QC5h8iiBFYHP6dorlEqKw4=; b=iYvqKuXj85Kk/OlMk+EOxzJcYnrjfJlf97D/iSrAr2sPVe8AHN47+kqjTuW4m5ZqY47t6R0AZck1j7iojrHgQJSimZmuCwpRMknA+LGZSNN345rbxcRrOiVDfalbEoWoNIT+45Kq6krY05ZY0URJ2cYTCRM3CRXGtkzws00WVCw= ARC-Authentication-Results: i=2; mx.zohomail.com; dkim=pass header.i=@eviden.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org; arc=pass (i=1 dmarc=pass fromdomain=eviden.com); dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1720505982057869.3628555750108; Mon, 8 Jul 2024 23:19:42 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sR4BH-000101-7N; Tue, 09 Jul 2024 02:18: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 1sR4BE-0000uD-P8 for qemu-devel@nongnu.org; Tue, 09 Jul 2024 02:18:24 -0400 Received: from smarthost3.eviden.com ([80.78.11.84]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sR4BD-00080Y-1E for qemu-devel@nongnu.org; Tue, 09 Jul 2024 02:18:24 -0400 Received: from mail-db8eur05lp2104.outbound.protection.outlook.com (HELO EUR05-DB8-obe.outbound.protection.outlook.com) ([104.47.17.104]) by smarthost3.eviden.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jul 2024 08:18:08 +0200 Received: from AM8PR07MB7602.eurprd07.prod.outlook.com (2603:10a6:20b:24b::7) by DU0PR07MB8466.eurprd07.prod.outlook.com (2603:10a6:10:355::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.19; Tue, 9 Jul 2024 06:18:08 +0000 Received: from AM8PR07MB7602.eurprd07.prod.outlook.com ([fe80::fbd7:ca71:b636:6f9d]) by AM8PR07MB7602.eurprd07.prod.outlook.com ([fe80::fbd7:ca71:b636:6f9d%4]) with mapi id 15.20.7762.016; Tue, 9 Jul 2024 06:18:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eviden.com; i=@eviden.com; q=dns/txt; s=mail; t=1720505901; x=1752041901; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=DyEyFJrO9lIOagX6ucF6+QC5h8iiBFYHP6dorlEqKw4=; b=nGmanSTIquY+HgDXraMykscT9F+Kpdu8rbRZ48K4ZwAP4Zie0qtXYp5k 8+gY5Gu/RQPg8M3u4/PavgUwNdMYmjOm6UAnVEm0D8uU6AlqqtXNJ/XV2 mM3PfO39dc+3rz6+t+IgABumKbAkjiYRzvMYxUzQ6SkVMkIZrLSKYQS/t VJqoeHjnPJ1tihjg3Jn3IHI/Gzh9naF0IQzquQ2oTzVIVzqErCRrcnM1z Tevkc2vR2ie1DOQArfPD6/Dvdls7iaMLUkOgUQkHrUAHeEdsuWmJtGBZS 1OHIPDeX1e95hcSPNqpIBgEi+f4xVecyhGt5jBOrgnyWgovyrznFxzGFp A==; X-IronPort-AV: E=Sophos;i="6.09,194,1716242400"; d="scan'208";a="16131807" X-MGA-submission: =?us-ascii?q?MDHOC8HKFkZaFW9W3CvsYY44beo3RaMb5aF3jv?= =?us-ascii?q?ywPKbHCqUptO4+LpUuQxJvT2koVGpecNZKW2IX7ovQNfwtF/bL0vkcvv?= =?us-ascii?q?rrOqACiFmTpJ6Gc4Vs4rex3JlJlmDEPmFfHbasw48IrxSQLZD/Yohsaz?= =?us-ascii?q?c1m8gidrc23/VhPJgVSdHiCg=3D=3D?= ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=mHgMR27dUVp6cnBvEI8vPh+NNEIspQtnvOrGUWOAAIZrLLKWkN5u50OOOp1hCQLJtVHEP+58PCO77Y3+nqYIMJ8yyOURSaFQzF77Ab6mB4O23ATU16Evylny8XnHIQ/+HqzAsHVVJRJY0AVd5C4+OWyFnR6qLVxq2bwyt7BQ6O4P4jRezFNAElmRztw8RH8y1+PMaS81GrPuycLh6K/+Yi+ACpXnAWewxOhwGmBzQvo4+TckcA6uQn373Ls0k4ZKzF4GVjXR2UI7XcYfA82K8WQqVeZyXBvzJ6+xUXJTMHnWIVjLci9uz8OUVUYyxWrzO/pRopOJnBZhdEoc6rjpnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=DyEyFJrO9lIOagX6ucF6+QC5h8iiBFYHP6dorlEqKw4=; b=ZKWhoAYXjLF0ESBW9ihEgHihAzWToktrrs7wJbmWMsvWRlGWmh86RqAnsPOlkxFml+PlnFGX1ufKla5r56nXlbj7lt3l4yinpvq1DHvSWv/0B6+AS2NNuJCqHsUuMthydta7hQfhqV7PU241g1wcGs/sMj2EdEAKVFll8cHSZyKZf4HEIkBi6Mq4SgQ0bVfu7x7Rm428DT5Edu5Ahj3fI9Q2/QCoQv53duyw3NJNvz0uIaxAR0eaHq5sxjS3nj6rgNyRhuNetSgnSn7hLKzdImhAmXYJmYn3mJDqy1i5x7Q/TlCXagna2CDfyyi6e0zASrUdpBCSAiaIKL0Kk9G9aw== 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=DyEyFJrO9lIOagX6ucF6+QC5h8iiBFYHP6dorlEqKw4=; b=VtKmnwTeXkKhobDSevVHcOH9C7Gl15p9W8sY0x0GW6yf3GdTggY9FUZeOmDJ0XZU5JiRHVFmKYXYTcApnBzoqFet/3z2LD7fqK3WtWRXuZgFyjHdvE+2oPUGpD28wRX1DBKJGIX5Z2N3ftK3rdPq0hcoKWAfzrMM6ZHTuE2Jx4mCkwIjjNx1W0Dau/Fck9urmidO2tuTC2ceRfP0f/PYIgZ4uGuZaYK0WiHfl6ubop48nPAGlI51mTMKz4i9MdPSMw0ITTUUydH8ox5pqSHpQcdyTPA+75OkZV92UTnyrl0vTMdkPxETKcaZbEo0iXqpJM6EY1wOr7tKZRtIZykbOA== From: CLEMENT MATHIEU--DRIF To: "qemu-devel@nongnu.org" CC: "jasowang@redhat.com" , "zhenzhong.duan@intel.com" , "kevin.tian@intel.com" , "yi.l.liu@intel.com" , "joao.m.martins@oracle.com" , "peterx@redhat.com" , "mst@redhat.com" , CLEMENT MATHIEU--DRIF , Minwoo Im Subject: [PATCH v6 2/4] intel_iommu: move VTD_FRCD_PV and VTD_FRCD_PP declarations Thread-Topic: [PATCH v6 2/4] intel_iommu: move VTD_FRCD_PV and VTD_FRCD_PP declarations Thread-Index: AQHa0cfEhe7Ej2szhUytlU9cUcJt7Q== Date: Tue, 9 Jul 2024 06:18:07 +0000 Message-ID: <20240709061756.56347-3-clement.mathieu--drif@eviden.com> References: <20240709061756.56347-1-clement.mathieu--drif@eviden.com> In-Reply-To: <20240709061756.56347-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_|DU0PR07MB8466:EE_ x-ms-office365-filtering-correlation-id: 7d1c782e-b4f5-4236-11a8-08dc9fdee69d x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13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?= =?utf-8?B?WHBuVmdMUVIvNEpuTk1BU2VWU3ZnNVA1dXJUZkNrTHVmeUdJNDY3dmIwNlpN?= =?utf-8?B?dU9MdW9GeHVzdUVuM0NRUGhzR3cydjBrdXBDejBMZmZYcm9lblhrZWRBVWxv?= =?utf-8?B?aFk4dG95L2JwUUhpWHQyMWlVWGpQejVxeFZ1N1A4U3BpQVE9PQ==?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM8PR07MB7602.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(1800799024)(376014)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?djJocE1PVExHQ29vUlB3aFhlc0U4bFUxZ3NISVlobmNweVhUb0ZWbE5HdDIz?= =?utf-8?B?ZEZQN2IxcnduNjVjYyttVk1XNy9YWUl6Y3hKcWVzaElNRTNyeE9IRGNxSVJr?= =?utf-8?B?TjJpblhISmlNdUlxamlOamFWMWlCdTJEUzdUL0Y5dVB0REd0Y1FQdWRpMWU3?= =?utf-8?B?VVJvanJiekJEM0ZyWmNmU1NrdGt0WFBVc3FSd21ndWxYc2hFR2NXOTRRRHpY?= =?utf-8?B?aFMwWlJqbFRKQkMwOTNhSDNXZUlsVWsyZEQ0MWFjd1ZMdjNsQ0MwLytvTXFE?= =?utf-8?B?TVFDSUkzZXBkdGN2c05GQUp5QXhZWDl2VUdnTFdzTFFnSFZVZ2JRUnJFYmxE?= =?utf-8?B?cnpvK3Vob3B4cWNhYm8vbDAxTlI4QWNRNUJmMkVjRnVKdlFrdFpvalVWS1U4?= =?utf-8?B?cVE5QkJhOVRiVWl2ZXZRZ3ExbjErQi9CQnF2MVFha3JkSysxMUh2RXhpQXBm?= =?utf-8?B?ZFh6eGpPNERLMjdSMU1iQUFxZm95aVVRbnhIc1NtM2ZTZ0NCNE5NYzRV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ZHl1emFiMy9SUHM5S1NMWVVk?= =?utf-8?B?bXVJVmJKYmFTUHRWYzlYekZFYjkrb3Z3aDArNk4xMW9TdUNWNURZTDJSUitt?= =?utf-8?B?dVlzR1FFeE91dER0QUpyK0ZpQ08rY2FTbDN5ajQxV1MwT3RrWU8zRE52THds?= =?utf-8?B?REJCYVZXVWJGVTFUeVIzcUplNVZabm01U1JmeExrMWcxeVB0d3RRb01aVjM2?= =?utf-8?B?WGpEbHZ1ZmZVQlRQS1pXa0hHckdlUU9hUHV5ajhwcEtCVFQ5Q2gvTXpQVnFz?= =?utf-8?B?c1VIOHBKUjRDYTRLd3p4V0ZGSEJaekxrTXhRQnp5Y3hOOG5CcW11eVg2bVQ0?= =?utf-8?B?YnN4NVRWSTVobUxUMitPWTVjeWJqT3E0VHVvNSt4QUVELzBRekZBeElyME5U?= =?utf-8?B?RDZZVXpSSGJ4MktBQVdGK05JOUdybjBFYndUSjd3N2tzVUtHaFdZZCswcVZF?= =?utf-8?B?dVVWQTR6VkN6YytJZHFoUko0NER1Q1dlMWdreS9uVjVmeEljRVNjYVU1cUxu?= =?utf-8?B?Tnc0YjArUDgwSmhsc0JSNU8zYXg3ZUJGV0VDSUsrWnpNaFpYQXlEV01RTnZk?= =?utf-8?B?aDROVnVsS29qQ0xoRmF2Z05HbVNaSzdud0tTNFR3NU9kVnovNVhxaitoR1pQ?= =?utf-8?B?UE52YXRBdGhNVnQyVkJmSk5RZ1RLb0hqZlNDT2QzbzRFdGVGb0JwbndaRXhV?= =?utf-8?B?OHQ0Rk1DRnUyOHNZT3lMZTBkTUx3eGxTWTlOa2F5UHgxSSsxKzVNdXVGVk9P?= =?utf-8?Q?xsY+9biFIv/4TTwGSGCnIKU=3D?= Content-Type: text/plain; charset="utf-8" Content-ID: <7DDA7387EB6BCC4AAB7D7B3D52AA116D@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: 7d1c782e-b4f5-4236-11a8-08dc9fdee69d X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Jul 2024 06:18:07.9971 (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: sUnFlVozi5rQl+Hem5AquM0chwdq417ie8vPnSqMqZ7B/Wui8vCeRCqyFOPhcnEvIz/kR2RuH2VY9qUQrsAmD03jGZXh8JY5+FDd7hUNv4gHZt9DD1b2Rq3qvlxMwY/U X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR07MB8466 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer2=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=80.78.11.84; envelope-from=clement.mathieu--drif@eviden.com; helo=smarthost3.eviden.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer2=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer2=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @eviden.com) X-ZM-MESSAGEID: 1720505983567100003 From: Cl=C3=A9ment Mathieu--Drif These 2 macros are for high 64-bit of the FRCD registers. Declarations have to be moved accordingly. Signed-off-by: Cl=C3=A9ment Mathieu--Drif Reviewed-by: Minwoo Im Reviewed-by: Yi Liu --- hw/i386/intel_iommu_internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/i386/intel_iommu_internal.h b/hw/i386/intel_iommu_internal.h index cbc4030031..faea23e8d6 100644 --- a/hw/i386/intel_iommu_internal.h +++ b/hw/i386/intel_iommu_internal.h @@ -264,10 +264,10 @@ #define VTD_FRCD_FR(val) (((val) & 0xffULL) << 32) #define VTD_FRCD_SID_MASK 0xffffULL #define VTD_FRCD_SID(val) ((val) & VTD_FRCD_SID_MASK) -/* For the low 64-bit of 128-bit */ -#define VTD_FRCD_FI(val) ((val) & ~0xfffULL) #define VTD_FRCD_PV(val) (((val) & 0xffffULL) << 40) #define VTD_FRCD_PP(val) (((val) & 0x1ULL) << 31) +/* For the low 64-bit of 128-bit */ +#define VTD_FRCD_FI(val) ((val) & ~0xfffULL) #define VTD_FRCD_IR_IDX(val) (((val) & 0xffffULL) << 48) =20 /* DMA Remapping Fault Conditions */ --=20 2.45.2 From nobody Sun Dec 29 02:06:08 2024 Delivered-To: importer2@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass header.i=@eviden.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org; arc=pass (i=1 dmarc=pass fromdomain=eviden.com); dmarc=pass(p=reject dis=none) header.from=eviden.com ARC-Seal: i=2; a=rsa-sha256; t=1720505955; cv=pass; d=zohomail.com; s=zohoarc; b=HP67sGIk9aYFPuOLIdAiKo9SOzUftAOI35fdye7W6kQGITKepUs5HQzaDIwyGvRaAqhu2z8ytaIEpuImdHtSkguVMmF8FSHYmWP4kVjJIhnJencCPB+113nXO1j6v/yikwF/u9qdM9CEANeXTFoJIsc7ilbVo86U/pVUs4mIZJI= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720505955; 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=G2NEi8NswOhG6gPA68L8MYt7Ej/ubgwv0BLN5se4lzM=; b=O9adt0NmuJ3TGAZV3IZgg0evsVz98A1OC6h9ARyMwBxFEww1FVq6zk9nxm3hes6P4pdHzy2mk8vb7az+1YUbb4w3YVl2UBBn2lp5SLpqPf9g24DDOuhgEqMKPrDNUn+LnL19zzwPyUyNSgR8y0gz3m0uo+T+FAoHC+C8CaaGlQM= ARC-Authentication-Results: i=2; mx.zohomail.com; dkim=pass header.i=@eviden.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org; arc=pass (i=1 dmarc=pass fromdomain=eviden.com); dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1720505955060940.8701502172781; Mon, 8 Jul 2024 23:19:15 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sR4BC-0000is-2T; Tue, 09 Jul 2024 02:18:22 -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 1sR4B8-0000gl-1d for qemu-devel@nongnu.org; Tue, 09 Jul 2024 02:18:18 -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 1sR4B4-00080V-6v for qemu-devel@nongnu.org; Tue, 09 Jul 2024 02:18:16 -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; 09 Jul 2024 08:18:10 +0200 Received: from AM8PR07MB7602.eurprd07.prod.outlook.com (2603:10a6:20b:24b::7) by DU0PR07MB8466.eurprd07.prod.outlook.com (2603:10a6:10:355::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.19; Tue, 9 Jul 2024 06:18:09 +0000 Received: from AM8PR07MB7602.eurprd07.prod.outlook.com ([fe80::fbd7:ca71:b636:6f9d]) by AM8PR07MB7602.eurprd07.prod.outlook.com ([fe80::fbd7:ca71:b636:6f9d%4]) with mapi id 15.20.7762.016; Tue, 9 Jul 2024 06:18:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eviden.com; i=@eviden.com; q=dns/txt; s=mail; t=1720505894; x=1752041894; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=G2NEi8NswOhG6gPA68L8MYt7Ej/ubgwv0BLN5se4lzM=; b=juEYZr9I3mBKfqOWSrHKzLImIzTvDe1FM7ZO3tNHq2pXCsjjYBDxYVZM nNzbRIWJ99+m5TfCWnShrRPtK962k92FiLUyQAajUkFBHIHRigFCewLqX cREahPQxEpri16zJN2colvRpq7BehHf/nHlFduROBrpTg9pBzMqEcsTjv OmOevlw+xckXno/4z0yAKwzt5GR6OcHxAFNuLdrteK2/PomaAZdbJulcX qNX63uxzJeJHvH5vVkGdHU42Dp/lKidbYaIHE371Cfmu/MI34jK525Kl5 ol9/o68kJ+n/L7+3cbfHMnRpD8VnYImNQXUr9T/tKNjGWgyQafwO75nKy Q==; X-IronPort-AV: E=Sophos;i="6.09,194,1716242400"; d="scan'208";a="16237747" X-MGA-submission: =?us-ascii?q?MDG1AIf74Eo8cWCLJ70YioV9EfY0HnGQeKCH34?= =?us-ascii?q?zBqaG0aoM5+gIjvtu3QeT1jx3ilcRv0qo8y3OF1jCw6/23LCy+Y+2vdm?= =?us-ascii?q?NRpXbUJ5+Scq4udwkSqIw7LLgOnFkS7aDHcLCrJemKv253M7+Q6dz/6G?= =?us-ascii?q?3b3ZwwStrjLicr0+URBB+jLw=3D=3D?= ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=wDnTm5BHBjuFr74LuKEDCVCosPFmIZ062xoeSGmPrbFwGuQtCuhnSUTjbmUP92bg9wMPVm9UC3CtqtDKHHXOFQCuBmRC7lSyHuqxfP25NJq/ipr5g22V9VZ2pt2kNxIK0/Etbj1VXj9Z82ChwX6+5KubgYmakQo2GMDtcIp7DqtqsjK751uVsdGgtzrcl1qqnrm60JGkruaQLrRl2zVRVukyB+gapd/WSXAqKbnx1YXXC19Rx+Rfml2cTtTMqF+Vq21TkO1Lg8CXJqgctR14UqOIsTuvhamPOuqiwfIoVBagvZLNPE/3uUbgC89LzilrIkMcYd4jC0dr73Bez2MtgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=G2NEi8NswOhG6gPA68L8MYt7Ej/ubgwv0BLN5se4lzM=; b=MUY1U6O8mtIKiPxyLYbTWx+siPJB7nwih+7/sIaBF+TviSqLXL8QWkGcs+vNYTGEpyffktY6dVBSB9v+HKUHKS7YqdoppHF13OOpZ+KO1FuFbODObCp/KfglO2YO8OYG0vzaU1nDl87nmoKckXuexrigT1IClsVIA12RVQGB2/RJgTrVxoBOQVMUbDCFXzrk/LmcrpQMRHS6kQ5wO8EhrEn9v9oowa5ioDJFGpqE2a4CZrkFJzdOCfqt5j2MNO9gc+7ZCYvZ84mJnXl7Oets39P45/uTGDFGMk6ppRCSP7AkE97aC7Xiy5mPG88aAk4YfXzS7PKkm4ySyQiijYFCTg== 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=G2NEi8NswOhG6gPA68L8MYt7Ej/ubgwv0BLN5se4lzM=; b=kevPtlBhRD7jjJ3ZC04vXXC39x/BDw52e79Q28S840M3U+mNi0badzvu+igEgJi3Bj3gyQZiqpeU29YYi5Lpf5Oxv+A6Yczm/yO51M0nU5JU7o4fmimd6MwgFvC1KcMjWSKG/zBMAeDCm51jYti6SCQUpmUKh/kmJeffD+3qTQkBS66Kh9qSsKSXYrIy/N2Ja7Sa8sJxRoYB6xoFX7PuzCMw9A8FMivvLq/EPEbIHPf4u4kX1FUqPcBUG7mOkgXdZQoXQ6Ie7EDQK93dHe38wiLXtGaJOmqmCWI9vZPxnhRu5V7OYaSHRS/jJ4GnvGXMxMAoiAAnhF7dy/PL7Mw/4w== From: CLEMENT MATHIEU--DRIF To: "qemu-devel@nongnu.org" CC: "jasowang@redhat.com" , "zhenzhong.duan@intel.com" , "kevin.tian@intel.com" , "yi.l.liu@intel.com" , "joao.m.martins@oracle.com" , "peterx@redhat.com" , "mst@redhat.com" , CLEMENT MATHIEU--DRIF , Minwoo Im Subject: [PATCH v6 3/4] intel_iommu: fix type of the mask field in VTDIOTLBPageInvInfo Thread-Topic: [PATCH v6 3/4] intel_iommu: fix type of the mask field in VTDIOTLBPageInvInfo Thread-Index: AQHa0cfEukGxrC/dLUmtiYAPj/jVWw== Date: Tue, 9 Jul 2024 06:18:09 +0000 Message-ID: <20240709061756.56347-4-clement.mathieu--drif@eviden.com> References: <20240709061756.56347-1-clement.mathieu--drif@eviden.com> In-Reply-To: <20240709061756.56347-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_|DU0PR07MB8466:EE_ x-ms-office365-filtering-correlation-id: b7912557-9922-4d7c-e4fd-08dc9fdee76e 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?UVRob2l2aVdsNFI5a2VxQTFWUDVPdTRnVzFSNTQ0QVhmN3VWR0NFRlNUc1Vy?= =?utf-8?B?ek5zd0ptWXBLR3hPaHRkL1BEd0pCeXd5TVlqYWZZeERmZjRNNWFPamNaeWsy?= =?utf-8?B?UWxkQ1phY1lqeHNhWHhkYS8yVWN1UDl4Y2gwQ2lzZFFMWXNtY3JxTWJaTjg5?= =?utf-8?B?ZnJPbXJMWmt3Y0FlWU1ISXFBMHg4Rno5c25hek1SZlgzSFZMalNuejg2a0N3?= =?utf-8?B?VmNFZTNmNW1YckJVblVEV25PSUorWHFIaXZjb0lOQjNKL3ZhV1RwVVBFcFYz?= =?utf-8?B?ZFVoenZwRmFDU2ExbVRRZHdnRlJqTms1TEhwTlBZcHNiWFZIaktmVDJUV0dj?= =?utf-8?B?TE0yVm8xazl4Q0hROGR4bDNIdUVlRXFFY1daUktLanFnS1Arem5DbWpONGEw?= =?utf-8?B?S01MZUZmbjIvODRKVWJ0RnBta2lXcUpxOUY5aXhrWnVDTk5SeDB0OGl1UFVK?= =?utf-8?B?T0VQMi8zWDZIU3E2Si9lTlgxUUhGbG9CT3VvLy9xYnlocFU5KzJkOHN0V1Bm?= =?utf-8?B?SlFxRTUreVdL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f-8?B?dzkzYytNNEtZUnNxSGI1QUI4ZzFYZ1krMFArdEN5L0MzY2ZSMUpqZDZGclZz?= =?utf-8?B?alRjR1pGUWxvOHorZUZUeUFxL0xxQlgwWm4wQ2R1NmlUS21KdWJ3THltZ2RU?= =?utf-8?B?YjJUanFzVGRidUlWTnNWRmsxVUJPZmNOOG16NVR5M091ZGk2STk3ZzF1RkV6?= =?utf-8?B?cHpodXdmMmNLeTk3VStUeFZhYWkzTjNhRjBrdk9hMFcwQTFCME1vUEVqZk1O?= =?utf-8?B?MXgrUXN1OWc3Y2RydThoWnlkSmt5a3ZWdm9lOElmdlFlenJPN2NpcFBHS1hk?= =?utf-8?B?dm5RU2JlUzhqRHFIdEN0QzZhd0RJQUtNVm5hYjhBemtpVmVyNnQrYUw4a1B4?= =?utf-8?B?YjBiaHFmS1BtZFN3R1FWZHkzeUNaOTk1UzFuc1V6bUoyYU5WRVVrVTR5NHJm?= =?utf-8?B?NzBMZDRsSUdCaU03WnpINEhqQi9tOStjOC9TK0g0elJLd0E9PQ==?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM8PR07MB7602.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(1800799024)(376014)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?c3F3TUt3M2RnNm55TXRPcnp0Z0FXemdhS2xjVTdMZkQxemp3T3VVOWdTZFJz?= =?utf-8?B?RUM5L3A2RWZzOTlUc1YwUlQ5eTBlbFZTS3hiOXhFcWpKYXpPclY4NXNZQzVS?= =?utf-8?B?cnN2alpIYTZkeE12RUJsa3ZLWERCUkpPY2lPL0YvZENjMTlFQ1BiUkdqU29I?= =?utf-8?B?L2QxaHFqMDZJemxPTXdFVXhNOUZ6TTFaZENXYTJzQ2hmMGlkb1lhUWxFNThD?= =?utf-8?B?b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2dKZVFoOTNXdEwrZnVh?= =?utf-8?B?R3d1OFBhVFozbGErdllJQ1dLdlNENi9aMzlCeDc0M1BXK3Qrd3Mrd2d1T0Qz?= =?utf-8?B?Y01XTnA4eUd3aldMdmcwQVNiQ2ltSmpjUnBhOG9HbkZLbHZyQUw5emU0Y1Ny?= =?utf-8?Q?3O55kvigRBx0QqDvkFVPUeY=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: b7912557-9922-4d7c-e4fd-08dc9fdee76e X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Jul 2024 06:18:09.3790 (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: sj3V35/kuJoXfeGYQMzDcWfOWKYu/55hogeO79ZpNuBNHxkqGmtraVh2pPKF74zoyIVHrCq3vIZQLRpZFG/9pH3wVFoOdBGjry3GsmgqNOYNWtBr6AjnzWmXtqkONQ8T X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR07MB8466 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer2=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=80.78.11.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, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer2=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer2=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @eviden.com) X-ZM-MESSAGEID: 1720505955850100001 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. Fixes: b5a280c00840 ("intel-iommu: add IOTLB using hash table") Signed-off-by: Cl=C3=A9ment Mathieu--Drif Reviewed-by: Minwoo Im Reviewed-by: Yi Liu --- hw/i386/intel_iommu_internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/i386/intel_iommu_internal.h b/hw/i386/intel_iommu_internal.h index faea23e8d6..5f32c36943 100644 --- a/hw/i386/intel_iommu_internal.h +++ b/hw/i386/intel_iommu_internal.h @@ -436,7 +436,7 @@ struct VTDIOTLBPageInvInfo { uint16_t domain_id; uint32_t pasid; uint64_t addr; - uint8_t mask; + uint64_t mask; }; typedef struct VTDIOTLBPageInvInfo VTDIOTLBPageInvInfo; =20 --=20 2.45.2 From nobody Sun Dec 29 02:06:08 2024 Delivered-To: importer2@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass header.i=@eviden.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org; arc=pass (i=1 dmarc=pass fromdomain=eviden.com); dmarc=pass(p=reject dis=none) header.from=eviden.com ARC-Seal: i=2; a=rsa-sha256; t=1720505983; cv=pass; d=zohomail.com; s=zohoarc; b=nI8KYDNpwwqxMCSKgwklaxVbeivgSSwnfC1P/MsmQmzfh6bpl5xGsErbDkEKatwTBMmVcb/qSbshO+9EQQ8cMjygEgBNEg3PYZHg2Lxc4HWQKYDnWO6wtVeNQqNAkGWkbhi0nOB46YdBkmUaSq/sH4viqcONCGXAwhzXRaneIuA= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720505983; h=Content-ID:Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=HE1nSNC+fM1pwokpWi9++/4rNMhNj9V1sCadInCpIzU=; b=AGBpyXZvrio09ZvVgC6/+8NTo0DUfL6EpIcRvBSUuwgP0mr2NuwP3AnB3/HaV4BmKVuAkPN7MX2VD2zKjr410KQlbrID+2ozClyOOxAORM/hnHa4E2eHxYl/UUrzCeB0kvGrctbPHRr9N/msHFJ6lkOsmLeDihOIJVj4cl6uE1g= ARC-Authentication-Results: i=2; mx.zohomail.com; dkim=pass header.i=@eviden.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org; arc=pass (i=1 dmarc=pass fromdomain=eviden.com); dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1720505983743590.4012030342074; Mon, 8 Jul 2024 23:19:43 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sR4BL-0001Je-BZ; Tue, 09 Jul 2024 02:18:31 -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 1sR4BG-00012v-Tg for qemu-devel@nongnu.org; Tue, 09 Jul 2024 02:18:26 -0400 Received: from smarthost3.eviden.com ([80.78.11.84]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sR4BF-00080Y-4a for qemu-devel@nongnu.org; Tue, 09 Jul 2024 02:18:26 -0400 Received: from mail-am6eur05lp2111.outbound.protection.outlook.com (HELO EUR05-AM6-obe.outbound.protection.outlook.com) ([104.47.18.111]) by smarthost3.eviden.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jul 2024 08:18:10 +0200 Received: from AM8PR07MB7602.eurprd07.prod.outlook.com (2603:10a6:20b:24b::7) by DU0PR07MB9289.eurprd07.prod.outlook.com (2603:10a6:10:44f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.19; Tue, 9 Jul 2024 06:18:10 +0000 Received: from AM8PR07MB7602.eurprd07.prod.outlook.com ([fe80::fbd7:ca71:b636:6f9d]) by AM8PR07MB7602.eurprd07.prod.outlook.com ([fe80::fbd7:ca71:b636:6f9d%4]) with mapi id 15.20.7762.016; Tue, 9 Jul 2024 06:18:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eviden.com; i=@eviden.com; q=dns/txt; s=mail; t=1720505903; x=1752041903; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=HE1nSNC+fM1pwokpWi9++/4rNMhNj9V1sCadInCpIzU=; b=A3BCthzvdCG/mtTL7uANeJ6zQF59Z1kvbEhkW21BjgqqfYtZ2CAig3f+ SZhT34fvlu6dyrooK4YvTY3DJ0dqT7ScWWhujYsJBhqDuaKr2hEtax8+G 6j3Cfk/HxMhAcSd2z7+l44Op5/Ja+OcNVdAnbtxj+H76ZEfmNCAQKNZcI UbDZHq1fQsEvonqu5QQQKMfcAVwiakOSBSyB39WdD7QKLouZ6HuytQQRd aoewIzry36AH8rnu18LCZ3xGuCevfnaQO7gezPXHvPohjLmPeWTUU2RIQ wGwheL03igXWvqfWaomLQljZhrEddaMxvTX/i7KkEjdp8awOxk+nsUhc7 A==; X-IronPort-AV: E=Sophos;i="6.09,194,1716242400"; d="scan'208";a="16131809" X-MGA-submission: =?us-ascii?q?MDFPZS5j2/q+i0Z6tBPGe6dM047gGEYsauk+J7?= =?us-ascii?q?SOTqw/NvwQbwUNzdyFOIYyhLWf1gP0slLarfvlG6e2nZxAJm/kiTRs2g?= =?us-ascii?q?Q99JW78/X8EjQf9Vl7csZj6Yv6PxDzHqhCLvfxT+1Ai2lbxSI28HMFn3?= =?us-ascii?q?75z0HI1tsWNdSsUP+QZICWug=3D=3D?= ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=XoaAnCsJAc1ijvhu0vedsf6bnw8M1WeMx8Ny1odvho+FnklAfqjKUUY89wU/TnMWUDkXm+7uZwRyeGM2KudVufpDMX9EXGiL5RRLbgqTn4vqso5fl0PfgO2DC3Zq/bev9udrdT8yZNSjR67mc89cwN7uxafzv2TP3iO3a2kUkY5t0XGzksGeLskUU2YCmRw6u7CwumJPLtfsrWhMMm+n5gI8VkTlfxyJunvx7IF8CNhFvcugNG3iM9Zsb/7M1xH3NrSXZvVRyw2JkeZVy16HBIsEDrEV0lxlHZSiEjkN8rEydi11bqmn2ua9aJ+jAy0E6DUsRfkH52G2/cXV4LiMDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=HE1nSNC+fM1pwokpWi9++/4rNMhNj9V1sCadInCpIzU=; b=CQRAwL7BErkAgM1Val4m7HlAVwfwEJ+O6DVXegGpUD+dVcyuAQsrS94IV0fKEhaP2NUgXCw8iQbQ50xxfMcJ3DiaxqmpptQLnSBrVcnfDPLrq13fcL2nnB5d3XElCOo5D2K1y2ua/Oa5X8Ztc95Ld4bqdbGSI+ZYymE1eBeYFJdzJ6w79Zo+iR+y8K/oh8vgQZSG9I+ja0uYsemreuFzUwS1OcZznLD87X3FWwDzYYXAUTp0MjrdLHPPD9CAxb+JbQPAvfxlVdiSbsR1o1XkiJI7J7EBafyyOuSHk65undO8tmog8EyQ0i4TAUA/TjVNoOIY+DGHFVX854hnHRc4Mg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=eviden.com; dmarc=pass action=none header.from=eviden.com; dkim=pass header.d=eviden.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Eviden.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HE1nSNC+fM1pwokpWi9++/4rNMhNj9V1sCadInCpIzU=; b=Zq7z9rHYulOPP1zJVJxfq7l4JqhmgBnH+M6iPgJ3ptsdHy/JpyCo+1Fb26GR2scEGIsOXMMyOYQoOSDFqAULeWAvrhPHftOSTiPSgfn+wyLu15mKfmd8spJlnXn45jSY2WGPAY47vwd8xG88/8CGXZlpiomWwqS/n7ESw1fY5k9mt6TgBgXluXvEF84atXHEtksFQItPVOrcIrzdyWVgA+Zvo1UjVbl4/XrzprmkS2bJ9+CHk3ZZ/Kc8yGg5UnxdiYIgidpA8wlcYu7wQV6shPMX1UwTxrB4pOVPFhsTuDoChTknqv240lpBZ95ru6znKemKlMBm/64AZUbh/vKiXw== 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 v6 4/4] intel_iommu: make type match Thread-Topic: [PATCH v6 4/4] intel_iommu: make type match Thread-Index: AQHa0cfF5MXBfjhIO0OC3hgSPePY0A== Date: Tue, 9 Jul 2024 06:18:10 +0000 Message-ID: <20240709061756.56347-5-clement.mathieu--drif@eviden.com> References: <20240709061756.56347-1-clement.mathieu--drif@eviden.com> In-Reply-To: <20240709061756.56347-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_|DU0PR07MB9289:EE_ x-ms-office365-filtering-correlation-id: 27cd22fb-811e-4793-cad5-08dc9fdee7d7 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|366016|376014|1800799024|38070700018; x-microsoft-antispam-message-info: =?utf-8?B?QmQxWC8vUzF4bVBHQkJMUjNaNXRPWXVtTGZYQU9VbnlDdzB2SUp6RmN2bnBh?= =?utf-8?B?REVUa1d6R0pWdmswVGU5L0p5REFUN1Y0ckR3cG5ZSGlDUFRtWWp5V2JVcEVJ?= =?utf-8?B?SFlqakZmMjJUVFlzaStDelpteWhGaVNLS1ZCZU1aU3lzQmVZS3c3cjRVUFdn?= =?utf-8?B?d0l1YVlDTE9GZUx4a3h3UmE3M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urprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(376014)(1800799024)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?elZ5R1hUdHY0RUgrdnQwTzlGTW9BdzBid3l2cStiODBQcE55aThKdzdTUVhl?= =?utf-8?B?VC9BSGlUSjNGaG9yN0l3YUN1YXJQcHR3M2hlKzFZNGNvTHhROUtRY1RpWk5i?= =?utf-8?B?S0dvMm5tRW9Weno1dzY0cmVUdTJWdVhPbWFCd0E1Ty9kckFiRk04dWtwUHdW?= =?utf-8?B?TDRxSWZwdGUyQnZ0ZThNS1N1L29nWnlIVU0wUUdhU2xpM1BuNlM4eEpxOTNE?= =?utf-8?B?QVVlaFJZWWYvSGJEckpiSzR6NEQxYlZOand0S05heDJyY1Viazg5MGRuQzF0?= =?utf-8?B?RUR0cEhkS2tUYkEzNnA3bU1HdU9CQ0pRQThkMjh0Vi94YjcvVXBicFJseGhJ?= =?utf-8?B?NEttTjdhUUNTc001OTgwamRlVjBYcUdGb3lwVzZ0YTNHcWY3RmtMY0FGbmh0?= =?utf-8?B?VnkvOXFZa05RWGRibC9HWFFUeHdqaFpsb0ZRZEVBZ1JXMzUrdnY0TEdSRmtn?= =?utf-8?B?ZVhoNnVGYjZqbEF6Y2c4eG9IZVNZVTJsZDFQZXIwRXpRZDdZU2hMTHBJUWxz?= =?utf-8?B?dmVZTDhGNTBLWkxOOFdlL0JKTVJxTFpyZHZuK0RqWm9WOGNRNlFDc2RJOGJm?= =?utf-8?B?Z2MwcEU0Wnp4N2szVTljZUhtKzNqM0VTd0IrVXgvVWJGWnNRQk9rOUROVkFy?= =?utf-8?B?TGdJZjdaeXgyKzUreXlrYXl1VWZMU1ozUGEyd3RmckpaamlLUXl4cUdrVlRZ?= =?utf-8?B?c0o5NGEwWXhxTDFqWHZnK1hWYUZwZzkrWDZsQnJ3TFlJV2kyVlNsN0xwcnBW?= =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FJeFdN?= =?utf-8?B?Y0xEeUJxODhUY0RtS0FJZUdpQ3EvcGx4QnlGOFViRTNhUU5hb2Y5TFRpNUQ5?= =?utf-8?B?dk1nNHBjVGZBRmdFQTdsNW9uSWxHcmpFU1BueWxGalpxbmlTN2RkbUpVbmJF?= =?utf-8?B?K24rOFRsREZDK0dTeThhQ1pSaFRDVGRkcjJabk1ZL1M4NUxRQWkyNGpscFk3?= =?utf-8?B?ZzEzaS9odjBNM3RZc2FrU0lhSEorTzVFZjVqQmdHMU9PRGM2ZmRiQTRsNTAw?= =?utf-8?B?bStyb2NlMUtrUWZCZjFud2YwczJYSFpueGR5dzNJRHJ6TmpQYzY5bXpsNGdQ?= =?utf-8?B?cldrTXA3dzlabHhzSUs2bG1ta0RvVDVJODhNZkl3M1AzNmV6U1Vrc3h0ckR0?= =?utf-8?B?ZDFtb0c0OSt6eXdISlZJT2dtSkVvODd6L0o2S3hYeC9QV3JMUGRFMG1uYnQ0?= =?utf-8?B?Y2szMG5KVElrTUcrU1hOelpjejVrdnBidTVXMEowYkx3V0trQ3NhVXdRODB5?= =?utf-8?Q?gE5NpsrQylNgAK52DaXpznU=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: 27cd22fb-811e-4793-cad5-08dc9fdee7d7 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Jul 2024 06:18:10.0764 (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: dPcv0/PFd4XEMh0678dBJwmGAT7kEkY9M2WPek0roMrINYT85jjAPA2clr9Ed8Oe48BfYI2HIMvBECgIERh5Go/qt0U4SBkOYgqwMDcZHlybQmZ3enco7mK121Vd4auH X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR07MB9289 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer2=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=80.78.11.84; envelope-from=clement.mathieu--drif@eviden.com; helo=smarthost3.eviden.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer2=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer2=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @eviden.com) X-ZM-MESSAGEID: 1720505985433100011 From: Cl=C3=A9ment Mathieu--Drif The 'level' field in vtd_iotlb_key is an unsigned integer. We don't need to store level as an int in vtd_lookup_iotlb. This is not an issue by itself, but using unsigned here seems cleaner. Signed-off-by: Cl=C3=A9ment Mathieu--Drif Reviewed-by: Yi Liu --- hw/i386/intel_iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/i386/intel_iommu.c b/hw/i386/intel_iommu.c index 37c21a0aec..be0cb39b5c 100644 --- a/hw/i386/intel_iommu.c +++ b/hw/i386/intel_iommu.c @@ -358,7 +358,7 @@ static VTDIOTLBEntry *vtd_lookup_iotlb(IntelIOMMUState = *s, uint16_t source_id, { struct vtd_iotlb_key key; VTDIOTLBEntry *entry; - int level; + unsigned level; =20 for (level =3D VTD_SL_PT_LEVEL; level < VTD_SL_PML4_LEVEL; level++) { key.gfn =3D vtd_get_iotlb_gfn(addr, level); --=20 2.45.2