From nobody Sun Nov 24 20:20:54 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=1720106040; cv=pass; d=zohomail.com; s=zohoarc; b=iYmqxAn20WYTqh6dvpUaY2VLdMXHuwk0eIDdMDB2B9xm/ti6k+nmzeBS3Q5EDak02PT4m4QpvmInKyze23joBblOA69QOqhA6Dm0NUnsBJKfJYcnAK0AgRQDDi/HFAAzFQ9Pi2ZqgA2VgClEt5yQr8kkVr5fnpPlahy6XF78SNc= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720106040; 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=iKgWTW73+sONWU+F9uuFcnPrFDqHO//Sx1zKx7/KBTY=; b=eNCgcNiT8AR7k09blwuWZ/O3Kj1VdHu6Ge/M9d+etFeXCXQyuN7GGj50bWrRZTg1kk6XfSMZE2nUE6GZPabau08fiZkW8wsu4ne/AmZv963UeDorxsODb/SQhWKNghKpT0Y2G4RtW3gmpvouppAgvtpMGOL/wtkn34mS77vuV/U= 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 172010604060660.84006656238273; Thu, 4 Jul 2024 08:14:00 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPO8n-0005Wq-50; Thu, 04 Jul 2024 11:12:57 -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 1sPO8k-0005WK-2G for qemu-devel@nongnu.org; Thu, 04 Jul 2024 11:12:54 -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 1sPO8i-0002sY-2x for qemu-devel@nongnu.org; Thu, 04 Jul 2024 11:12:53 -0400 Received: from mail-am0eur02lp2238.outbound.protection.outlook.com (HELO EUR02-AM0-obe.outbound.protection.outlook.com) ([104.47.11.238]) by smarthost4.eviden.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2024 17:12:49 +0200 Received: from AM8PR07MB7602.eurprd07.prod.outlook.com (2603:10a6:20b:24b::7) by AM7PR07MB6455.eurprd07.prod.outlook.com (2603:10a6:20b:137::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.8; Thu, 4 Jul 2024 15:12:47 +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; Thu, 4 Jul 2024 15:12:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eviden.com; i=@eviden.com; q=dns/txt; s=mail; t=1720105972; x=1751641972; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=iKgWTW73+sONWU+F9uuFcnPrFDqHO//Sx1zKx7/KBTY=; b=tDZeUX58b0BDrYyiqA5c2CBFCizDZnVX1yCQ2hD5VOWt/Ejgdn+peulZ yi3dSKeVlwy1tE4glxh8OGt0rQj9vChf5+P9PjgQ4OamF87qlmNfZiEA3 odAVTaE69/PCRAdYPaLP9BPl86cZ7kBx5W9w2bQJecOi82ft1DbX5MdYR laB37bOnwu7BQyyy0Kdun9i8HqQm4cxFbB569W3RP61ljUdV5Q1wSyRaN ueggQWduB8D82tHcfBXpc3B4xjC5aO2kSg1kk0mOliAZn9lk7j0JOIv0J 5EcR8VVPX6ymzfNYII+EW+ib8g49wyEu9aY3bjZNlQUQGMj5kmeibg/fG w==; X-IronPort-AV: E=Sophos;i="6.09,183,1716242400"; d="scan'208";a="16007268" X-MGA-submission: =?us-ascii?q?MDEs5hfOVmg/sN6QarBZfts0n2pZf+VekM9Y9e?= =?us-ascii?q?8/NlAHkLuGPXnBULwfU+bcaPkoiH4jYPbpyZYYh4NZlDrwX9btEBQa7+?= =?us-ascii?q?P5QEMz8FDsRErx6YNjU6IyNOK+IafgQobMg2nT0PDDJM/sCJ0pYcIeBp?= =?us-ascii?q?mqAGU3hV4S3cwogCRSXs3Weg=3D=3D?= ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PGS4DIUuDbvni+yF5gyWhVeLAJjU23GSoXnc+8lvn3iGNQNVaL2hQaGidr/fclqHNxps1ncQm7tF4wgpiJanO5gQDhenVwBGU8l2ezGtv2GpsyQPwOyie3rHrX73E2vVWfI28fNqEIfyu7BTZ5qAegqXQqiTa5rpXH+V4rJ/USFXLpxjOXHywReMwP9/ryShPBMgG4D/rsG8qrePpZ8GMQ8c+tSTLpNTZEzFX0rDGSYqzKR+Js+9to7C5LiLM0E8Oj/VC037OPJyeWyy5D2fs3glEW8mPIbEhAbm3we3ZL0vB4RLBK8wVhp4lpBsBw+/u3G8Nfv0BLIIDPndpkPWLA== 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=iKgWTW73+sONWU+F9uuFcnPrFDqHO//Sx1zKx7/KBTY=; b=VeYBxCdaLdeLkDzWnhtaMW72JtoRHAsJrFOQ/4Nw5+RVJf/6cs6b79g1crKkIV7TQaSkerwgiU76DUfUDwdW2iQjrt2sKru/CsDrBitfIFQgdHnuUQ4qJCqqlGi+qpxhJBwV89IHpGmmxKBe//PI4kbfQvJl3bW8zhaoqALYyRRHhJLSrueXgliwJCe0LEY7dBmK3nJLBzq/XjUK71p67nIg5oZVhAiM90gXUcPx6txFViMZ81OCdEZW38zFPxR+vERsz35yzfBdu7aMJd8UIHasd+BeIYSHeDgSqfp/bdxG9yPsOJRLlaIU6ttw3haohEHn57UOlQP6JJAzzWipQw== 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=iKgWTW73+sONWU+F9uuFcnPrFDqHO//Sx1zKx7/KBTY=; b=BQtAew+PcHHXjwpYwdsahY5VWwSxEg+shu5hLVZrDht2GCvKeN8rLNLJBc0fWyiT/Mh4dbk+rJYbc/evtYIl3i3dr2Q4y+xDfAsi77Dc+awNMgYeJWK2hdwF2Hkx1BRYZ5DwYYF2uwViFHGbnn2PJHCg1kwO5JSzxDVKlXWpuwwGbaiGCzjV1+CGONnlcrqJw23yC4B+DDY4FvPaJ92s50a4VxyKq7U5zOYCRjxgLdNq6lv7HaIk/Nm8reNhiWdCgNTWhnzq936nZBPFuemhum7sHr7wi9dVE6h0s/IcUCnL1NTL85k/8FH+6ZrWh17mRpzwUKyEAZmb1P42umVhLg== 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 v2 1/3] intel_iommu: fix FRCD construction macro. Thread-Topic: [PATCH v2 1/3] intel_iommu: fix FRCD construction macro. Thread-Index: AQHaziShz6ld2iURc0GxUCRF+M342w== Date: Thu, 4 Jul 2024 15:12:47 +0000 Message-ID: <20240704151220.1018104-2-clement.mathieu--drif@eviden.com> References: <20240704151220.1018104-1-clement.mathieu--drif@eviden.com> In-Reply-To: <20240704151220.1018104-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_|AM7PR07MB6455:EE_ x-ms-office365-filtering-correlation-id: 900d6382-f470-4033-33d4-08dc9c3bc3a7 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?MG9iOWhsOU42R3FFdURmUk1xR2JDbEJSWDl5TzJiMThHVy9LUXQzQnU2aUta?= =?utf-8?B?ckRqQWtLOUY4UnIrRFBBdDVTOU1xWUNyVFhDZnBpZ21FNmdaMCt1d21ObTFB?= =?utf-8?B?cDB0d0RLbjB4cjdHQ3NkSmpTQWxDTEU5R29VMVYzdTJDcTFjTmdIWHdaTWFz?= =?utf-8?B?cCt5WXQvRkFSZGNyVnNHckkx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SPM; H:AM8PR07MB7602.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(376014)(1800799024)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?cncyN0RqNHI0dnI2bGllNkg5SmxJaHVOekJDV203U3ZJOXJwSWdXZmxBcnJm?= =?utf-8?B?bE1ZL0M5OGZoZXZBeFlqQWh6RSszdXZKblIyWnIzZWV3TTVkb0N3azZ6eUU3?= =?utf-8?B?Nng0RHJSbitKN2YyUVJHMjRsdkd4ZWlweUthaUxac2orNTVTeE5MSjJiQS9j?= =?utf-8?B?b0tCRnp1RW5oRVp0VWxFZHZHdTQzSDVVUnlCaDNneHp0T1FoeVQrRHIxTDNQ?= =?utf-8?B?aTVYVUdWQWhtSHRqMmQyK2hxdW4xZ0VoVklXMndwQ1JHd2ZLZzRpSlRjRjhQ?= =?utf-8?B?QW1MU25ObGJhMkZrVFRKNStoY1NVVjZ4SzFCYkI3NkV6bUtmcHdPekJDcklS?= =?utf-8?B?M05BQUJkKzZSci9XRW9VcEQ4NktsMG8wd05KSWRJaTdsYmZrazNZL2UxTDdl?= =?utf-8?B?aG9KK1N4WVNVcDJXU3FwZjBTbzEva0k3WXNJUHRQVGhuVVZVVTg4RkRGQnZq?= =?utf-8?B?SUdVNFdmQXcxR2lEYitYUmQxZDN2aFNYNE1UV3hMWHRnMTJKTG5iWERMTkha?= =?utf-8?B?OEJ0QzBvL1RXV2NDLzUzWnNReE9qMTlObWlsQUxXT0lsSW1yMHhjbVgyK0JC?= =?utf-8?B?Ykd3dnNPeXNiMXJTVFFQVWNhSjRneTAvZU85U05uWDlqZE1vUFZ3alJlbDR4?= =?utf-8?B?OWlVeXpUcVBrUHhQRlN4am0zL0VDSXh0NjI4WmZrRUNVdXFsWGxhSklYeEwx?= =?utf-8?B?d0JFV3dTQ1BYZFBFMDBjMThrVlFIU0kzbkhFU2F5Zy9RYjB3d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UW5INTc3eXpoT1ZJc2RWVnJBdHp1bGM3?= =?utf-8?B?TUk2UTE1T2k0bmh6R0ZhaUVUaWpEOFBHQitmalB0L09BU2xrbzIxQzdhMzUz?= =?utf-8?B?eTFhai9CbXNMUnI2ZlNpbllzUHlaTjFkWWUyTG5kREZXUXJVM3VSZ2k3RDZy?= =?utf-8?B?SHlkN01nOXRRZE1yaWJ5ak0wclE2NjU5eEI2ei84UmlDaEJPbVhwMkJsZ3FG?= =?utf-8?B?T0tlZ3BBMzNXTXJnS0pFZk91WEcrUXZoWThPM1V0ajBRc2Iwb3J2a0xmdXRE?= =?utf-8?B?MDlXdzQ4eXMxQ3JDdGNwYjZTeUZNRHArb0Faa3RVa0I2Z2U5dEwzcTk5TCta?= =?utf-8?B?VHFSTHJSRktHYkk0ODFhcmQ1SmVjLzJHNllTeThiRWFOaEdyV0tCSk1SRk5n?= =?utf-8?B?bFl0SVpWT2M3UklyRzUvM2NZb2ZvVEgwZUhjT2lXK2t2L2QyV1p1RDY0MFNt?= =?utf-8?B?dUEveFdsai9iVUpIbW4zVGhvZTRKNGpaR1U2a0o2RERjL2p2eU9JMDhVZTVt?= =?utf-8?Q?b3WiZtLrYD4te38/y5y9LRE=3D?= Content-Type: text/plain; charset="utf-8" Content-ID: <4FA3C3152EC55743ABD06366529166EB@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: 900d6382-f470-4033-33d4-08dc9c3bc3a7 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Jul 2024 15:12:47.8948 (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: +Jvf2QVoqwZMYmtObPyLWHJjF3s/fSXl4p9Iwzw7rU2RLwvnUNwvnTOCK8tuljpXCt+/QI3anPU/Cl2e2lOcXbTWQ8YA6Z84Q27s33u9Xmg0rq0A49WSw/Lxdb/OeuGl X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR07MB6455 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: 1720106041597100001 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: 1b2b12376c ("intel-iommu: PASID support") Signed-off-by: Cl=C3=A9ment Mathieu--Drif 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 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:20:54 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=1720106018; cv=pass; d=zohomail.com; s=zohoarc; b=fSmoyoifg1u+kC9aqlOefwdOIlP1t3iE4N2qZJL09UZIUpJBbb/h1IZf/vMy1IWjtwSnL2f5FLPg+PZ4oU2iUYaJ/Uy5wfnh0YaN7HMyrCtfr6SAzdwWa+rsnbDvAR3/zUisfCNvi8gm9qqoPDvK6NLVKZxafg3IZNeco46/vt8= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720106018; 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=YoEDiqSXeBOMuFcUpS2ye/tE0awOTVdmwpSMPRrvMks=; b=CuPJmFIgyj7H3WdWT5VpGDjJuYo0ZTOzQAAVIO8tw2eCQe6HEPaP5C7FBBAFqz8RDxlkTC9VL3SH7nBWNLeXbQAjtdG3ysXTAMAHOMD+7dVx66fxP/NQJz6lA+os/iibTKu/9B2XXNZYR5mXKIfox3E66ean24kIDVfLZEhHmAs= 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 1720106018034311.2298654210199; Thu, 4 Jul 2024 08:13:38 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPO8t-0005az-0B; Thu, 04 Jul 2024 11:13:03 -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 1sPO8r-0005aI-IA for qemu-devel@nongnu.org; Thu, 04 Jul 2024 11:13:01 -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 1sPO8k-0002sV-2y for qemu-devel@nongnu.org; Thu, 04 Jul 2024 11:13:01 -0400 Received: from mail-am0eur02lp2238.outbound.protection.outlook.com (HELO EUR02-AM0-obe.outbound.protection.outlook.com) ([104.47.11.238]) by smarthost3.eviden.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2024 17:12:49 +0200 Received: from AM8PR07MB7602.eurprd07.prod.outlook.com (2603:10a6:20b:24b::7) by AM7PR07MB6455.eurprd07.prod.outlook.com (2603:10a6:20b:137::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.8; Thu, 4 Jul 2024 15:12:48 +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; Thu, 4 Jul 2024 15:12:48 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eviden.com; i=@eviden.com; q=dns/txt; s=mail; t=1720105973; x=1751641973; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=YoEDiqSXeBOMuFcUpS2ye/tE0awOTVdmwpSMPRrvMks=; b=QdWBSNSjZs6cuvvIVWe+eUzNZHxn2NXl4QmH02XP5pbqUKXQlbtqZ/+s dNcesyTIaIIZQ8LbxVzj+NnRjdQZw3ckXP4y7+8xGLG+G3o7ipcK0LMtg tP6s6aD9SejF4w61/90qe62y+uQhl+CrCOwdc7PnBBkS2E9eNaJUpShZC pJBomOvKLmpo54mI+y2HppvspJyyjIBgHnjts/u5V7jyW7VkIXvKuz9hm /R1t+YcJ51QbuEw9OkLak2859fyWMrfsxjegpvGvqhydqYLdcvCzxphD3 jQ1MIJy1mdfcWds/wpBSeqGspvN5E+IJ2j6zXmGpH17WaovM+t7QVbytJ Q==; X-IronPort-AV: E=Sophos;i="6.09,183,1716242400"; d="scan'208";a="15910928" X-MGA-submission: =?us-ascii?q?MDGzkHGvFftBHh6nyWM5Tui3e99VGUub4u6NAl?= =?us-ascii?q?6eEdQBAlmFy8RlRwoiCOqE7IE2xNzdl+4HdR/BEcvUj/uwEMrZM0o9tc?= =?us-ascii?q?5XBxV9xiL/B1rzVSKk6ym6P4IvbGsCtRLAIxbDG1xew8S/gcORAGy7ll?= =?us-ascii?q?51eAdXUAGnjHDDS8mcSe4BUA=3D=3D?= ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n8H0koQKgoAHlkLEZJy3O8DTw5zyS44NjwFjmQIx7FKmM3CEKZcwiZ3l0gcdRToyXY0wTps3swJ38euwEmMaGi3LYMop2MuEvfj89jsZA7ulrvGAoKemZ6wSNV5+rIP3ReMmx97oJ5zsHi8JjgFMmPz6oGgTsrKhtEU3/06UEtiEfeplgn2ttQuYlmqJ2I+S4pZ3XuFSdcFCFUj+k8nIg8pt+F/K2gP3jui+xIVkaN0vjhqIeONgYqGviv/4TUg+HU7+oUWL8LWcbsseGxmuMt8n5phMWIeTZ7dCIbtioOE2+7jZ4KmhyVNTKazl8EYV/BVb3iEgPALqlNg9z+DusQ== 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=YoEDiqSXeBOMuFcUpS2ye/tE0awOTVdmwpSMPRrvMks=; b=NqGJ1ISk5ekE7nTr5Gu/XgPvjA/x7etT7l8sA4rkxM/hnUSz+e4IV5KvefqEh5Wd+qKKUR0RNI1zYlMz7tbHcqZqiFs3NRhOEiv/xNQ0RB97wYceXoJJ+WznH3ydEmyXWiUH5S6c0RUBNxjEACUXwL+mEwo0beOSBHpVGoe5+ZuD1m0SYg5F+I5H3xICsNxnruZS17NgLpW2VZDEf2caj+8B/i/Ziqjz0Cz/jx/eS/6VwMuLsU37dhhQsSKu9MOIuamKPk3CZ2/QdnCMO2N1tyUX+AWKVTHCwWZiQPHS/+hf5zo3hqEUQC8igNAw4H0NcdeCEZXOdHbks4rXL6qKfA== 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=YoEDiqSXeBOMuFcUpS2ye/tE0awOTVdmwpSMPRrvMks=; b=sRstGMeOliD8UB1IIKtqlDWe4FrVrBNFnY4r/o8Vt1B1CbSQYF2ZPnO1+INnbT1UIFyaLCumLLynST6Hrhnqn8wrXbd360UtCUXa9F4N9fZWyG8jTcL/D3EkBusUrANlurNBJuB+ty2GsWILX5X9851BMPjGPrrbLhv91JSAHa7x6OhUomIg5CkGS4yd6o9DPdYwJCc25Ymj6Y0srZp1zrpgXdcimmxTDKAQcVxpCF+JcfDvp0cwTO9qeyqijRggrqcwoIO8jn9XoBago45t7k+NDpeMc3O0/v0CiQodSTn87XzT0+f9TzP8rL8mCK1xQaEdMFjK6lAo4EbaNeTiew== 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 v2 2/3] intel_iommu: make types match Thread-Topic: [PATCH v2 2/3] intel_iommu: make types match Thread-Index: AQHaziShhEkI93qTq02nWGGZ+3bagg== Date: Thu, 4 Jul 2024 15:12:48 +0000 Message-ID: <20240704151220.1018104-3-clement.mathieu--drif@eviden.com> References: <20240704151220.1018104-1-clement.mathieu--drif@eviden.com> In-Reply-To: <20240704151220.1018104-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_|AM7PR07MB6455:EE_ x-ms-office365-filtering-correlation-id: 8ba64991-c07e-48a4-a547-08dc9c3bc419 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?V1BB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N2RUS0FPYUFPN3FZbll0Tis0NWIr?= =?utf-8?B?WmFYTy8xNUU0YlQrOVhrZ0RsdnQ1ZFlINVRIeE5ZNUZKUW8vNlB1UzVPZzVp?= =?utf-8?B?d2F2TWNpZ2Vpc0FEVlBXK2Y1dlhGTndPSS9lTUVDUWp4eWc9PQ==?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM8PR07MB7602.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(376014)(1800799024)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?WDlrd2ZaUUlqWi9yK0NBR0NUTysreEhZWlczZnBDZ1JyN21uSWp2NTNqNThN?= =?utf-8?B?OTBiNW1yMnFvaXczL09SdGdBaTFEVW5BT0NOY2pZeW9ST0MwcGV2VUYyVHBL?= =?utf-8?B?SWk1c1kzWWY1cU03R2ZJZXJvU1hUMExxSGQzZno3ZDNIbE9VWUVzeHlNbWdv?= =?utf-8?B?a0dMUHVVNW1wWk5JckhQaXNMWDROcy9uMytnYWY3a3IvOGF1Rm9VMC9ITVlZ?= =?utf-8?B?dS9sSUFubnpFU2FzaFk2dmxzb1FsM3pPWHo2Vmp6QVF6RWZUMTVpekhPSENT?= =?utf-8?B?N3kydGJ2NWl5dTZSRzdhVXR6a29Ua2Y0WHUrbXo4TEpPTVBPeGxYZ3FCdzVD?= =?utf-8?B?b1FBcjJWR1J0bXhjN25aZjVVWnAvY0NzOFVZQWNOdURPNzFRallwSksrQnp2?= =?utf-8?B?dnhwSUYrVnZlWjZNeC90UjlaTFU2MkFmV3lvRldxeThIMDhUYVJIcmQzYlhm?= =?utf-8?B?OE4rdzdtUWVPd1ZKb2VSejZGbERNYTdqQWhUZklZazkrMzJNMUZTMllQa011?= =?utf-8?B?MkxwL0ZFSWxuS2djUytQdWh5cDY1QXhCbE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TJFTHJYbTZGeEUrVnU3TjJsRlJY?= =?utf-8?B?dXlGWTlyQkMxdVZRQUUxamRuV0Jzd3o2cEVMVGlRNHRaVVdmM0RZb2d3T0Fj?= =?utf-8?B?MUVRZVZVbThmcFBUY3c3V2F1Tk0zL200QXBzM1F6YXM0RW5jUWg2VkFwYWRx?= =?utf-8?B?TEh2Z1E0dXY0cC9OVDFFZVVDc3pyUWdzeGQvaFRNNmppVmdLZVR2M2owbFNY?= =?utf-8?B?Rm5GUk1SYm9aQnVhbCszZDF5d3JmQU4zNGQ3VkU2TFE5R0FBUlc0Zk9CWXRy?= =?utf-8?B?dThTdjNNNnJPeUlxd09meUhYd2R3dEVoSENBdkJqbXdaWTVMZ0FiY3ZUTTVu?= =?utf-8?B?dkdZZE8vOGlGd2gzb1p6TUJkaFNIa1c1c2pFSVFiVWhlNFY1K1puSUR1RnA1?= =?utf-8?B?WE80Vml5ZTR0bFpaZVhVRSs5bHVyNkdwQlhzb1ZYTkQxR0JBR1p2WGxhSVNz?= =?utf-8?B?QytIRDEwcWVkM3kvMXdWb1lLU21rSVRTQjJ2NjR3ZGJEcnE5U2VTazBGNFFl?= =?utf-8?B?S0EyQ3IzUzVpVEpnWTFiOHljVjEvdGIyaTB2a3dXLzFEWDVsbnY3UzJrWmFF?= =?utf-8?B?STNZd3N0bDN2cG5xdi9sUXJaajhaK3J2eDBvRk5abVhMcThFc0gvZ1ZsN1RL?= =?utf-8?B?KzRobEZlczRnS1VEb1NoMDZoUTNTbk1kRmQ3N210WDBZc3pjclJSQmpQeC9K?= =?utf-8?Q?PW6lpSlY8Awx+VvTkQ3Bdo8=3D?= Content-Type: text/plain; charset="utf-8" Content-ID: <82FB477312FDD042B15B559A837FA5F4@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: 8ba64991-c07e-48a4-a547-08dc9c3bc419 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Jul 2024 15:12:48.6189 (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: FfWnISGlKNQo5unx69g4eLSzuNhGzwm3jdYsCVEBN7EMQCMDWJ2gcZna2tI2EBwtEw6Re1YPWpDrvJeTxHmSRAR687tzzuFl+A82v5AdLMf3xILqUiccUmOJCrWzukKt X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR07MB6455 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.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @eviden.com) X-ZM-MESSAGEID: 1720106019513100003 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. VTDIOTLBPageInvInfo.mask is used in binary operations with addresses. Signed-off-by: Cl=C3=A9ment Mathieu--Drif --- hw/i386/intel_iommu.c | 2 +- hw/i386/intel_iommu_internal.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); diff --git a/hw/i386/intel_iommu_internal.h b/hw/i386/intel_iommu_internal.h index cbc4030031..5fcbe2744f 100644 --- a/hw/i386/intel_iommu_internal.h +++ b/hw/i386/intel_iommu_internal.h @@ -436,7 +436,7 @@ struct VTDIOTLBPageInvInfo { uint16_t domain_id; uint32_t pasid; uint64_t addr; - uint8_t mask; + uint64_t mask; }; typedef struct VTDIOTLBPageInvInfo VTDIOTLBPageInvInfo; =20 --=20 2.45.2 From nobody Sun Nov 24 20:20:54 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=1720106031; cv=pass; d=zohomail.com; s=zohoarc; b=LjETi7bwSUgRMSNS3QXoVevGWaBC5Y2LUBHbyyOs2zNIm+sg1ouE1o0WCjxxKpVxVK4URMaXYUgxEgk8aOZv0UbB9edQe2LcK7xwLPTKseX6btt1j29MDibazpm5VimEe/u/KrddzNcxY+jG48XMPgktN/ro2OmTAD92CeuM0sI= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720106031; 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=iBpkynY43mL8XVpRQnuzbD1QM2hvJ56uVWjBhaZKJG8=; b=RAOvCXVnA4O3STJ74jjRmQdtcZaa6yQvqYoMJn42Y9NvJjbDtn8ZUHFVAEDpq+/i6+S7ff+IdK/pe8WFjR5wAFeF3elIDG2sbFqaK4a9TAuwZr7owyLFtYgPxKLn6PUxgLWS/pHU3YjsA3qrYjlWczGb437rAIv2N0l7wfhTqSM= 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 1720106031753387.0839685508306; Thu, 4 Jul 2024 08:13:51 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPO8n-0005Wv-GB; Thu, 04 Jul 2024 11:12:57 -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 1sPO8l-0005Wb-1q for qemu-devel@nongnu.org; Thu, 04 Jul 2024 11:12:55 -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 1sPO8i-0002sf-8P for qemu-devel@nongnu.org; Thu, 04 Jul 2024 11:12:54 -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; 04 Jul 2024 17:12:50 +0200 Received: from AM8PR07MB7602.eurprd07.prod.outlook.com (2603:10a6:20b:24b::7) by AM7PR07MB6455.eurprd07.prod.outlook.com (2603:10a6:20b:137::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.8; Thu, 4 Jul 2024 15:12:49 +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; Thu, 4 Jul 2024 15:12:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eviden.com; i=@eviden.com; q=dns/txt; s=mail; t=1720105972; x=1751641972; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=iBpkynY43mL8XVpRQnuzbD1QM2hvJ56uVWjBhaZKJG8=; b=aEwev2yvboMjsxfSW5hhl730nUtVyF+l2TNQN+ww0Sj9fHS1igIgN4vz sgyp7uN9jIURU/G9GACVNeBjdv0FlOdZp+1EaqsjtWqHddoBVcw8i3AcO +9Yzb9WqV7y9r5zGRgzseyKYl9eJVcW5TLNUVsxRmZhgAg/mDiJFm9jCR ys+EgFJYgho0uS2RXbFPma19jNZg7Uf/1qkCLDV0PJq/nWQp6IS9w6Qca TxmLepd7tVDUpb3YcZbzbhgQl9TYRU2nn1fzrb6GcuBjM+X8LKnqWJjEd FljrehuMFco8kmXlujQLKuGyUAhA4WFQm4NJJ9gsy1JGFMKFYAMaJ+OYO A==; X-IronPort-AV: E=Sophos;i="6.09,183,1716242400"; d="scan'208";a="16007273" X-MGA-submission: =?us-ascii?q?MDE+f+j2sBrgrESUPvTtDkOgbPpwntNHhiTMWU?= =?us-ascii?q?vzFvhOiSnoHeB0c1JPs/WDJjDHNgvernO0cjMgJmaQLYeCVG/GPIeOXj?= =?us-ascii?q?4G5O1+V0fRSkv9u+u2lyjhP1OOKR87njb8yLQJFWwheIfL2FwgVQm7j0?= =?us-ascii?q?Tv4uqRk78xRtn7rr3nXebhKA=3D=3D?= ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cjwmznCH+oubcacRiQwB3iD9vmFBrCdnDpZ2fSjtoRnFXSL5DUSdrwblOdraY0wNtdmSe/aCRk5R6nb5SJenIF1glZUQWGW+kpK0U7vm4xd5B0m0XxH6M60R3okBF4V014q8f0p/A+jwloBakyEKlzy+Y7aGXDgG0j7tXy5qgLHTTtGdqNwmK4M6I8739+inD/IXgWzVcU3IvJM4d+vIufoQxJ2XDt9u7xs3YCxTMQAA/K+xr+YqGfgTTxetTpvPZELF/4XzJljBSKb4E1pX8FAl+L36/fC3mGtoDxhwfyBxJg+IekVC1FVH0IXxWmu/twWPqG+eBl54dI+A8w7eVw== 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=iBpkynY43mL8XVpRQnuzbD1QM2hvJ56uVWjBhaZKJG8=; b=BFlJKNYpyDxct7f1WFuMjvH+g7YsFuVEObisZ3ii3XSxaC+pPvrPjfC039E+jzFmfLcVTrPw+jx6o5mVEfvBOl3R0za+7By9vBpStJUwGmORzP9/BqPBIJEejXeEGV2a9OQUxYDjyCgYlrB2VJOhODmIVfdDQmIJ7b5XAiG3U8ET4HXKJNIJD58lTHdxJXvLH4ttUevONxHJ2WkwaazbNNSPZRMjVL/M5+kp2cdBldXzYq8hDHgBRws7tb5XSu73SA0vGcJtr1GauyOlk8m3yJAYTKNLlOvEqEufgorBLZ1i17kf7nAgsukdNi+/GSiDzLqG95HeC8Qmu7hLSva2UQ== 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=iBpkynY43mL8XVpRQnuzbD1QM2hvJ56uVWjBhaZKJG8=; b=obEaaGD3llEmidi9L/0z97O0k6qITqUquppDJdYB3Mz32/kU73+zB6iew3LDofLNCEIj4s1dltlKpeAOCHMiXfmIjy9GFr/2k22kpvb9lMTrKBKYkUYIr1osqL9frIDMD+foEW0DiCEFAdaNpSAAvcXRLfryfhAercdjhNF50X27KzGmAqpLU07UacCAMHrEOCsxpDnmtht8ZBKWdQUbRR2M9FWP3uyXhxiEQABkCXBUaAZ/lBsJH4v4oOgF9KrnaIQ3uCwh1dbN1AhaNy9tRnfQDeqN2mxg1nrORw90Ky/WY4FgK2FXsXkHS87wiZQ1EYFimxPP/C+462onDiJ5DA== 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 v2 3/3] intel_iommu: Bypass barrier wait descriptor Thread-Topic: [PATCH v2 3/3] intel_iommu: Bypass barrier wait descriptor Thread-Index: AQHaziSiPOur2dIIN0e52ufwAoMAAg== Date: Thu, 4 Jul 2024 15:12:49 +0000 Message-ID: <20240704151220.1018104-4-clement.mathieu--drif@eviden.com> References: <20240704151220.1018104-1-clement.mathieu--drif@eviden.com> In-Reply-To: <20240704151220.1018104-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_|AM7PR07MB6455:EE_ x-ms-office365-filtering-correlation-id: 862794dd-7376-489d-9a9b-08dc9c3bc482 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?UGNLWE1RSTA2UGRZYUFaeVpCTWZBaElwTmxUZGFNVGR4cVhMU2hBSiswa0tT?= =?utf-8?B?bWljanQ5Mi9GSUVUY3hDZGJTYVhEVGFXbXVMQmtQMGhpcGd4SEd5MDVkZ0Rr?= =?utf-8?B?QkdUcVJKam95TUdQSzVaZjZmbjByZG5INTNxT0pUOXNBeEQ3K3FNb2FRQUpI?= =?utf-8?B?T3h3UENjSkR2aWNRWHRQVitBNTJBYXBCUHR2STJ1SFIrcXFlcktIRFRDamN2?= =?utf-8?B?VVpoWktUZkR3ajQ3QzdtdTFTcFVGTGxkTkpQVFpkWjlZSk13a1huRSthTHBw?= =?utf-8?B?SFJ3aDNNZy9rYVhwbEQ5SmMxWkZvVldKeVRvMllDclZsQnBreXF2UGxraGJl?= =?utf-8?B?aHpKVnpZc2JNTmp6b3BMYTV2WjRiN3RPTE5FRFFYR1FuZm9WSjF6dlc2RmQ0?= =?utf-8?B?K2tyb0gyNVRVejNHY2M5YTJGOFJ1aFNYYWEzNmVnY21zUkFVajM1QmZUaDFE?= =?utf-8?B?RlVtVWkvcmprZWE0SkpWZUNpcEtJTGxqaUFWSDRGOUE1TFlPNW9kK21WVkJi?= =?utf-8?B?bDZpWWJ1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UJYODd2RlJpMTlJ?= =?utf-8?B?WVMzcWMvT1J4Z3grR0xpOHdrT0loMVZ1YTV6NUdkTWxMa3BvS2ZJSzZEWEFC?= =?utf-8?B?MklWdXR3dnZhaC9RRmJpUC9USjlPc1lUYlUxQXA5U2VzbW1OVEZLR25IYTJo?= =?utf-8?B?REtEL2U1YVdJRnh3Slh2UUp5NnNoeENqQkJ2KzNGNzdPMkdlTjd2SWRzMVhz?= =?utf-8?B?Y1RXZk1WWStXaUtZWlJTSG1OUkh5RXBKbnRsWmpFUDhPYTFNbEpGMXBJWjI5?= =?utf-8?B?ZXFyelpvZ0tXVFpMcFVCd2hsc2FQSVVNS3V0REdQK2FUWnQxbnIzT2swanoz?= =?utf-8?B?OWpFUnE1cXRucHYyT0JPakI1cDNsWVZrRVM4cllydXFhM0xUS2MyR1NwbHNL?= =?utf-8?B?VWtKS2h1VWJSNVc5N2toUkIxRENnL2hDRlJsaGhPbTI4emdKZi9FS1U0ZVUy?= =?utf-8?B?eDhaVVdvL0dnUkVXN3F2cm5YakduTFJoKzA1cXFTUlV1VWc9PQ==?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM8PR07MB7602.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(376014)(1800799024)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?L1FaaXhFUFM2VFNMSyt4SDRhSzhDRStzTjNZbE5Uc2NjRFFBVkwxR0dUdmpn?= =?utf-8?B?M2JYZGxGNGVNMnZtckRUaHZlU3pPMjZNT1pwczVud1lzaXlhZkFYdGdxWVFz?= =?utf-8?B?WmZsYy8rQkhMczZOQ0xVQnRTc3pJNlM1eUVycHdCbUVNVFdhVlJadTJ5SUJT?= =?utf-8?B?MkNOcmRXYkI1S3VSYUZlcFJtaXVSdFR2WU8zbHg1Qm9VN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kFEb25GNG5YMDdObVcyQ0hEcitNd0NxWURYNFlIcHFKOHZQN0hLZTZh?= =?utf-8?B?bjhleDRDaTR3QXYyT2RrdUJTd0xMOWhQQkJibWRDVUJKYVR2WjFVMkk3d2lK?= =?utf-8?B?Q3NsRnNRT1FVM2dzL01wN0lPemVWdUF5b0dHaXd4YmpTYmFTNGtnN3Fncmdi?= =?utf-8?Q?VLZGaXG5M5lFH5y8eoTauqM=3D?= Content-Type: text/plain; charset="utf-8" Content-ID: <1CA8D6BD41C829419E7823F8B02CA48E@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: 862794dd-7376-489d-9a9b-08dc9c3bc482 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Jul 2024 15:12:49.3463 (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: V2T2A0UDX+hx+lVNyijoBAK70/4UIDM8j/soRFrGZNQZorUKSMbCpfO5Zepxj/iDyMIX5ncluERX9JnGjySuhwr0iAOy1t2i0SXNfHmsU7wbsiPhaHE245pni6EoGAHg X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR07MB6455 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: 1720106033562100003 From: Cl=C3=A9ment Mathieu--Drif wait_desc with SW=3D0,IF=3D0,FN=3D1 must not be considered as an invalid descriptor as it is used to implement section 7.10 of the VT-d spec Signed-off-by: Cl=C3=A9ment Mathieu--Drif --- hw/i386/intel_iommu.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hw/i386/intel_iommu.c b/hw/i386/intel_iommu.c index be0cb39b5c..12ea3a9aa0 100644 --- a/hw/i386/intel_iommu.c +++ b/hw/i386/intel_iommu.c @@ -2561,6 +2561,12 @@ static bool vtd_process_wait_desc(IntelIOMMUState *s= , VTDInvDesc *inv_desc) } else if (inv_desc->lo & VTD_INV_DESC_WAIT_IF) { /* Interrupt flag */ vtd_generate_completion_event(s); + } else if (inv_desc->lo & VTD_INV_DESC_WAIT_FN) { + /* + * SW =3D 0, IF =3D 0, FN =3D 1 + * This kind of descriptor is defined in section 7.10 of VT-d + * Nothing to do as we process the events sequentially + */ } else { error_report_once("%s: invalid wait desc: hi=3D%"PRIx64", lo=3D%"P= RIx64 " (unknown type)", __func__, inv_desc->hi, --=20 2.45.2