From patchwork Thu Jul 4 15:12:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: CLEMENT MATHIEU--DRIF X-Patchwork-Id: 13723889 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 53281C3271E for ; Thu, 4 Jul 2024 15:13:23 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPO8m-0005Wo-CL; Thu, 04 Jul 2024 11:12:56 -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 1sPO8j-0005WC-PM for qemu-devel@nongnu.org; Thu, 04 Jul 2024 11:12:53 -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 1sPO8h-0002sV-MN for qemu-devel@nongnu.org; Thu, 04 Jul 2024 11:12:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eviden.com; i=@eviden.com; q=dns/txt; s=mail; t=1720105971; x=1751641971; h=from:to:cc:subject:date:message-id:content-id: content-transfer-encoding:mime-version; bh=8WAHgPd4K0C0myyBl1FU6IKE7U1LIPQnk8KbC9Ip/sE=; b=UEFLaQM4RoKnbGmi12VxZDkaokmox7mN/C8CEo73B6vfwMvsB7b93MlD TZ+pbLxUDLPCjnDvJM3YXllsHjPEaY+uO0SGsFhw76QyUUJ+sMmz2lr0e 2IXGMn/KYiWxLJa07injR02hGS/P+YyPg0YhyLF9fBqWIm3LbWZiRf4Bi wNgyCZbYVbqTcrdUhmURxeg+xGOO2K+n0NSQMdr3pg97oEugmkNsTI3Xu XIGJK0+jJCRbmFrX8CN0h15PTI9JMFFCmgEIGqw3k5qOda/yU0JZiLvxD 6dFLwOH2DGk3bBFNmD3Fza6/GDkQB5zPDKUGvvfLgpdZy17dy7ryUAe2K A==; X-IronPort-AV: E=Sophos;i="6.09,183,1716242400"; d="scan'208";a="15910924" X-MGA-submission: MDGlQGXZfBj8m2Vpy02m4MlnZGFBzjmf1Ex+lBOz3jxKoWMI9hH3eN1yU/Q9KhXqTcLRBHA83kvQ863D88Yi/IJJLX4pzKNton++XyJyBeU54p4+gyd0OaKCHH2t+/keysiTuD4dk0td3iSMgq286fqHcs3MMPcGJYk2r12ClQfUmA== Received: from mail-db5eur02lp2104.outbound.protection.outlook.com (HELO EUR02-DB5-obe.outbound.protection.outlook.com) ([104.47.11.104]) by smarthost3.eviden.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2024 17:12:47 +0200 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UeVHItMOo3VOzptFxOwG8tOYZfzNsLYjtbDAMEcvCdMonujIZttqeGA/iTyooPuaivRP/cGuSx2VeTaQF69aCd+v2PgOBOBgGwyPSCcq9aXGyDoCkgKZnJnMcMUK5Q/+kLLCd38OtlI0ECTvmZG5ZG1kDiy54pwV3a90z3GNES2sdN9xz9psvl1eCa9N3sH+h7IlflL2MvIHmWUmG4Owsi41AB2keNt2fI1OsT6tBUtSHicRL+hM6Xl7wTME9+QjvH9XL+dOp5f4DwBuarCBsgFfT6dwrmIuTdhSQV6q4s0WxDf7dcx3WxqDo9tDmUa2Boc4XxcIceVHdslkf1m/Rg== 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=8WAHgPd4K0C0myyBl1FU6IKE7U1LIPQnk8KbC9Ip/sE=; b=YgA9YSwZKOzZrFapQtzAhWgveZM7zSCzJR0CRo+nHw5GaJAe8AHu4ZN2TR3AJSTJnB8b1vUt6pf15UAwJ+fA3oJnKLhjwp9TtIepQTNoYq/jIrJs2IdKb7VBPPLYAwDmwgX+USyW89kxS2uF45VHRXKakN5hrwDIPUlhvaBSnGH4xalnwbBaHU8u2plAlm66QGYSDp0r5mEPEEBj54s78bMnxUYAw/qezT+JH70J0a0d9ddIvc5gETqcXHkHWy1NbDWaIngx7tya8yEVUDbOwswI1Otl/SeqM0BFS03bNkylFkHxZ5tyRj+XDu59oAgc1SKDlwZ/abD6qeMRV/87bg== 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=8WAHgPd4K0C0myyBl1FU6IKE7U1LIPQnk8KbC9Ip/sE=; b=OrwIG1UzW2b/K2rIC2wkxwVYu9ejEixGyPuItL8452oGynhxsfigOjXCVj19FirkuXu6NHYYnXugKaBiVnuu1RuFXkLOEEqO1x+s8g0W6uMwVQGhTZ/EmtNHvDIUMXfkSqdTqAP87OpI/ebcvaSLzZ/a9/5eU5tjz1oVRoaMcc23kjfNI+PrumE+dATs8L6qSK2BxoCI1GXfipp5d+0WtP9j+byQuMbvQVOoVErEJwZdWwKbuzfSTmmNlgcN8qXYpeYMzjhG9XJTd1/pHiYi0h88T5AMCRuFSYtYG4zQ0XjLV5v7yr48q7D612+radvb1eaYcfIEanciuEYH1OIFpw== 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:46 +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:46 +0000 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 0/3] VT-d minor fixes Thread-Topic: [PATCH v2 0/3] VT-d minor fixes Thread-Index: AQHaziSggzEkYQkwAUCS1lecRxxC7g== Date: Thu, 4 Jul 2024 15:12:46 +0000 Message-ID: <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: 8a7af9aa-f4d7-475d-ead3-08dc9c3bc2a0 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?q?2vhFAiLH5qjIoJYL9zQ3g5Osfycfnl0?= =?utf-8?q?uceNyOAsEFoMHnto0UKPSzuViNLMLje1NE6T+VEYS+c71MlnKskm5K3qApQgRD73o?=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3mUkPrzowxIV9f2VS3Z8xE+rYgzbNHYjmLsJn2j/bsXe0k6mneZ06JzjAwwqf8Ym?= =?utf-8?q?TPE2GNxMvBwZG5E7nMlJe9y/uNvgGdbpq1Zx+nmGPTszOrIm6ZzvO1IdAbYf2bZGT?= =?utf-8?q?kqB1KTfneAkIcnYB9T4velxZEYs01c7L+JoBsmIBnIlCOMnx3RX8VRW7lXQZCT06Q?= =?utf-8?q?Enx2y58FJ4DvVqoFZ1FQxGN2BRA6Fv0d1ubn/w92Tqq5ErEv35Swi1NRZZnC2CZH8?= =?utf-8?q?7gRZUS282eoorJ1bEOF5zW9ab5tZ4GZZ2imekyzwDwOoWUqDAIlkJMfAmIy2Odih0?= =?utf-8?q?TZ0u5VCe2gdYJUZH4Nqnhd3QTH04BFcAxYXRB9jETgur6kX77szXkzqHaBLczgMyG?= =?utf-8?q?x8JbSnG61c9wghRGIR4cM1Uk1kNo26gudw=3D=3D?= 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?q?5punKzWMUsKvTmc8mlYKQJGeq5Lu?= =?utf-8?q?vRw2iKaaKEeaeQ21Ut068mDfEQppkeFrEEu+W89vjJLFlOkvyTRFcVxpkImqgLmyZ?= =?utf-8?q?Lh6jYVeK9dDETmavXLGhNKszwrZwDv9XvxgbI/tRkW/IEEHPVMs8eah6wWS89y9ZY?= =?utf-8?q?TClSFuhsh6vQUEuKc5WyvsVH0B3gUO39a7S22/Rv8d7yASbdlZZYQqcZKRWHX+7/A?= =?utf-8?q?DB6xjtKsq2nvNtXMxUGqZtfpjmgSgL07a6FDExV5hEH5G87tn220odGeyAAW/e6ga?= =?utf-8?q?/l+yUOS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-8?q?WtCim3PIINVIvstbvTVXgZY7awnGUPgHIVjoUBYM4OvJUSt9eTlYMGERAOQwpLY6X?= =?utf-8?q?ahB1OMvBpNfepSHIxA9rElwsb+aWrGJKAULfmEF8FFFa2bXH9QTLb+Wa7c7e8buaE?= =?utf-8?q?zX0IkpI2m4CHA5Pjk3kKH334fdXH9O8xz0l2O4255YYUpcHX7FliH1MtAmartJ05H?= =?utf-8?q?pUn0oXEV6z3v6DyUuv304kr/YeRY9N8KrogqUedxpbItU7VhmgS59jriwI8IFNUXL?= =?utf-8?q?wHGXynZlvBEzZ1d4jPNhickhhZ+dOHcPtasf43dxfzvd1ztaLh7CX0Tv2/0KmmZgU?= =?utf-8?q?givfxnMcR+ycLBQlHCiyOzShYcQT+vzT5HLaDhydfzKZeHXFY6F0j+aWeQYzxaYfJ?= =?utf-8?q?R1tPBKUCX2iNV0bNlntDcsEYsEdA9udT1Ktyf/lh8cbxvKZ36I15R0E=3D?= Content-ID: 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: 8a7af9aa-f4d7-475d-ead3-08dc9c3bc2a0 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Jul 2024 15:12:46.1755 (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: q3+7tp2dlsJhtgI4AOUjs+DblsZ7zvwmQVgdTVjfC47IzhWcEKWWa019QTxmh4GMWhozvf58dObbIxGfbB/a//hJxDG2EdqEublwbknfCaR54q4+Rwj6uOq5eH+vu3zt X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR07MB6455 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+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org From: Clément Mathieu--Drif Various fixes for VT-d This series contains fixes that will be necessary when adding in-guest (fully emulated) SVM support. v2 Make commit author consistent Clément Mathieu--Drif (3): intel_iommu: fix FRCD construction macro. intel_iommu: make types match intel_iommu: Bypass barrier wait descriptor hw/i386/intel_iommu.c | 8 +++++++- hw/i386/intel_iommu_internal.h | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-)