From patchwork Mon Jul 8 11:39: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: 13726442 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 458C2C3271E for ; Mon, 8 Jul 2024 11:41:18 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sQmjJ-00049g-QK; Mon, 08 Jul 2024 07:40:25 -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 1sQmj5-0003u6-E9 for qemu-devel@nongnu.org; Mon, 08 Jul 2024 07:40:12 -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 1sQmit-0007rr-P7 for qemu-devel@nongnu.org; Mon, 08 Jul 2024 07:40:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eviden.com; i=@eviden.com; q=dns/txt; s=mail; t=1720438800; x=1751974800; h=from:to:cc:subject:date:message-id:content-id: content-transfer-encoding:mime-version; bh=dtjyofXftg4nxcwOT8jOBGTiTpN+VYxFv1Fx8YhzZH8=; b=g5YpkfX/UDMjc/4EVtxxzmz//O/XV379ibivWKL2rIOiZeghwoJAxMih roUy7mE1B2dEy4R4/L62QUKxJx9DUgI7HhuBBDz/Z5EOq+EUzqPSvWqU5 sAghVdEteoSrORk2aI2qObYE7HHnF1ksFrS8V0Nt6IWvQlgrl6wQ8gzIw iFmBAeuLq7JUJ+Yyt/Ag0fn9dpy9RSIotaaIi6eomQKnOiGIR4l2QRZm6 /S3Zqfd2NIEc/lwfR5D4vMDmOjsMDTkrSzHUYPzNRAu5Tp+51DUNP0/1H cFkmprrRUzzE6ewJenPh9vGDuOUwhVq1YTlGs914Dap0ZEjqOhh4IafaQ w==; X-IronPort-AV: E=Sophos;i="6.09,191,1716242400"; d="scan'208";a="16077472" X-MGA-submission: MDGjSVips03XgRE8TeMaAxGLgX6MzHCy+0ah0xasTFuwGi8vIrPtrVRIhhH8nUzYYONW3FiIPdZ8lrljfDqLdOqrPJJ6JOmw0WifE+DyoGgjB6gShCyAAgf5n/9KNXVncfx8Qy9R6P0kSHbmqnIauOgP4xwWzKnDMHERV6FQiXs4SA== Received: from mail-vi1eur03lp2111.outbound.protection.outlook.com (HELO EUR03-VI1-obe.outbound.protection.outlook.com) ([104.47.30.111]) by smarthost1.eviden.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jul 2024 13:39:52 +0200 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jsJ/W/ygmWb5+XpJfx3IU+X6cnxtmpD2+mz2q8xRld+cWDxxkk3YzIJWK37aH1sEaZ0fGuH/x9Q6Tl4zClw9OktYoYjw8yC1abRbsHbZy4qyxrcbeSces5zldwLjOhP5mM+urWgetsIvHj7r5UqC72w++y61Qg05R49B/QciSdHqv8Ox7WHaC0dv11UHXMOCJql8fo0bxV+i5xU8GSg+Jr7/RFYyHNSUAyV4pod3A4Ip8zfyXL7IrjFE41Hu8zMkKiPXzG9pVEbgVq990yljrdGa2BtVXs5MB2/EvIcB3JD46/vnTEdjOiG/MKn1eTeSNQ4Hpfg+cwd0K5SST/DpbA== 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=dtjyofXftg4nxcwOT8jOBGTiTpN+VYxFv1Fx8YhzZH8=; b=eaTGs+yTze5DfLKlQ8CTrbc+WX0g8D1jmwBBWbfngOyCYGvVK0q2xYGwvgVbSqklwjKpjrTDgPRT8uj5Bo9HRpPaDTpNtP3N7Yecc7j30mcl09L+ot1d/hA5tOD9R+IEuFkoMQXt3s2X2SBehLZ0GALRkh7EyxXDaTaNbkMyqGzjldVGEDpfoWz5s+fVErvRfiIOQK8j0vdAvyrc7dEl/ayjRbeQLyALBZqelQdTYXzAWB5u38wm8isdYgCjSYXu71I15JdhMg09NjE/+VYf/petb1qNnapviv1CF6Yu5WItUUp/gyM2atiw2+w3j8VTU/tLCRvcFsoERjWvUN7D2Q== 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=dtjyofXftg4nxcwOT8jOBGTiTpN+VYxFv1Fx8YhzZH8=; b=C8Mo5H6L7gGVOonS4yOCK4qIQxpzXqHV9o0KCkbIg9Ajac5F5d6+RuQik+ngHtzsLMUGy3vQOIE5Hg2hlYWBLY+3C3kKsNnZGEDQbZgejqPtYiOAOtsZVmSJXHS59OfMLk65v2TSRQQNf11B4r9HT3BqvgFHdzOqGbd5FXcanbYaTlaT4XSVzEPZ2m1kJA8x2E6wnS3gecgapGh8TZDLIphGcy0qsv6H4tVo5SxPD+SA9Hvhs4HJQo68W0O66TpZ21SeTRnzLklQPK2OAApxY1tUxiCZANjZhDUdQnszst2EIXFNNvX0HBwNjJIGWsJ82ZSPAzQGRI7Ir3XG+X9czg== Received: from AM8PR07MB7602.eurprd07.prod.outlook.com (2603:10a6:20b:24b::7) by AS8PR07MB7400.eurprd07.prod.outlook.com (2603:10a6:20b:2a4::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.18; Mon, 8 Jul 2024 11:39:51 +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; Mon, 8 Jul 2024 11:39: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 v5 0/4] VT-d minor fixes Thread-Topic: [PATCH v5 0/4] VT-d minor fixes Thread-Index: AQHa0SuLONmJV2Ms6UO3AwMBg0WiSg== Date: Mon, 8 Jul 2024 11:39:50 +0000 Message-ID: <20240708113908.19535-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_|AS8PR07MB7400:EE_ x-ms-office365-filtering-correlation-id: 15511c65-9059-42fa-bf0b-08dc9f42ada0 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?jWDThwYtUVQT4bmJvgJaQ4sicrc6LOR?= =?utf-8?q?XXbggSL8iLQEjr8k52A6PRpZRFH6Wa2S3+OpMzD/lFUII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QJzmAyeo+TZ4vLWpureOwgCVTUEyyXm1NJuhyWbG?= =?utf-8?q?2ksPQWOdAuzjnN0rUnzbKrvVs61X/1uZaxcrHdTCSxtGAsPJKomHcSehAnslNQZqN?= =?utf-8?q?TBarbM4QHNQMbWxkVEISYHJdNZLwyt4w307iGslhNzXGl9j8OluM0eloHgRTPgP4R?= =?utf-8?q?xcJ3zN9u4iQ6Gw+qleW8cVJN3wEtFSJ9LH+tGCwsVKGG4l2cqteWdZaNdoNi982ie?= =?utf-8?q?SEzB4lLPNWds6C7QnkBxwKDEAIeT48G6bQttFWMiwe0prvPOpNlB7uF2BJQOrVTY5?= =?utf-8?q?a3zm1va4PXUEFkpQ31V9nEGf8yWv1Lbe6BApBX5ZeUbXwmeDEMfP8jd27h5yAVwf1?= =?utf-8?q?uKaqkZtQkNS8l2VlADvkYDzKr+ZWK6NLRbS0D8ylHlONKIJcRDwFqlMSrAPdZht4p?= =?utf-8?q?Mmvjy3JGCQi+z2+QjKGzjKqNvEY+mJy+yQ=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?7KepNyuRzcOZJgtmbqFXMVD0eavQ?= =?utf-8?q?UmnXdoXFWF8IaNLHEV5849guVdvbWEVihtZdcyugy2LXtzJujYRgXgThVeobie0rL?= =?utf-8?q?QJh2KUklJhQdfBZxw4KLOR13clLPXBiWBy2gQtHdgiw/p2N9WesZV/wPk0d/3MsRI?= =?utf-8?q?A5DRyLrv2ZRnNobbZKfGDVG8TJu74civCWVx4ioScWc0jcBwlv43FlEkQZsm77V3w?= =?utf-8?q?s/fdXi0kup4x3di2xwwukKW1/hrQyUpR9nRpsRy4gmA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oKi?= =?utf-8?q?69vTpieMM/Yxb3svXsXKN7SANfCgcMxwXB+Kz9LG/clH/h/MIwJq+4aRmF4pBeIu4?= =?utf-8?q?lEiD+ECDYMSHfIRi0BiA3WoBEICSiA6ZQBXCmfrkO7vE9scSc1EmRbiH6P1BvTqBA?= =?utf-8?q?VwACrIMK+pd4SbCd+S8E8phASVjYhSSe414pBdlznNFow9+/lHnwTh9zXXTRN81tK?= =?utf-8?q?kb0tlqHinTcLJC3pHHDG40UpuXYeMgj2yOQd+geK0khh7h+oZk7eTGnt+jhRt37lM?= =?utf-8?q?0oR2XrLUA7mBaBgRcmmDe7XRDHYjemVgNnydizsfL2RZWk9XzyFz/+fpFPFFWGM5g?= =?utf-8?q?vnbmrNEvITlVeqZYNgIqjymcOTxMXolfsxbrcY+8kBHFOo9W+jawm/cQdv+Xp+4Fh?= =?utf-8?q?0r2TXJxVBE16cOBrAVkzwIDuFzvLx36s7SAPG8df0cfheQBmrv2vGt4=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: 15511c65-9059-42fa-bf0b-08dc9f42ada0 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Jul 2024 11:39:50.9204 (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: kA/a0/39s7MFFDuN0HAeF3UApmviicE0ffS0aU68ao9Yhm8AxLDHtXxtUwcJoBOWBTkzq+t7ZymQHXXSfW7mAjVDUle8ReiK4ubhXxEvEDbIgNaiZMv5vZLKJ/Hh/Beq X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR07MB7400 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+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. 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(-)