From patchwork Tue Jul 9 06:18:05 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: 13727297 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 200CFC3DA42 for ; Tue, 9 Jul 2024 06:19:42 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sR4BI-00017z-A4; Tue, 09 Jul 2024 02:18:29 -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-00011P-HT 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 1sR4BE-00083R-OT for qemu-devel@nongnu.org; Tue, 09 Jul 2024 02:18:26 -0400 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:content-id: content-transfer-encoding:mime-version; bh=2WVDF4rjnfmvDZBc7FLb5eC/asqs5NQ1qYPmmPWrRRU=; b=FjROojVewS7WpLtox6AXIVfe11vvo+/m8WCyD2CNzYlaeR5ZlDxVcSlx ya/GE3KyQnxJpXfv4Yd0QMow3Mg8B+k0VufaMVi4VFl5S9BTCrgn1cMBG p1wijwnlUk7Nm7oTR5ukZNZpuVrjEl8PvZfh8I39aTt0csCcINe52Ywfe 7j8fqFnZ8By6X/HsBatgHAfnh8+xiDYuqZvhVA2XfSpNvjql/QzHc7sxN UEg37Pitp+SIfZu/1ElF5WKvM4Wr8WQ5r4CniMjkp5gaVyckjdr9GDD/D 1UMtUvx4mM2oqU3nAEavtg7anbbV+LtqvaM+aCX8G8/x8dxtVkJAecZbV w==; X-IronPort-AV: E=Sophos;i="6.09,194,1716242400"; d="scan'208";a="16131804" X-MGA-submission: MDEQ2BdnYKmD3uwXoH2lnNfIyU6D9TCZlgH++IWRcTQFyOmYXOFkyVhPAdOVr4i4sZjOCrrmI2Oycayx9ibDWn86zullzZQiylaRUvm1a7m+FrNHzc+cf9VDouumpYW5yl2GZBBJZVw6ZuhXRVNvbJNVKsVF3K2vFb9jgMUjPWQgPg== 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 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=R+FCulyJXVfjEQ0BtRmtPSIfMyWiVR5XMkfafufUnehsN1Rd0hs5Gd7XLepCiUml0ZrYFlfE3mLV3b3tM2BOmByvkJowxcQRaYz6+AaPWp/x1zvru4AMDNlNZB7eSQO01aoytopiudSV0psD4EKLf4u+DC1ZbAoz9DlanRkyvuBONQGWbf+JnfbILkXrmeMduH52QOnBxeIQsi9MY6oSOSmX0imsp348BzDXXs2lc0JXyhSlMqnJQwHfT5PRvB5uhisD/dWGQcoCX4bjeEG0qKg7BFiQ48uQPllZXPZjS89G1F2injoTMWytz8awtegYeceOuss6evB9Kpenz25CqQ== 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=2WVDF4rjnfmvDZBc7FLb5eC/asqs5NQ1qYPmmPWrRRU=; b=sFt0znU2h8QZANE4EcJNUrUIwtEqdu6JGPfuHn/lT+4K+ks3qva4oZclMEgds8DHrEJiySCPgk4DOal7MKwQMHeb27+nGXhP37ivV2Wj+tbLZ97t7hhuuUOdGkz4kId8WNQgAQvRSZiVgC9luwN+Wrm63SJvS0WLCG3FG98a+MX12YasxeZC2MewwTZvmzvrHjoHIxk/9eK2ivcp0Rwaqi4/O12uD2joHQN8YCvZ0sbSrBrEetkLh1WTyHk8RqaB73/hR3ShssSTDUoW8WyKEl/aLzuRBvimXXo9fxC8qzsgAvphshUYEnZwrh5W4tUOHaWlldd4vxAhs0j+2DmC6g== 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=2WVDF4rjnfmvDZBc7FLb5eC/asqs5NQ1qYPmmPWrRRU=; b=c+se8I3lDlHKcsoEG7EWCkvMRgOHU7yjiOznPx0paWBALD357u2nrl/P1eFlXRvXbx4LGzPvNMjBPDjFIr2GoL/4nFxxsFOkdA9WnaSg4mKYyMmhiwcVwiPn6WrRiKIah5sxr62CmfoJKoZwnPcqjOdWb0P25T6Ex2tK7BXWEhPzqHGcIjed+VLZ6EqhhekuwR0eB8r/MJdKfmuYNxgZhB1J4Sbd37/mi5T8ijDyRoHWeH0M5+4Qo6UMjPHRk01C1cEzBFgprC2hpGeheIynz9zFocGD8Ny9XRj69d+siofEVpNQkW3AHfW36by5czfKz62+oQ0N0aWVKSmEiULIrg== 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:05 +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:05 +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 v6 0/4] VT-d minor fixes Thread-Topic: [PATCH v6 0/4] VT-d minor fixes Thread-Index: AQHa0cfClQmKzdX7ME6kH9T0m4xR2g== Date: Tue, 9 Jul 2024 06:18:05 +0000 Message-ID: <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: 7c1dd39b-5582-4d56-66b2-08dc9fdee530 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?q?1H86E1c4GkXS1yGM5OPIN1CcZbabFyw?= =?utf-8?q?B44wkLknofPKTA0w/ZwirzNncYfwySjQzFAKoBNsnjYOzwKh9Bl6/1wDSohc9CCNz?= =?utf-8?q?5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aQOndoqxi9B5jEB/+3KEl+DQN98i/XnK/mxgwMP0TnGqPIETlCv991Wwr?= =?utf-8?q?214jmEuavceeiiEkUoomCLCBZfgKEah11DsYT8++Sby4q/5KJIbtBA2jgcbn8gaoi?= =?utf-8?q?eUQyzJOxEIve3NE7l3mXJtGqScDGB/YDL48nxpMUPOBNhV5TJ32G4fhSX9nOQdsLJ?= =?utf-8?q?RU2NNtgod57cTQ3XfSy3hgZRnzqyzKqtJKCz/62emprbC5TqcBX6MRIZtjymGrejN?= =?utf-8?q?1qbf4VvVHsZlAFQ10SJ84BxN3vT2TINeC9MW5m+meTWBYC5Rlhf98q2ABhovUXFpf?= =?utf-8?q?iZNUqZnGe/9LvxL6v+5Hw709oUnznsiHWWNTfBFyeJF9PujLsgNKt4i0YFFsXdaSh?= =?utf-8?q?Ij//1oQBrlS/rUOUJ/rbrZNrUEFGzbt+5Q=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)(1800799024)(376014)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?q?fHxrz20f4JE5en6j8syfmSJZPS2n?= =?utf-8?q?tg3iSIvpRMDhE92KrijkH/+YNUWxcQJNZxvxsTESdERTggs+XKCsFEsb1dm3C4jPu?= =?utf-8?q?snfK7O4/gxgynX7O9/ZD4o+Y+RGkEEE7PoMyTe+sfLAn8lXlVNnjpiLshyqRkJ3ju?= =?utf-8?q?NQINKrPWmuaoGgwrl8OGUf1Vxx1G/nJPYRBgtYEh6wsK97j7e3MGgnqDPikZYy94/?= =?utf-8?q?r6TS/IIXDMpqI6PXqFu57VqT9SSZSkWzPJygK688zFuw/cDaC+Ahd5F7Ll7HxyMrT?= =?utf-8?q?gmbAiL9eZ2sezCw/+mIldChCJ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k6rbE1bE9ABI7vOnAPQ?= =?utf-8?q?J8aLfwpOFHDWikDmig5hmrRchdGr+ssiZE7oFpMX+9K0QnJDuV33oMKKCug50Ei62?= =?utf-8?q?vpCagecalwLqpmaN5DCHvtdhkqlPNJXcrAEe+5uE4Nq5ub2HYFeU9+sE4hxErJuKw?= =?utf-8?q?q+abn37/hFj94qh9Jp/sPVu56BkHL3Rycp8zFaNvWpLMp0pIH57RRJj6VtJD3E/RA?= =?utf-8?q?yjmjjzlJUsyotjNmIIA9JOWV8chPs4Oa/JSsdSutfCftHhVLNAWOkGX7u8W/jOJwp?= =?utf-8?q?ByYLaAlGOJSw7zN/+mmTkmXsBypN/H8ecHBLVvkLYUfaOyzz78+PqEJkFKVOF99XC?= =?utf-8?q?q/Fz3WZYDEQRhk8m5s6nwbfPn6STXNzyfUrdN9479YyNYit9PgnDaTQ=3D?= Content-ID: <8C13921358EC0549814BE6F9C66C4444@eurprd07.prod.outlook.com> 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: 7c1dd39b-5582-4d56-66b2-08dc9fdee530 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Jul 2024 06:18:05.5840 (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: 573D8WFuFL2y8mllnED+nRoT+yCVeaUBTM8AWrWNPWGpik7xZS0a7scqfZW/4Lzon8HLeNfbZG+48Abiw9HA5jAhztuBWplEvAlRAZIVS2L0kOOmjaSvoW+NdDuYkJmh X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR07MB8466 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. v6 intel_iommu: fix type of the mask field in VTDIOTLBPageInvInfo: - Add 'Fixes' tag v5 intel_iommu: fix FRCD construction macro: - Remove empty line after 'Fixes' intel_iommu: fix type of the mask field in VTDIOTLBPageInvInfo: - Edit commit message after comment from Yi intel_iommu: make types match: - Edit commit message (s/"make types match"/"make type match"/) v4 - Move declarations of VTD_FRCD_PV and VTD_FRCD_PP - intel_iommu: make types match: - edit commit message to explain that we are not fixing a bug - intel_iommu: fix type of the mask field in VTDIOTLBPageInvInfo - edit commit message v3 FRCD construction macro : - Longer sha1 for the 'Fixes' tag - Add '.' at the end of the sentence Make types match : - Split into 2 patches (one for the fix and one for type matching) Remove patch for wait descriptor handling (will be in the PRI series) v2 Make commit author consistent Clément Mathieu--Drif (4): intel_iommu: fix FRCD construction macro intel_iommu: move VTD_FRCD_PV and VTD_FRCD_PP declarations intel_iommu: fix type of the mask field in VTDIOTLBPageInvInfo intel_iommu: make type match hw/i386/intel_iommu.c | 2 +- hw/i386/intel_iommu_internal.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-)