From nobody Sun Nov 24 20:33:11 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=1720104529; cv=pass; d=zohomail.com; s=zohoarc; b=VqeDBEFNx0ewaVsirHS/wqL3PuDxSVUXtGLZc27tr6uUTa0cK0CfFBFbwkKu74OcD+CZXKbqKdwEigkaC0BT/epmivIEyt/+8GTwZsUq5JpO4uTnuj6mQQgXc+e9cMhiEgYCxz9aZ9WWO4SdJCZMvIWP0IiEsktGQR/kgi1hEnc= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720104529; 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=a4nggxG+FZu1xaed4rC7TQykaigpbisgzLdvnjt5zk/6zYKztoFfZx6ULmOPI5zv+gy0WDgDgTfa/7ls7ObcHdBYI/VbzFqWIQKCmG9jDV8ZYHjpg8gyiWhaweOYB0SQQS4Y93B/oUwzxXGMJRC/7b0kI/jcQr2T6WqYSS0fY5M= 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 1720104529338143.99949330331197; Thu, 4 Jul 2024 07:48:49 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPNkh-0003P4-8C; Thu, 04 Jul 2024 10:48: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 1sPNke-0003OL-MJ for qemu-devel@nongnu.org; Thu, 04 Jul 2024 10:48:00 -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 1sPNkd-0003KV-1N for qemu-devel@nongnu.org; Thu, 04 Jul 2024 10:48:00 -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; 04 Jul 2024 16:47:57 +0200 Received: from AM8PR07MB7602.eurprd07.prod.outlook.com (2603:10a6:20b:24b::7) by VI1PR07MB9499.eurprd07.prod.outlook.com (2603:10a6:800:1c8::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7698.29; Thu, 4 Jul 2024 14:47:55 +0000 Received: from AM8PR07MB7602.eurprd07.prod.outlook.com ([fe80::fbd7:ca71:b636:6f9d]) by AM8PR07MB7602.eurprd07.prod.outlook.com ([fe80::fbd7:ca71:b636:6f9d%4]) with mapi id 15.20.7741.017; Thu, 4 Jul 2024 14:47:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eviden.com; i=@eviden.com; q=dns/txt; s=mail; t=1720104479; x=1751640479; 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=SQiMwa9CJetiQJHx35LmIpI3/UCo1yz3IC6lLqlpfXAAKBW5rXYXriZa YUnAveKnyEp/t97hEj4LeCfg3RJr1XzK9nz0EY44h/ob/FmFUkqhR0q7a Sg+CSyz6Uls1/KebJtabPpp66bzK3PWJwYpXeIlHhTHmoTxwSwBoW3JuR bmqZn1UqjH+ZaKrJJE/ST+FZEC47fDN2cvvqF0DvvQx2mfBiDWOzGH/q9 TGGumM6RUxOnlbVjguyLh7Oe2QAEU5Eyw+YECtPpNPh6T6FmQboZpfFdl KMsy54f/hZwRUJRStRNj0rSVwmON9sDbWqDl+9eZzo6T5EgywYDZqLtPZ Q==; X-IronPort-AV: E=Sophos;i="6.09,183,1716242400"; d="scan'208";a="16005881" X-MGA-submission: =?us-ascii?q?MDHHAwn0dQXRYrONlGIN7dz8bDAZUDLaNcZp05?= =?us-ascii?q?xRK5Gh0+ZB+1vv+5iA8Z7VMQuTaIPdOGFHQrafqH9OKSb+y6wl+sl+Nq?= =?us-ascii?q?rNBrwZLK7hF7JZF+wzN0zb2yrwr0mD5zv+SJkss+GcfHCA0ArWJ8ONap?= =?us-ascii?q?guxzXcPQfXL5xZu3xoBZaB4w=3D=3D?= ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ISlvHX5/kGRuV6A22897bc4xHpGOzZFlUWvAtdudBwZf/OiThodjeT093YQuVUs4BxJdGKZSRsLmYdRwkZMA/4CoPFD1imk/oO6qV5gu5N+OIJ1+OGcLhffSdVATTWj6adVUj6rrSIvkuFNSfoVrJQcguWY1dannCZEh2mzfRznAT+bttT/l4xds/9MDHTkLUVgInFhzU1yUrK3avJmlQKy3NfKiMQQWbw3SY3JwpHR/yk9pb3TZERQtd6ZzGjFegTpDwt3tZEaOYyReP1Ek37bpGFiE9YPnaaUAolXBLJ+vSsGuxkGynHTUqwAqIgQ0kCJ5V+gabAOFvQXZCiZ1tA== 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=jxnWGYZ8jFioIfrWEBfD7/qL7y/bvOhpKylGzGcMzui+sRTmHWU//5j617L8f91zKxbfYlZJWQzqijbSje9YG8lTlZA6rBsvtgt+q1eRNdd12gkGV5WTAZunOaclhqkzTO8kgWBMe9TWfpsMErezclE6jwJ4MPTVGA2lcq/+KKYrhmvhcgyL9eVBqw7whmL07aTGjdMxPi42h/2ErA5kdXFC5fk+A5l2ded9ZSCPkuZ3lgt1Cg/9f5yJsUunIomFA+xg5SzoSK70TWQr2snK49DXLjcPvjTXjUhccCtSQPnDsDp35uN3OZTC994GXfE83LK/pRiEkqu3KKv0xA6w6A== 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=OwD1SzdyrFiW0gtV8ks48F3EjsOovFUC7uqdFT3Ai+4HIY3zcdS0uyB4LSuoH+4NUcWpvdybXqj0EFFbepI/sDPsPpM2QfmLSwnD5zOszckOir+9FoV6+ljnPKRPkmSda6eN1zf47b2SRxaL0IZ24g4OF5g/NEr7t+zIRWdJsLmsWQBkEVM8nxTDvIL9M/goRSX4ogkJ1d2PF94MxKS/v0FSuwivdbp1UoPZord1ulpDLNOFmMKHo8lRsFTnAL2InGgwpyhuUYHTqQwhOOGoyEFh9Ld0lYEr4CWTDMZmBAAbYUrJ1Q+QnJqCpbCFRRst5rrhZ4vuYPdu0wUYyh32vg== 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 v1 1/3] intel_iommu: fix FRCD construction macro. Thread-Topic: [PATCH v1 1/3] intel_iommu: fix FRCD construction macro. Thread-Index: AQHaziEntPU4BZdwwkqAjCf6BiuOgQ== Date: Thu, 4 Jul 2024 14:47:55 +0000 Message-ID: <20240704144737.996889-2-clement.mathieu--drif@eviden.com> References: <20240704144737.996889-1-clement.mathieu--drif@eviden.com> In-Reply-To: <20240704144737.996889-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_|VI1PR07MB9499:EE_ x-ms-office365-filtering-correlation-id: 3a3d150f-c827-4e6a-55d2-08dc9c384a32 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?elNPMkRMMHJSRHpoM3RORFRoTkhwcndlZzlLVFVUL0xlUkNkbFlFeWNPaVZn?= =?utf-8?B?VDRmdDhkcy8ySldnejl0SWJMeitEamczcjcrVHkwekd2d2poSXh5Y2JLSlVx?= =?utf-8?B?MWlXWWRaS3IvRHJuK3VJeENZT2VSVUZvZ3JLR0tTSzgvcC9zR0w1M1JLSG5K?= =?utf-8?B?THVZcHhscEF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M8PR07MB7602.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?bjdZQ25TYlpQRFVzNWEvcEozSDEzYXFQR3BzemhpRU1TV0pOUEZtYi9NSUVF?= =?utf-8?B?bWtaVVhkR1dnVmxTQ2FmbjMrN0hYV0M4Q0xjY1JZWnc0ZWdNcTRXeVhOOVYr?= =?utf-8?B?UmJ3QThoNXltTjBtekFXd2NRRWhCYzhEZGZ3YW1hZ2NCZi85ZkV6SUp2Ym9L?= =?utf-8?B?OVpwYzl2Y1RPUzNWK242Ly9MeHZHTldYSSs3TXgrbFFwSXBSM0VITnlMaUVx?= =?utf-8?B?c3pvakxVS1BNc0JVN25IanNEWTluNks2QUY2T0oxdTNHYzZ2Sklxd3VYbHo3?= =?utf-8?B?blFqaUZibEhYdGpVUHY5ZzlCRUtCajFBVHRBNDlQaEpSQzRMcTI1Q1IvUURY?= =?utf-8?B?NU9nNXlqY1E1U2N3NVJPczZacXJFVkx5NVdtRmVpYnBqNFRuTTdjQlc2eEda?= =?utf-8?B?c3poSFo2bjZtcWxTaVZtQ1BtNDdwcmRqVGtDY29WMnJLWjBBQmF6ZE9UcE52?= =?utf-8?B?QW4yQVBQcHB1MDgyc0JGbVVGWkhBTTJpWmF0OWNwdC92TktoZTRTRzI2NHRo?= =?utf-8?B?a1Flam00eFd2NG4yVFhMVzVzcjc3Yys1aXR1K2Z0QzZGRnI0OXF4Rm1VS2Vo?= =?utf-8?B?cHpmZFVMb2UwbEF6bnZjMTBNdGd1czFHbm4yZDRIOWVZbERvUEhKMUt5Ym0v?= =?utf-8?B?dTR5QmNsbVRrb2JYaXNKdm9wZDZEYXN1M3QycGlXK3RkOHd1QnNLTFp1aEgx?= =?utf-8?B?MXAvN0RFQkdCN2lueWR0ZDh6bGxJVFhDU281ZWVYaUVZSkY2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YWNnZmhsbGo2ZEw0cVRSUmJOTGM0?= =?utf-8?B?K2VmZmsraGMwLzEzZG1hUE5LcVBiMmxodEhxdjd5SVJveDFiM3V2NU9hYXoy?= =?utf-8?B?YkFsNC9IdHVFNWMwcDhvYlBDSHFSSzhIQTBqQzdLQ05vdzF2OFoxa0ttMXJm?= =?utf-8?B?dEl6MmNvcU52RnJNOFpBd0F6ZmJjUFl1RVQzMzhVWElWYzdBZndFMFh0V0tu?= =?utf-8?B?bHNUZUcrVDFoa25LU1dJRmRXWVUvMmhPdUNjbnRKTnpRZlBIa2N1WDYvQm1v?= =?utf-8?B?eklVWUVhK1dFSFQyVlFteVIzN2Vmb3czV1ZyWFJNU2ZqYjN4QS9IQWdNcEJH?= =?utf-8?B?ekJwakFrb2FNNEFNejEycGhyeVUrSzBsek9hOUxGTmpaVWlzTGsvaFpUS08x?= =?utf-8?B?RWFyZTlrZXB5RkxxNjM5SzN6b0JLOVh0VVpuTnZobGVNem93Njdhd2w1Yi9J?= =?utf-8?B?MUgra1M4QWQ2RWlRallZRUY5MVo2L0xvMmxxNTVXSXp1ajRuMGpXNkFtRTVy?= =?utf-8?Q?kb0O8lwNo2VBK/HyYUMRTTo=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: 3a3d150f-c827-4e6a-55d2-08dc9c384a32 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Jul 2024 14:47:55.6102 (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: 1Wx/DDKasGc7ODiYT5h4lElaJLdAgUPaSQZ1QawZj8kl53Hgl9Bv3RPzplSZyFfplFh7f8pQQiQ7O02UJR5lo2o/9bKQ2zWWJdNfVak/1CylsPEW+QRA1plQQOu0uVyh X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR07MB9499 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: 1720104530545100003 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:33:11 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=1720104529; cv=pass; d=zohomail.com; s=zohoarc; b=Wk+FZZcDJeWcdg9rydEarSsjBuDMCP4/NNZyENXraNwPi4OKEerJ4EmYRGTjDNefqKDyPxpFnOgsLHHRGoM88Cgs7DZ8sy5Zq4dQTpC2SIuZVU165jbYtie2A1SbtGy23x493dFPSqFVB4xIZZ9BYO6hc0hG3OM5rWnrtzSna/8= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720104529; 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=2svyLmHlQ6d1l2Iag7bhkpug/Bb2fDl8x+3PvU0cF0w=; b=adJ0CAlN/4lDh6GtGgkhwTaucDOE2QAdrzH3lV2XLkKI32OhBddCmrWajaMwL36oz7y5RQH2luMZaiDP15uyXwZvpEUyepMhoH4IHmyCLeFrkwAtbvtX183d7LLShVLAvYRCaekLy9c6j/XPIkYvWuJw82n5sQiPQdZmWwoKswA= 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 1720104529334290.63712123037317; Thu, 4 Jul 2024 07:48:49 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPNkk-0003QZ-NH; Thu, 04 Jul 2024 10:48:06 -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 1sPNki-0003Pe-LS for qemu-devel@nongnu.org; Thu, 04 Jul 2024 10:48:04 -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 1sPNkg-0003Lq-Uk for qemu-devel@nongnu.org; Thu, 04 Jul 2024 10:48:04 -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; 04 Jul 2024 16:48:01 +0200 Received: from AM8PR07MB7602.eurprd07.prod.outlook.com (2603:10a6:20b:24b::7) by VI1PR07MB9499.eurprd07.prod.outlook.com (2603:10a6:800:1c8::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7698.29; Thu, 4 Jul 2024 14:47: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; Thu, 4 Jul 2024 14:47:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eviden.com; i=@eviden.com; q=dns/txt; s=mail; t=1720104483; x=1751640483; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=2svyLmHlQ6d1l2Iag7bhkpug/Bb2fDl8x+3PvU0cF0w=; b=nwpRLJWuDl9F0k0yKs3ZL8KwfaOPK1gxqitfYOMfqcU7rLB87ZGpT4yX hsvxbne1c5miALI0hQ1yUER2Pj6vF2YKFrS0gakvotwTYAqKFzi+EA5BU 7qCAnR/tR0QHMVYRU+yYVODSFPmcGxPySURh5GUIj9XwyineEUTDaO2Vb /symxrfiB45bg9sFBFbg3xqQY0zpPabKh0GHaHaOBsJjkA9cU+DlieFzv +CG9Vly6wCEYci+jXl/BnYOQRUL4msQZwzLRNQANIj3XAbTJY9EV6SPT1 0d+AM8YONLqT2D4KuIzpLCEE43rXiufjIi8PkYp66xtoylhe6hSURe3ak A==; X-IronPort-AV: E=Sophos;i="6.09,183,1716242400"; d="scan'208";a="16005887" X-MGA-submission: =?us-ascii?q?MDHvxumJxW+xlRTDGNcApb8433uaACFQtIPj12?= =?us-ascii?q?8wY/h2RP1GrNjNeB+1EWlf0UhEYlhtQID2TJA0/dcJkDaSEKxkAMBKAZ?= =?us-ascii?q?D0YqMW9hPs5NzxmnXNxwLEQMglMxdFg6BtvzHS3fgfsTSPazjDOXmwQH?= =?us-ascii?q?I4UuvfX9jQRehaZ7dc34Lm8g=3D=3D?= ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AVf5W14V3tB0wlRChXB2HhZPZlpCAxiXNGdDPkYEQc7idmKe4gNz2JnSBPwq5uVtFiG/4fQg8R92W3bPon20dueKurwgcxaWn/FNprAJMuPfR4NGRqClXMOAtk2kt8Pkn6oborvugivo1KJjgshTzgl1Vx7Pw/qOsr4J9CC172fhsKJQiVXZ+FwQmBB29uyZOa1MsJlQlEk643QT69DW8Ia8FPgS0ildQzFoL+EHIaQRZYPI/UNXP1f2o2xRoKyJ/7Tozht8k8t1Ik4Pmtp3bbT06vrAwsxUCjld4L3UG1lr103G+6ihhLGXKDbpaTgm2U1FAvQPpaSGz8LiEgTQRA== 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=2svyLmHlQ6d1l2Iag7bhkpug/Bb2fDl8x+3PvU0cF0w=; b=K3JnJcmwIIU0/bxs3QVoW1e9A+Sy+gYpUF5UThoLqKtaeh+X/SHxUSTLz77f+fTZjhbvSvLKxuxzNydu9IWyF05HhDIqMNNb1ZZXnCUkh5YzqAWH9L4ZNcmCdmXVwVIc3ZWrH5pAB2lzsRULten0id7AOMjYHIrmRUv6BtonSw6YsWinIVOTVPCa4S/do0gxPRYBijjeb6pm3le4NLsUyg+rfTS9pjgojWixKvjzZznxcK59Qi70fNC043bBFJdcG+1W30iAbHAXLrIL/EMkZi/wV9eY14vlTfM9lc88JcZ7iMQW5OCwSdS6hbvTchzrtQ8iopuvtkOmzDuZibEw/g== 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=2svyLmHlQ6d1l2Iag7bhkpug/Bb2fDl8x+3PvU0cF0w=; b=X6ilOpyH3OlPuUKf2S6f8GjjpdlEcPQ3peKaVLOGQyEZDvRSGVnwDHeI3HXG1ILXj82SH0NXIAqVICT814fbFfkSR4pCxu+sJrnGX7dxiRrpKNAIaR4Qb74jefzwjqqpahcfV+zKSs461KRJyg2glIsEV95f5IAhEWWqmlQuLpNuSkJVxlOxz5h4GqfcNHkPjZjfqC5xRhto0OUG/VuvgFJN4jGJMogUsXo+ptyS1EL+j3sNDszQBm8cwgJe6DsCRwvnRxiVZA++IAPF2ubou7FzG81z5tKLWaPdXyW2YmJfsuB4EHTaC98+zqv49q5OOFtQaniSAs7cPhxOnEsnzw== 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 , CLEMENT MATHIEU--DRIF Subject: [PATCH v1 2/3] intel_iommu: make types match Thread-Topic: [PATCH v1 2/3] intel_iommu: make types match Thread-Index: AQHaziEpnBS59oBIpUuVMnrpPnUfBA== Date: Thu, 4 Jul 2024 14:47:59 +0000 Message-ID: <20240704144737.996889-3-clement.mathieu--drif@eviden.com> References: <20240704144737.996889-1-clement.mathieu--drif@eviden.com> In-Reply-To: <20240704144737.996889-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_|VI1PR07MB9499:EE_ x-ms-office365-filtering-correlation-id: 078e6f02-8941-4a44-235c-08dc9c384c78 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?VS9OVEdsNDFVdnNCQWx2RlpoemU3VVNhQUY0YXZQWlROTEs5ZmhBUXNLdHYx?= =?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ONlQvaEpzMjFFaWNz?= =?utf-8?B?RU5INVhMUjlTYnJmK281cTRaaVp6akpkYzZmZE56ZVNkUWc9PQ==?= 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?MU1MOHJRblJGcTRmTjJYTFduZHVwZzErdVNvUlBlQVhtbk5scS9KaUFZV1Ry?= =?utf-8?B?amhhc1pLeE5HdlYyTlN3NmZ0YnBtSC9YTEszMnlkcEZYSW1adzlVU3AvdTZE?= =?utf-8?B?aEpzbUlRRlE4NzFESzVMdmRpTHJ4M2tBR25ycm5kakM0akFjdUxydUVEYVZv?= =?utf-8?B?WUkxOCttQ09IYnhTMGNvMHdvRFp5L1N2bWw5dmtsai9KeXU0Y0o4a3Y2YStU?= =?utf-8?B?SklTZWxvamFqYmthb2hyaDRqcTdjSnhSSStjbk8zSjFLNm5nMWR3QVBkOEps?= =?utf-8?B?d096Q1Nqc2JwKytLdG9VTTQxdk91dUI5U2RlZHlLQUZjTWRKdTNtWGpnMWlZ?= =?utf-8?B?VGQrN1hxeUU3Nk9neGQrV3JTRXZ4Q0JMeWRmVmZLVytHTEh5L1ZpcDBWNkNu?= =?utf-8?B?ZXZ4amtldSthRlg0WDVGZE9Ba2M2S1JHYWJxdXNsNkxoOFZSZU51UmNqQThr?= =?utf-8?B?SjY2YUhLWTlUWnNFZVVEb0RKemJBd09rdldPYnJWdXBPODhaUWVRS0VsbWY2?= =?utf-8?B?MDJZTXc5OVNjVkpORXl6OHpjOFplVzMwUWdkU2lHam9vQ1hSNWlub0tYcU9G?= =?utf-8?B?aWFIelNCYi83TFhLOFdlN1NZLzlrTEp3M3UyeGYwOC9xMUJ0ekdYTmszV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SHgwSFovZkJiN242?= =?utf-8?B?YXAvZ0VNRmhDcVBGQTdmRWYyUXBLejBtUUlPbDlwcnB0dG5ORVdyVm4wQkpG?= =?utf-8?B?WlIzQ1JGWTRsckZSTTlmV3g1WnhrYVltUC9WYWc0a1FkSDdmU2k3cldOVGFp?= =?utf-8?B?Sm1LZTFodGhZN2FZN3E2T0hUTFFNdGlWa3FsT1AxZlJaUEh4S3p2NmVHTkpJ?= =?utf-8?B?b3lraWkvdkdKRjh0VmprY21kSzEzak1uWW8zU25ncHZPZS82bWJyT0lNSkx5?= =?utf-8?B?MGo0dXlQY3NyL0VEV2l4VkZIUWowWUdnOWdoK1M4VTdiSGxheUdHaXBDdWM4?= =?utf-8?B?bDdPLzFyOHM5SFRBMWQ5NXY5QU1iQmJuMDM5b3JyazZYazgxbXBkSVA5c2ZP?= =?utf-8?B?R2lzWitvYVZZMWlISk14a1FLSWJTdktkMm5pbGRxWnRIUVpkVldGOWVLRFdW?= =?utf-8?B?YS9tSUo1R2tGa2RTVWo2Z202QUViZjVIVHNmR2pTekJFNTMrL2NocmVNK0Zu?= =?utf-8?B?MjRNc2M3cHNNUHczSEVGRW9YY2FCS1JSaHVqSzFUQlVIRTZWTUc3dHhCY29S?= =?utf-8?B?Vy9qZTZ0N1c4SW9NcTJDeHZheU1BRzZZRUwwTlVveGs2WjdwMm9ueHFlanlo?= =?utf-8?Q?9PvNBEAKh4NoIYz7+F0Qwgs=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: 078e6f02-8941-4a44-235c-08dc9c384c78 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Jul 2024 14:47:59.4631 (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: FWo9zLY5LXmPcvzneebd2UALRQFOHmy513cPPXABLK90QV1lzvoAXZ9/Sfx0ziH0AjYS/12nsXHFQreA2Nsu0ssmF+xQLCozBUkg6c5yOsa6dKU4SL3OnnQEsaLsxYSj X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR07MB9499 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: 1720104530652100006 From: Clement 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:33:11 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=1720104551; cv=pass; d=zohomail.com; s=zohoarc; b=lI0S0Pn/GffsWl8eA1vdS0j/iCiEUJnupjvLDc0SHNiGCphx7SGIqvdJBix+OpyTdUMO3btdde/fa0k2z/wr7e9xRPaTUXbduUtjh1/GikX2DJiJWbBg82R5pWLeLochvrAJHPZck9r8hzKlf33ecB/7Xn0+IDj4CbHTs9x1/Mw= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720104551; 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=QQb36lRclXYTkFjtwY0m8Lyj053oQOM+CfZ9/7UX5G0=; b=MOW1eO7mMF9SZc2lZ1W4QTeUZTNsY92HLHITVyTLvE+G+hOcwFflv0kqjhsHXyjuGI2EDLCu+jwxWBoMJxr3IBvr5nULcGwCsn4ZPuXpojOQJb9rBw5JAFR5OgTy1g1R+SeVcJkhjopI2OBfMDyMB+2luzVvhdzJs8hc4zoXEA4= 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 1720104551423248.98195328250813; Thu, 4 Jul 2024 07:49:11 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPNko-0003SA-DR; Thu, 04 Jul 2024 10:48:10 -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 1sPNkm-0003RE-CT for qemu-devel@nongnu.org; Thu, 04 Jul 2024 10:48:08 -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 1sPNkk-0003Mu-J9 for qemu-devel@nongnu.org; Thu, 04 Jul 2024 10:48:08 -0400 Received: from mail-db8eur05lp2105.outbound.protection.outlook.com (HELO EUR05-DB8-obe.outbound.protection.outlook.com) ([104.47.17.105]) by smarthost1.eviden.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2024 16:48:02 +0200 Received: from AM8PR07MB7602.eurprd07.prod.outlook.com (2603:10a6:20b:24b::7) by VI1PR07MB9499.eurprd07.prod.outlook.com (2603:10a6:800:1c8::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7698.29; Thu, 4 Jul 2024 14:48:00 +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 14:48:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eviden.com; i=@eviden.com; q=dns/txt; s=mail; t=1720104486; x=1751640486; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=QQb36lRclXYTkFjtwY0m8Lyj053oQOM+CfZ9/7UX5G0=; b=BYXF9B67ECto9NruHiUBh/LPTSuLOjRN4UK1+g8xBmqFyOQek45qaCpN /KogIaKwyKFvQXQtk4YsiB9nSmD3W1IUeaYnyzWrGvfOS+Qy5F87j1Yim +M9EOpxzcQdvknEc5znGHlhIiTO3eFOXGnqu1Na34Z86BCtipmE5rb/Ru yzL7EOfXyt3bNJsEN2IojELYWvuka4K3cL9f8O69ddRd5ZERnL/60u9vw EnnpwBhUnaTGCR1FNYSafGFF+Y/ltn7MPu0TGYogbDguMKhaxgpqyu6ow 1HhSPImxzBqfJTz/v/bsdPNK1FvHhsqEfCuKyexaKrJac0PwzTsaGatMd Q==; X-IronPort-AV: E=Sophos;i="6.09,183,1716242400"; d="scan'208";a="15900767" X-MGA-submission: =?us-ascii?q?MDE+WswcBz3JFwimMrhWkbhout1gA3DnuuzYTs?= =?us-ascii?q?vXwuP+7meO8zIjdl9RShBbQVmTV24g1iaJ7dMzvJ5rSIg/zDFycmFXW1?= =?us-ascii?q?UKb7IkxXc/3krlXdpKkKpS69AZLfjRPNBvK8GqhXxfsUVx7EmPPdRblm?= =?us-ascii?q?zDA2McNQjdZH+kb5R0mZb5zQ=3D=3D?= ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IPns+1ZQlcWikVS6E3wwOM1rHfGjWcTc6ye8KFT2VpbQsNymZNI7YTw0FirzV/0le7eVwLMsoKMa1a3mlmHDoVhLJF8Hkg6kW72enGS83N7du6mavzkSDxhao5jWPAOsOGzbQoqNZItqfKOkOSBRr/xzzifz9Sg91X0hCfMxkWg/xwhd4sO7h3WixxBPudDwLMyIiTIDnhqdtOLde8FME6h/MSnQvLsUoiQStIsdCrX/9iZzEcpnfkCx9AytXlZwv3ILFYfjsyjZhq8E7bar4UEnxu/lqegDeha1mHJd31BjyezPpxO7b0TXnRcwqAsZFMG/F3Np8unABtt7p3GZzw== 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=QQb36lRclXYTkFjtwY0m8Lyj053oQOM+CfZ9/7UX5G0=; b=Kvc7I5d/DJCq2Ys1jHK42uwoBnyJEoUM/+xWRGrsC6tEBWb/n45RYJEpdyWErCDzC3eWKKaHivGfmDBeiHP/20dh18XqAmHaePxHd6fcz2tUhDk2ht0tGZs5yhVgWDFEARRUngqcVwu0rMRmVKE+qaf2jAPftAyiB26mfBteJJfXjEn01ny8SGMFnkJ6WDIOMnZkVvO6Psgmh/5qmhbtv2+RjvqzhX90V29lYT6ptr3nBpdWkw+HtRyXFk+t3eny33H831HPoFtoEI+1WpGdS4iEd3maDz/4R8uxvoFn/jEAyimRF+O2K+iCwOo/pRzKTNQA9NRk43Dipo3iiC+k8w== 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=QQb36lRclXYTkFjtwY0m8Lyj053oQOM+CfZ9/7UX5G0=; b=LRSmNWLT82D4/6//I31gSEoeTM0gnWMlxR7ebQgtWXmpFFdWzoKv5EOx9kVuUSxqWMunlbN9YlaUSEkjGzx3cNTMeVzf5+er4V5QkpmUHrNyG1Ag3G5PxR0RUkoJEJF4GMfVuEpMDk4sYaUdyeCH1RCiJ09H3XSoRR3vavevcKN9p6DifUbp/GoZIonZZ9uV1q+d9YPIS34ITBQ4top1dWRvcQ8isaXfDNG3WQBq5+Kd3eKNGt3dnViB9XgI2iBkq0m4cVscAbwtn439h1a6SPuosfnmmmXWe60ga6NStSgVIZOVSFZ3/IMsyYmzSauW4w7RuGmiWHudQSnsdju3tA== 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 , CLEMENT MATHIEU--DRIF Subject: [PATCH v1 3/3] intel_iommu: Bypass barrier wait descriptor Thread-Topic: [PATCH v1 3/3] intel_iommu: Bypass barrier wait descriptor Thread-Index: AQHaziEqYSd3fPOVYk+uet6FPduJ+A== Date: Thu, 4 Jul 2024 14:48:00 +0000 Message-ID: <20240704144737.996889-4-clement.mathieu--drif@eviden.com> References: <20240704144737.996889-1-clement.mathieu--drif@eviden.com> In-Reply-To: <20240704144737.996889-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_|VI1PR07MB9499:EE_ x-ms-office365-filtering-correlation-id: f34f8d91-3a57-4517-6f3e-08dc9c384d40 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?UWM2d05tbUxxS1pocC8yeXBtR0t0d2hUV2NveHFUK05PaFVIZ0ZZa28rYmpi?= =?utf-8?B?K2N5OXZ2VHViMHI5dml4dzdzS01CYW5kSzh6QWJ0ZTArR0JPTml3N2Jzd3dT?= =?utf-8?B?TG1TcFhDKzg0VXIvanNVaXB5cExvc043K1VrTmdiVHUvY0xJMjg2TDNnZmZU?= =?utf-8?B?VW5KaFVVWHoybVFVMExLZ0dQSVFXTmV2bndkNFJXUXZVaG5XU2NLcGhBUFdO?= =?utf-8?B?dWNadVN2dTZWT0JzaUpYRGc1cVQ0RHpvclM1bXllL1VNaHVyR0pJTFhHWHZy?= =?utf-8?B?TUVhUFpNNnRqNC9PZjVObWc4REJaMHN0bHI1RUxxVXA3T2k2TEJmNVZEUUc4?= =?utf-8?B?YWlNc1hnYWlnTlN4K0ZOVzJsNkxOT081SG4yOTl6Y2I5MWs0LzBFY3lXb1RP?= =?utf-8?B?cUFkVzFnY1JpWS84MnpZOVROclBNSkgzRS9aN2xwYWYrYjBQQ2NXdTJzTEJX?= =?utf-8?B?NmViQndzWGhWQ3IyeFVmeDRaeGd5MkljRlY0QVZqbS81UzZWeERacWtzUy8w?= =?utf-8?B?eHF3a1QwK0RZWGdiQ0owR1A3RElZU0NuajlIaEpJWVJrRjI1Ukc0MmlEWFdy?= =?utf-8?B?c091ci9ZczBQdlkwREU0NjlpOXoyeVBJS1ZhY0JMR0tmc1FPNVRlUmRhSnlM?= =?utf-8?B?b21jM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p?= =?utf-8?B?TDQ1WTZ2bmYwemo3RGVpeU13QituK2hlV0Ywd1RFV2tqdUJYLzZxaytneTJT?= =?utf-8?B?bDlrc2htVVVpM3JTb0o2aXREWHBQc28rejVzZnFGVERtdlBEVm0yTEFHRm9x?= =?utf-8?B?Vk00SmZhNklFa2NrbEtrdldwcFVXM1JPYUxSeDBsU0NSTkcvOVZCNkxGVDh4?= =?utf-8?B?V25zNDEwN2srVEdUbEFCU0JIRGZHdHlNRUQ1b242aWRjbTVDdk1kZ0JqSDhU?= =?utf-8?B?NUx0MUg4RkZ0cW9ubnN2T2FtUGlqOE4zSlRBNW04Q2FFSVZpWkxkTjREdzJY?= =?utf-8?B?WmpwMjFSa2FqV0FSd1FoSEtsWDMwTm55dFJLRlVHS2Z6UHc9PQ==?= 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?azNSdTVSV2Z5eExDWWpqRFBCdXJNdXJXU1FKTzc2RFRhSEkxaEE3d1JJZmVk?= =?utf-8?B?L0FBejZicDZ1T1ptU01ncEN2VlFaUXFRK0hoMVgyM08rbGxyRi9yY1NkdXY2?= =?utf-8?B?RVZCMVBSZXlMem5VZnFDSEJVT0J6MEdqdmFBdzR0Q1F3OUk1TTRlcVlpSFBp?= =?utf-8?B?dUxTU3U3djJZVjlVWkZRUWNubjVvRG5QbGw4MmtUTzRKM2J6eGZXbkEvemE0?= =?utf-8?B?eXVqQ2o5d0lmcXJrbkV4eHJFM1QraTQyZFNHWUhjeW5PakdKYTU5WmFJY0RK?= =?utf-8?B?bnBxMythd29sUDBqekdaQTgyWmlrcDZHTVc3ZFpjaEhoK3NUdVJsMDBNS0lN?= =?utf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pTTEhFRUM1a3pxdEFtRCtaTVhqWitYYm1E?= =?utf-8?Q?KQEkWKUmhBmj9veZrZb975Q=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: f34f8d91-3a57-4517-6f3e-08dc9c384d40 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Jul 2024 14:48:00.7514 (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: 3uw6qK4VvCH60Qegk9xsPdXFvvgOBtf8hz3mv05GBpkH8qyz3X9dkVDgWnGWP/mknT3bYPs405WWy+bTGsvPm7XB3KObl5hC1QtpA1hAi8MpLjw05uAt/XFRJeFMCeuL X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR07MB9499 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: 1720104552133100004 From: Clement 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