From patchwork Thu Jul 4 14:47:50 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: 13723862 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 3316CC3271E for ; Thu, 4 Jul 2024 14:49:11 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPNkd-0003MI-Rh; Thu, 04 Jul 2024 10:48:00 -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 1sPNkc-0003Lu-Oy for qemu-devel@nongnu.org; Thu, 04 Jul 2024 10:47:58 -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 1sPNka-0003Ik-8B for qemu-devel@nongnu.org; Thu, 04 Jul 2024 10:47:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eviden.com; i=@eviden.com; q=dns/txt; s=mail; t=1720104476; x=1751640476; h=from:to:cc:subject:date:message-id:content-id: content-transfer-encoding:mime-version; bh=lIa3kLNXNtESElbT5wVQaoh2kvRUuxxFmBmpHjBfZwY=; b=uyQjlGcCjZNTmF2f9NKuDBQvh9KjprISe2SMlm0qAmSvGXL+Vw3QiAzG R6QRHuOgmHXgadCVZTZvtzvzzMBg/txllFBRd55kViIzWLdK1hjKz9jPK RDIyVYEAitgHlkStaSZOSY18V8HWPr+uGgeNB9gMc7bzd9yGZTnp8SVjJ 8OOeLPDvpI0KCEOK/cQx6Xnwz/AL6bU1I5sRzOhR2RUJtHPnnbqCzV9eC aWyR03z/088fCfZD0dmUaMjde0XXWlvjdblAA71sFp2NUZLl8aEEk/yE/ xQFs6UKFsP+SV/AgvSD9wc6B1N/VyKisWuNNKC82nOvhVBAPbawRnMNDg w==; X-IronPort-AV: E=Sophos;i="6.09,183,1716242400"; d="scan'208";a="16005874" X-MGA-submission: MDFqm30DOdUr4dGjubz/kzlSmSyZzjRuXMZTWPSUeUYAwksiL70QzutpIuBuHhzgVa9/rGewbbcu4ZkZirQo4DgNlncM8YCVW2OMtZQ4I60SLQq6UMmuhHynSjNCybQjybEJAm1ppKgBtj7LahFgL9mXONoCx064G5S/GTpgUf8g3w== 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:52 +0200 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=d5y2giFF5R++Kq8dIsD18Tut12EBHKmRBfIkGMmIHoSI05FUQuym3IpED0Ml9gJCp2UQrXgjsYYZDovNobtnC3fl93mOFdhc4FNP//7MJiw5P8f1718CXv3VD5t6PxN8kkDJPV3snEDtyTfkQZ3OanXh4dwxNyFURk8C3DNiY8L6TuIdkNj0AQ6Zstga/z/LWwsX6DAigbzGdNAiTxNz6XMTUGTZIs9P9vchCSi461T08XREI9bqCN5U58452dIFgjuOeZqBQMzYpyp+YkdJdFVs1xYy/N2iWN4v0LdJ9qWkbIKrZIJL7HfwMZryXqs32c/RrpCTgwRKYPK724E2JQ== 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=lIa3kLNXNtESElbT5wVQaoh2kvRUuxxFmBmpHjBfZwY=; b=RohOsracYTImYQJwTrKMGht7f4Ckb1fah0mS2FqyU4j4OvtMGdCHRlD9psvxHh253eCH5fAKyirPqdjj9qNbF5dbZYq3XJM21X6U2AvWAPEQTKHsmDSfWJNBIptyrs691vTGgE/sZlC4LZCBIl13hFmOM2GN3Sm5uNpK7bE4mZ91ELhmVxA2oyBW9vSyK2OMzJy6tx4peTBm6os7dotsg1wlkRJPSZyFpAzcgwvD/HPCO5EUdGdpxGzVu3uhlf79MXNxY2HXKYEgRsfNl+3rijwvQKhs6Y9jzitRRwtEXvawYb+zPBrghAaTPE55FeHNSI3Ao+g23sqO6qZ9wolaJA== 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=lIa3kLNXNtESElbT5wVQaoh2kvRUuxxFmBmpHjBfZwY=; b=EG61iB7MrV3/+oK5H2U8zTZtjmQgmX0ZW092S8FxAun4fsTsaEFEY6FQ6tYPitSfGlwZiYsxpdIEPIMsJYTOOATiTtGEXoazOAWPfmpQEWRT9JyBDrBO+nfiA050tvxjjLcizBxzPNR+wBwrdup9ChZsfV4vX3JXEO79bYHydhC73oLAlNQy0lV3D/SSTqiUr3AHJ+n+dSUaRz/Pam03ndxIPg5x13iCzoHnwgtVdp6UwGRg6V2++t5gfvf1anZVTPP1Hq0m5isdsZ1abKHaN4Jp5Dc2CCTMD7kywdwRQwmr/0t0HGhmXMHi+loZ0X4rF76wAyvBWQCi9TZnHGH7xQ== 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:50 +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:50 +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 v1 0/3] VT-d minor fixes Thread-Topic: [PATCH v1 0/3] VT-d minor fixes Thread-Index: AQHaziEkv+1o7IJNF0+OMEZWEkvowg== Date: Thu, 4 Jul 2024 14:47:50 +0000 Message-ID: <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: fbf4cb44-015f-4b08-0a5f-08dc9c38471d 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?4kUfwKA8QexvQyLTaHbcU2k06b1/GRN?= =?utf-8?q?gitsAxqLE9NqFvLyYeuTo8Jtu01xkuCsFny4CrW1D3MS1u20vReC2YQ4LVwGC0GRg?= =?utf-8?q?KwkNO7crh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PSAIdJ30VXKHYguAcJdjkdnWR91voTJXc7OplzLnaeWAGFh/0he?= =?utf-8?q?FsU4ut09YjZDiUhCMOzLEEcLC4D7Z4DHgdaU/h38kP0qubSy3t8jME/nNdIOrnSC2?= =?utf-8?q?rwKMVuxacwmwJG3DxJ5PmjBrZr6FVu3QhYRtOkMz/v/NeGAY9UG5l6zGNV3j6HfYJ?= =?utf-8?q?t83IWX6Tgnn6eewtFNwdSRE7ssUh9Gw8CGJDW5NXJTF9eJEdfz7IwKMQztLTWVVGC?= =?utf-8?q?ClJ7+alwkAUPfV2hj++uXP7sSuYKhoWrojwtSrmc4JGt8pauM3OxYFyFOhjOrVYuU?= =?utf-8?q?NrejyaXnvVTj+lGjz6St4pHjHZfdTB7K+LtyRzcVI5hwtkts+pC0FSA9+Vg4h2cHD?= =?utf-8?q?fUvgTPhYVXDSeVW2KykDg66SJcgx3JF7bg=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?Jn3CLDhXpEVvOnx3F3u+yS/Z/mOR?= =?utf-8?q?w5E5IQUBsMuMRt5X3oRFx3a2b4XZ4B/nNF2ikeZDMOsKXzNiFZ07ua3La6XCgOPNb?= =?utf-8?q?L0O57sxBvVT60myBXMvFxNteD6HL6jPmdHWqs61UKUIPZruk/2wc8w8Lz/G7kQbCE?= =?utf-8?q?iJaZjPpjT8PDLF/f8/hpzTZvlE12ZTx2R7ldIzp4s8md8/SKh8+FYnhJiZqWXJWQE?= =?utf-8?q?85LtegmGO5WhmLNxphUATUF/dJ6Dn+xM7CTfegOfQvdQ6Xu1l8cn09ERhQ/gB04ev?= =?utf-8?q?qBaUyClSL8EUsn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22kFQuMYJEaWDNzfge+h+e2EgQcB0pkP+G19mKLVPtu0UNKKD3eE2E?= =?utf-8?q?+nLcpkzBfXBCH1RQ997g71CFMme9okUZWRQwFcYFwSNyylqFBYoxAy+imdJ0xiZVI?= =?utf-8?q?4xVcE48+J7LaXYR0ldXAPVp5Ks67w4i9HJbChdhLsQnGW4y1s8fBXkPcauTyBHI9a?= =?utf-8?q?Q5Rez9Ts6JoJYlnhSLldh/9GxdbnGEEiMHDFHtFqVsaapCjLz6dAX08T57yokKOCk?= =?utf-8?q?G/p2jY+7WREmNdKFwC8E8Ehs9u1EIMhcudE4pzVjCv36+i8goeo6N7s6gEMxlwnYM?= =?utf-8?q?6u/C7C9+bCgRz/KvsySDy12GKXHX54aORNJE3SyxiA6AKzCDc6xDFDKPbcDG/fyb9?= =?utf-8?q?VfkGefpWb5b6fp8A1w060Sr7pdpyU8lXtj+AUrI0WbgdsmoIB+p1+l8=3D?= Content-ID: <2F0A8F56234AD54AB908859389A7E200@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: fbf4cb44-015f-4b08-0a5f-08dc9c38471d X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Jul 2024 14:47:50.4785 (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: YCeyH1UeVQQTmg8CbiJSOE71PDYTrApr5phsiuaNaozcC6rUDKTxhx7HyE1EYmj8PwamZUtBAPk9fYz1AjyMMZoxNGTE1C0l7EA77mDOG6+we9CJwwo2VYIFBkwiwi1q X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR07MB9499 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+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org From: Clement Mathieu--Drif Various fixes for VT-d This series contains fixes that will be necessary when adding in-guest (fully emulated) SVM support. Clement Mathieu--Drif (2): intel_iommu: make types match intel_iommu: Bypass barrier wait descriptor Clément Mathieu--Drif (1): intel_iommu: fix FRCD construction macro. hw/i386/intel_iommu.c | 8 +++++++- hw/i386/intel_iommu_internal.h | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-)