From patchwork Fri Jul 5 11:01:55 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: 13724965 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 68E7DC30658 for ; Fri, 5 Jul 2024 11:02:55 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPghk-0006OC-CE; Fri, 05 Jul 2024 07:02:17 -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 1sPghh-0006L1-6v for qemu-devel@nongnu.org; Fri, 05 Jul 2024 07:02:13 -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 1sPghf-0001TS-J5 for qemu-devel@nongnu.org; Fri, 05 Jul 2024 07:02:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eviden.com; i=@eviden.com; q=dns/txt; s=mail; t=1720177331; x=1751713331; h=from:to:cc:subject:date:message-id:content-id: content-transfer-encoding:mime-version; bh=AeMHdDD2JgrH72lseEwOWCypd9uhpcuWwFYYfigfsGk=; b=ADQ/qdIRjgFF9IecVshH2fFtO4G8rB0B8akKegUJEoOF58vKJHCzwzHE 7P7DD8FeJamRQxOGOyZuCu8FB28SHPinaLUWtld68VErqhaOcSqKFMQKz 5gpNzNJBhPfQVDhtGODYEySc3M1Algh2qw7poYdzCd+N6Q6ZBlnKc2peL MUd2Vbjt4can7xiG3qqRbe0ZpPfcaNQASGO4A3dSI1Sbb4MerCfCtE+eD Mbg/Woa/9Hgr5cXFWEuuiH6ZeAkEl8nB1miEoLUoWmgTu/K3cvZNLgncf N+tS2uMkT1JCUND2lTuP0pLkaud0QYSg3rK7z0qsvk6q/aCDIDeXLEee1 g==; X-IronPort-AV: E=Sophos;i="6.09,184,1716242400"; d="scan'208";a="15949122" X-MGA-submission: MDFzUaIKPWE+hRQq2wYdiXtMr4kH42e4/zidiTRGdoXkOJC+f+uoozUvo7eFMzpYdr2a5WfrjiRk4+I3hcyAnTIEtnHVWRzp+TkY8TXPDQs4x81KYojCWNeYeg14nyoRYoTIlV865qF8b0yNzL7kgnWT0ho3bEO7Kw7S2yXL+grn1w== Received: from mail-db8eur05lp2104.outbound.protection.outlook.com (HELO EUR05-DB8-obe.outbound.protection.outlook.com) ([104.47.17.104]) by smarthost1.eviden.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jul 2024 13:01:56 +0200 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Bq5zPpJwKpe4eLN8sVQMy1oOWB44QykFSKtAJFTQ3raU9MMzxHlLY+irU8nLf1yPEjJubNLfXWTfcAvpGj9Gxf+4XftO2J8RGNfhtPyeIyyOuhS0eFerhr2FMWbRXW7IiHsUa+0whziKf3zIH1WkQIkQfQ9C5vKAj4mu4OSnzo+AKoE8zrrqlZMK8I3BNOqZuyVF1LrnQ1DaGzMiL2CNEI24salImejCEZtQ7CDMeLDSi5sboBv2q8bMb/n0IoLypqjuVKyPYm073pET6MFag+pWyJ3t8B/PSnX0qvK5ulBR/3U4/eAgs9DAIgaZluXmKtM5NVSKbCjn262KOZqR2A== 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=AeMHdDD2JgrH72lseEwOWCypd9uhpcuWwFYYfigfsGk=; b=dB3KyWXhb0Z0+kEsNcncvgGnd0VGQJjbY4pqBz72h9tM017segCG5PB+BI7GlGVp/1aQRDAy91wOLPdw9bf+acOOcVMGdpuyX066vq6fnnpHg8CW5Zvo/27zHi9gyl5lGamtN0y1zGdCnxDNVkDnWMtatn0YTPQFn2aT+z3ONVkv7gUjjztkFiHF5mYXu4pIQTtzWy8dYNRoOdclSTKZZDEx3u0SMpZcLXZ8kzIZhDUPfj6QRHhV5eBCdeAWtZRJZJncXCgeWp8EC6G5YUoBGa4t8niy64TuwnPAK2wVWshwife1q1T4sXVHGdWb3VeGbnLJTHmztoKwjrTq1xo5NA== 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=AeMHdDD2JgrH72lseEwOWCypd9uhpcuWwFYYfigfsGk=; b=EZizV10npJGeGuo+HcIUespSoWxlVydBsYY63EFx/dJbRYu3jWxI/aMPHfaUcQqvM8LMVHKfBatwNqeZ2dujkk2ucza50o6sEaG1YLARDhQ5b+gxAwNSY7ZXu/+7WG1U1svKVayYT726GcuDbiESf/BwqeBhhS7Dg58I0pRlprxCkHWi0s6U1v+kgSX68zdoCqkyF/fWmeU2jN4hAiwUmBPXlIhHw0NenXutIFIvR4OZ4KJJtrDflKJBnnpS4lcXHyRTVlZF+5BAlvmUec41WJIPhXJYgjD/hiCjRgtRnewwOYVYRi41GqLSPHKAxKI3Ig8WP3MckMcXhicHNVR0iw== Received: from AM8PR07MB7602.eurprd07.prod.outlook.com (2603:10a6:20b:24b::7) by AS8PR07MB7303.eurprd07.prod.outlook.com (2603:10a6:20b:259::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.11; Fri, 5 Jul 2024 11:01:55 +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; Fri, 5 Jul 2024 11:01:55 +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 v4 0/4] VT-d minor fixes Thread-Topic: [PATCH v4 0/4] VT-d minor fixes Thread-Index: AQHazsq/xiSfTf87rUSQsMmkx4TMTg== Date: Fri, 5 Jul 2024 11:01:55 +0000 Message-ID: <20240705105937.1630829-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_|AS8PR07MB7303:EE_ x-ms-office365-filtering-correlation-id: e68ba930-e16c-4357-0a3e-08dc9ce1e1ec x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|376014|366016|1800799024|38070700018; x-microsoft-antispam-message-info: =?utf-8?q?fDcQ5h4CumuXcSk52KSnfkO92Iv28E/?= =?utf-8?q?IbwYpl7txk0ueyWcMhTjoBEWkFbVjZ2mgjQT5bYhUb6p3oDJaj09qnFdhzRL4pGAG?= =?utf-8?q?VO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q?S1/g2h8ZDi48AbJdo1WzdPsEiIv//7L99YTruSemVNvjvK34jVxH4zJ0S8VVVNc3I?= =?utf-8?q?+sxcgaLpLO+pTA5gjlxE2J2cTW4PRWBaeCyd/ZtdxpiDAOWMaZJ02SUJ+GGXXXgP+?= =?utf-8?q?owPGr5wfWtffPZs3KhszAXY+MIAkhZyNs8vgLHL7wAE6hZrehaTgp4C8gFXJ6h5T+?= =?utf-8?q?RfMt0/yE5I1kmEsLFzx5aCgD7I+ywycRp4JuqRoGhIprBL4XPJIEbu73J+osHaMh+?= =?utf-8?q?Rvzha74B4VPG0leeiNi5JTRmIsEBdxoX5B/0/9Rirx7lcRsNDyYBNRc3jrpB83KIK?= =?utf-8?q?O4peMvlWdUbYDZYHRKWYmSPyNB9w4jEV1X3MaSd8q8Ck0fUAfVtxppybTThWzxJnE?= =?utf-8?q?dEsezE1vSv6nEWmsKesuK/g/mBEPI2D8gQ=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)(376014)(366016)(1800799024)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?q?oJ/Xms3AgXf1sSTkObRlWXRHi23H?= =?utf-8?q?i0YoKyFkZBoeUvux1ecqbTWA5AQZmotab87cXbUjaEGO/QO4KGzZh2Im07R6LhSzK?= =?utf-8?q?fZ+hPD/mBIMDbDcOkw7s2ggR/2j2OsESaAAHFukqokZQqcnbuTFqXY18fsObRqqBJ?= =?utf-8?q?C7pFtAvbcB14ZFrdi4uLB76Vw6mqGrxVB5W+h1GJ5JvLaq8jDIOTaiVh6+k/Y38gM?= =?utf-8?q?zPu2HOlzkAby5JYSou6npbILE7XzjRF+oZL2CwaChXl/LeZUYzB3mbvR2BcVXyspI?= =?utf-8?q?VDaQrT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Dy79oDrC9jz1K2A3WXE21+8jYXQ1JUhcbw2Rl8WIkcVNNuHV5zyQaNRGKhpPe?= =?utf-8?q?F7++qtybYdZBY4+Z31U2s/edGR/emUEPpmpkmJySkrOUpu4w+Ce125EnebLr+15SB?= =?utf-8?q?1bzyZw9DTxyP4oZrAgjWnpRy0Mos7ltmi5sem1tmVOSH1EnAYWWW+/krrgLryMQNm?= =?utf-8?q?lGmEwxRhFhcNd+rAFSSwy/HaeM5bGp75pBLY1pV0gROHicSMI3O1Sl8DeRUwQYVKg?= =?utf-8?q?urkybdx9wMQOLvlVOiquQ7pmC67ijIpocEGwpV3rhWSW1pzx5MZB4RFKPM4ZUSIaB?= =?utf-8?q?vBdjIzJ18vFd4l+FTjARvA78euhqW5v6vvF+ilLRk8rd2tRFtESsrhX7IqLkbhsU5?= =?utf-8?q?T3YTYtmTNMkH2/d6RER2MmY1bNAu4vSWKyOrRjvrUhexUmQJT/cRPm0=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: e68ba930-e16c-4357-0a3e-08dc9ce1e1ec X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Jul 2024 11:01:55.1268 (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: mZX+M/pJvSAZH/UCjUYpURC6gc2i/hRxjCqu6WcsHY/ecLtFf5jEtrcqV8cjgOjL+2GhB/2zzNQPWzCr13RlZ2OGQOv6R+clkc0bcGYzpuNKerGL/A+1iFQGtGG5PJxs X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR07MB7303 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. 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 types match hw/i386/intel_iommu.c | 2 +- hw/i386/intel_iommu_internal.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-)