From patchwork Tue Jul 9 14:26:07 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: 13728145 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 2EA06C2BD09 for ; Tue, 9 Jul 2024 14:26:36 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sRBnM-0005sy-Jp; Tue, 09 Jul 2024 10:26:16 -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 1sRBnK-0005kn-Fv for qemu-devel@nongnu.org; Tue, 09 Jul 2024 10:26:14 -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 1sRBnI-0002k2-Ms for qemu-devel@nongnu.org; Tue, 09 Jul 2024 10:26:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eviden.com; i=@eviden.com; q=dns/txt; s=mail; t=1720535172; x=1752071172; h=from:to:cc:subject:date:message-id:content-id: content-transfer-encoding:mime-version; bh=qs1lwZoAnDEKngGz53ZyWtJ6SqlyIx8YSpXZvszOwMU=; b=kufsa5opOfaKuFhOS8z4ze/2uhZnvNu9KdiLuzNP2dEedRkVbYE92xiC lw5DIOL8bOnCKPvgm94Mag6XN6rpaprpp2tmQE53XYv4QqoT8YfwtCCro rBzhW36hNcD78CCAIlCa3KUWsrG6oYvtrAoGZLRvieIxW3Tp/x9GIf4eB 2HUb9Zrx74oSrqZHnwitvhBi/NhrCbnSI9VTzBQOWaWQA+NbiV1GY2zWa bngLeb3NnJ6vVBpyXNFTKsoBHitNyxYMwJwWqeKOI0++mrMYnXYmJyoGo r4Lj8XaeAvgrtQzYvqwNiYK4bzvsbOwBxllQ3sz2e0wMMeUSv/3TgGnVH A==; X-IronPort-AV: E=Sophos;i="6.09,195,1716242400"; d="scan'208";a="16172659" X-MGA-submission: MDG3Fndzoz/TiZdLdSdrPElSQLoXp+IjKYOluWj06/idHD7dSVGyCxeyIyjpOZSipbKZJIXFEKw8SSXpROj0VhMT2PjT+DUMCFtCIIGtdQvxm2ios9l7f2XLRjcbUkxQHXSuA5AUeq/WS+55tbzTV6GgeWy7n9zfm/Th4S52BvcRow== Received: from mail-db5eur02lp2105.outbound.protection.outlook.com (HELO EUR02-DB5-obe.outbound.protection.outlook.com) ([104.47.11.105]) by smarthost3.eviden.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jul 2024 16:26:09 +0200 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=YEblYKETNeh1C/qnzL1CUjvTWMA8DwgefdtQucdr/PmZuwTlhfLuirQd3opRS/ET6Nw4HI7lGJQ1BZCrgooWpcClHVMJeg15tsQ0OSSEGqsNhYOJ+Gbu9YXV7Dvh+yRfmpoZLaVRekx074CVGpLOpk6gy9qaBsxdWbbfFhqcKrZuozyHqCwI2oeYBIewQ4zPz9WO7Bbbxdb7f1jkpKHoJ7SbSx/jMeSffVyh5Zr9NSsE3QghzqGLdMi24nRAWv4tKiRQU9qt4QDEFbO/Gf3iEom19f2PzEp4l+aslaPobb+nOLRFanacmbwwEwKesm6REe0zhhwhlaNVsWvwKOPo9Q== 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=qs1lwZoAnDEKngGz53ZyWtJ6SqlyIx8YSpXZvszOwMU=; b=pO16UvI7wpRxms4u+tqDWZbke49Zt18iCXgZ5erxCbeGfAQfSxo+48EkVht5daGUTsvtA5oXQ4Q8ETSc/7VunnoLNXo7I3kWdSYV+CHK0jBQSqLYZZzX9w1Lc0QvU47AmOFueloYDc2RqfYW6YhzagvEmSYSyX8C8YWXohjCOijytkkiQlYOClECVZUmOvRvWBQFuUwK8aKEiELNE+MF2YsXYzWTAeKPV9l+oZ06Hp+QAm1HBpKR4kUkP6pTn2MIyv5Z4UvtycXbzf3jVXTUMw074CyID49X/1go3BeWqWVb7c+nHlajliwuAAH6bEORW5/ulzuX+9yQpX+IiNVMww== 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=qs1lwZoAnDEKngGz53ZyWtJ6SqlyIx8YSpXZvszOwMU=; b=Uj6yFVK4rLo7vNsGGk5ZbqekMTptG/v9Orhyp4ZrB1LZwCoIvnCXDI3y49twFQmVPeI1gKPzbpW9Ia6HBmIYVBevPsY9N8ErJ7TErlA5UPZcos4zHCFdKALwEBSba+wdUDaO6txx/i5PF32czCjF7sM+UN+STgtDZL4j2hhrrQ4POd4nHQZCTShRDw2E5IYkK3xClTO7gBbOGXrOK788oJk88NdNSYrjO4QwamcAddJLDs0O6q3KRHwCqMB2EMFzoK2P/SXAZulociY+M9H679slBWPd80tU3D3PfznVNSEenuv7dRcmXcrKOkCC/d3LMlcgLfRJwZwidBoFkd/0Pg== Received: from AM8PR07MB7602.eurprd07.prod.outlook.com (2603:10a6:20b:24b::7) by AS4PR07MB8459.eurprd07.prod.outlook.com (2603:10a6:20b:4e6::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 14:26:07 +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 14:26:07 +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 v7 0/4] VT-d minor fixes Thread-Topic: [PATCH v7 0/4] VT-d minor fixes Thread-Index: AQHa0gvviOR0C7Mtb0uxee8sx3GKOg== Date: Tue, 9 Jul 2024 14:26:07 +0000 Message-ID: <20240709142557.317271-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_|AS4PR07MB8459:EE_ x-ms-office365-filtering-correlation-id: f3abe533-9553-4774-89f9-08dca0231262 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?MVxDtJXH9pOlA7EBObqIz28C4VIaJSC?= =?utf-8?q?GZGpUqzqaFhkSnDPdM19QMQJPEYzRq+/rH+PlDF0DBdqrr3jHSZI2PWz+12ioyD4R?= =?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q?lQbdSKHQ9bnq0dbnmg63kKrDCqfEXwDtfxpkKclj2E1geZtu7lcJfN9IFMOK2sqAe?= =?utf-8?q?kZmgSM8mQfQyl2r/UKc39vXIbz9f0p7ayDOwUp/sqySP5yug5b+pe5V1fdbtr87mY?= =?utf-8?q?znfmxTMnrxx9Tg/I92NnbslULCFJLaziNgfL9tiLcr3CqPXpKlLEAxdjYh697RUo9?= =?utf-8?q?tui5Soo+RVagsAbm0ytFJw8+tIcDIxES9x48nhmU/+IjBVvKJnJlIulJDWrmZ+6v0?= =?utf-8?q?2dz8zJdx4b77BpHh/bmgyWJdqlQMAZB4XAvFdJJlVFWKqQugWNtFsFVOjMjzsku/l?= =?utf-8?q?GhSbTUe/chPOd6EUpHlYkDhniU68L+xeT51ZL8Kf1qZsbYbA9Wc03Gm3imwsTaVq8?= =?utf-8?q?bwhxMzrqON0MQ8d1/pis6w5NDq8NlGW9JQ=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?GX/ZxVmTwbxyuqTb8a93juqO0HaS?= =?utf-8?q?JRoB0iKhU6xNVE0Zt8ERL0NyaLlA+Oq7sQvl2ZtfTth4Acwo5Le56/8UJD2RLtoU5?= =?utf-8?q?h4udCt6esRYdU0II4/5TxsRyBnrX6O/h0hEi/TwU/gMvSZ74P8v5SFqLfCZ2lElcx?= =?utf-8?q?qdgRoThwOKY51v57MxgpG5myRoDH66a6ki0S9v8aA36t0KrcaU8SJe5ADV7tRy1nQ?= =?utf-8?q?mfoiMi9X6mD1QAEn7gJmdP4xQXOwVBqjEPKZV9QUkY2nM2tdR0RGNPwP7IDjRJC/O?= =?utf-8?q?zV9QK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NEuXs3w92EzpgUhjhGhC8ogSTZgKKqHBiYO/aEGiS0JgYALQ0XroED?= =?utf-8?q?Z9oThBOStchPoqa8aP9/0GurR3OzN/74EPBlet0ySC+EJeKhzW2hY5I/0k1DKanF6?= =?utf-8?q?RVwcfts8hBhGSE8cXdFyEGQVn5ZJzU8MXTdaM8y8cCFnKbxZG15pHbsPhxgjDxcm+?= =?utf-8?q?+HqqIquU637oGTWPBJxUF5c3n+SRASNEJP5MTmVXh4CzlKPq0wnN+KXPKgv2fDFNf?= =?utf-8?q?X4pI9ejTAHJQIcV0Q4uaQLFRTbDkyC9NqVaguO6TlsCBy1ceoDLec/tV7y+xjeJxp?= =?utf-8?q?+1T53NHjsl189z3Mb5MigtxbdObt1s3wqk/XpOw/q3XRHOKm5G/6rGhxkPzg8Q3LP?= =?utf-8?q?7UH4chCBj53ENBtleEaHCHNG3nD8+ceyXOsCITDwRorvBVmpAdtsE00=3D?= Content-ID: <10C89F8D1086CA469E09AD4090E231B3@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: f3abe533-9553-4774-89f9-08dca0231262 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Jul 2024 14:26:07.2075 (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: yNZhK3BRb6vhC8xnuFtkI4Pd1paH6y0UyeiI6zmJVEjrJpxkWRvRFHeQO6IC/8uxtf7s7ivu76Xm2TGj/a48c4VNXEYbweeMEq1PYGvaObDkmpEvJPj29T0VHorSm7Ls X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR07MB8459 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. v7 intel_iommu: fix type of the mask field in VTDIOTLBPageInvInfo: - Edit commit message 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(-)