Message ID | 20240603055917.18735-9-clement.mathieu--drif@eviden.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org> 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 9EAC8C25B76 for <qemu-devel@archiver.kernel.org>; Mon, 3 Jun 2024 06:04:15 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces@nongnu.org>) id 1sE0jm-0006oW-Pb; Mon, 03 Jun 2024 02:00:07 -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 <clement.mathieu--drif@eviden.com>) id 1sE0ji-0006kQ-1t for qemu-devel@nongnu.org; Mon, 03 Jun 2024 02:00:03 -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 <clement.mathieu--drif@eviden.com>) id 1sE0je-00071B-Oj for qemu-devel@nongnu.org; Mon, 03 Jun 2024 02:00:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eviden.com; i=@eviden.com; q=dns/txt; s=mail; t=1717394399; x=1748930399; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=iWMaK1JrTCFHi3BheGFgAXWAS6o9as2GR7+CmB8E6vM=; b=Ht6vv6V614i7/xjiNl2RVoaJHDO5JmzdJ4XjbU6s14/mJ3fJzNFB79O0 79H6bWX53hKsqk2jYs7zmjqiM2C0O06hYOOcAaMy9Zc1SQNO9VllLUXsb iIUbIzIFHEedDk4tcexX+hq0cmmCx3NeUkVj5RPll5e8mVm2tyfdnx3zC IPFDgGLK2l/6LRji+686wlFXr1pVc/dgnVrmnBrlDUvDrP4K/YRGnF3oy m0Y/cJf+seaY0K+thPxPih3eCX7uXVs5F1+hzhtGAfKMq7IE8kqjpCO3E /2slRcGVvrXISy+qu7rSXqDi8DyJ5ouLKIGw0OIlSJQAQn1Z/R8qBWO3j w==; X-IronPort-AV: E=Sophos;i="6.08,210,1712613600"; d="scan'208";a="13815879" X-MGA-submission: MDHyJ2Ua9jzKmhGJw4TxygAADNa75MbRYLi4WeCr6nU4ItIlwlm6empiFhNjpwm4s1vQfqqclKLwDmRCwnBXh3JxVJx4/WNErlmX13gr8SocXYuHB36+1QqKbaSjxhyU18CK7A6fl5Ay0moFyyvtA1uUnclElyChXYdUbQFbfvjnrw== Received: from mail-he1eur01lp2050.outbound.protection.outlook.com (HELO EUR01-HE1-obe.outbound.protection.outlook.com) ([104.47.0.50]) by smarthost4.eviden.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jun 2024 07:59:49 +0200 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BgKK/2utXekTt5TqkA5he8QLEFHT5DjEaeu/PkPop5POZhR6FdjO6ZRqLz4x3hT+/kqjfVeARgPwNohZc12D1Q2J0UGoau4d53CF3D46XB7e8/xWjtNQ6EctmXMD1UdjCDMW1oWtDnPhs82qDj4qRt21f1342W9gDEdYWiSxZiwdGmCO7FrWRKjCckmYvGLwBbgd6sKFw+ilbdrmv/aK4+LNVhCysHNJynPSx9HjyyiBAKhMF/mNHyVFBYC3Ibhq5lMM7g9cZCTJFTFUZMcxE3UJ9MC7lIT0pz/og5rrhLanCWyTMgz8XDaNfXvDXqzkHzj9a+Cm+T+t7ko4vpBH1A== 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=iWMaK1JrTCFHi3BheGFgAXWAS6o9as2GR7+CmB8E6vM=; b=UjMoUCE0vAA/8hVEyasRIJkqIS+3zUi9ordWqQo3cUESlhinu7H3+vXbeWOjGaegGVLvU47nKwl6TE6wncXMlbbgq41d00FYCq17Jej48i9ub5iv4Z0kf5Qf1R+d/uMk1y8XEGsWzlHKSXz3cI4u7vbtUKy/+EL18P+9wrNlkTj67EDQDL4EFIq3W7DNFTE1V/Gq77dEDqoX12M0dgdUmFEojLc18dgbvuQT5FNpqUtE1/qyORd4y12pD3aXkDdN+8KCmfOzGfrO313bAJKbsaem5cgdcWwPVHUUxo4kSms1sbzHSbnH5tCZr1R2TyFpJrZWKUZjvivfSnozfnlS6w== 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=iWMaK1JrTCFHi3BheGFgAXWAS6o9as2GR7+CmB8E6vM=; b=X2corQdqsRJbGXLb+203hLdzdr7/o6T3ykGCHQ0egNqpQQCS+cz13d/5B+rWZZaWMWWhtYK73zzNEPZrm9JbqalfAAcyy0o4qbCm74cR6hHUid7Or+cyy+S+Bqb+UOFrNswYDZBLe1SVw8pHrTda5fBENvRNJoR9Rkr+rDX2oApIhshWbVzh3dPHH5p+WoAyfaOv5sfcTUxy5HNbX+FL9/DSL4Hs0SuqFbWLNbrBJa/YoqGR/eYDip6RIPYu2AD13EQj1E3eU5jR3VS1UyqLJ8kpsL7eG1KfQjrEPpBQqV7u6YXleSMx9mS5Vt1IjCOYBpz2qoqHpLGr2RVvIgCEUw== Received: from AM8PR07MB7602.eurprd07.prod.outlook.com (2603:10a6:20b:24b::7) by VI1PR07MB6238.eurprd07.prod.outlook.com (2603:10a6:800:136::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.21; Mon, 3 Jun 2024 05:59:46 +0000 Received: from AM8PR07MB7602.eurprd07.prod.outlook.com ([fe80::fbd7:ca71:b636:6f9d]) by AM8PR07MB7602.eurprd07.prod.outlook.com ([fe80::fbd7:ca71:b636:6f9d%5]) with mapi id 15.20.7633.021; Mon, 3 Jun 2024 05:59:46 +0000 From: CLEMENT MATHIEU--DRIF <clement.mathieu--drif@eviden.com> To: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org> CC: "jasowang@redhat.com" <jasowang@redhat.com>, "zhenzhong.duan@intel.com" <zhenzhong.duan@intel.com>, "kevin.tian@intel.com" <kevin.tian@intel.com>, "yi.l.liu@intel.com" <yi.l.liu@intel.com>, "joao.m.martins@oracle.com" <joao.m.martins@oracle.com>, "peterx@redhat.com" <peterx@redhat.com>, "mst@redhat.com" <mst@redhat.com>, CLEMENT MATHIEU--DRIF <clement.mathieu--drif@eviden.com> Subject: [PATCH ats_vtd v5 08/22] intel_iommu: declare supported PASID size Thread-Topic: [PATCH ats_vtd v5 08/22] intel_iommu: declare supported PASID size Thread-Index: AQHatXs86D8amCVVAk2BM7f5OoE+mA== Date: Mon, 3 Jun 2024 05:59:45 +0000 Message-ID: <20240603055917.18735-9-clement.mathieu--drif@eviden.com> References: <20240603055917.18735-1-clement.mathieu--drif@eviden.com> In-Reply-To: <20240603055917.18735-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_|VI1PR07MB6238:EE_ x-ms-office365-filtering-correlation-id: 7082c18c-433f-46fd-622e-08dc83925ee8 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230031|376005|366007|1800799015|38070700009; x-microsoft-antispam-message-info: =?utf-8?q?dm3VltiKvfz6SGQtdTyFq/633kud/ns?= =?utf-8?q?Kex1zSVt/0DNk9vrtHvbaK5A35gCBHjYZ7+/rpYHe2jAlnETyIV7bS4Ag3VStAc09?= =?utf-8?q?L8i9KOm4VxRzmRVzNVxlqUEpM8ySjRFgvur2we22irHICREcafzUeIaD3mZnpECde?= =?utf-8?q?8KMlQ+3x6oErI9m3scCfdMKpaUDvzAx8tGxH0Ja7YoT1D/AxioTfXuhZ4veP/qaGd?= =?utf-8?q?0uQlhq3J1QZyqVFrWFqohtTSHMa9DdpkdnX+ozFNC+bPmbiKMou9xqY0wwh71x+lB?= =?utf-8?q?YOh6TrIqclf6hPChDMfax1+HsrTLeZ++lShuX+CgHRIi+VSliGGgRUPMLPXOon8UQ?= =?utf-8?q?WyeQU9YcFJU/CfudL5dpgtST1QwwfbC7O7D8RpK9dV/wizeO7Q12iim7BtYPv17L9?= =?utf-8?q?/YiU3SLjEDQHgRCO2nHgeweeV35z0tmyIyZdvpo9QBem3pk+2w879iSSm1E3HTNTY?= =?utf-8?q?MYJaiTpOFMdMgUye4G5gCt0cvdp//J/Y4npmNJCE7icmL9CJTZ0gfLuRuLvRkbYCL?= =?utf-8?q?2pAHvNwisPeJ62x+SL6qYrCoIXHKAp36WD/tSPISZp93cJTc0TrElFBBB1XvepkgG?= =?utf-8?q?lbP6JbF/AqpU6qX6rAGoWnBCVBXvDvef+QM8AM8uvbAdxoHg0hDZ4urqfbH8ONjVy?= =?utf-8?q?QmjasgE+RoKTdSTr9vBj27L/mRr36YTK/pS4KiIKUqU06Z2RiiNWjv1nKsBjbmWrl?= =?utf-8?q?kimDfnWK1C1dbQixKvOnX2HNkK/FokXB/OIBXjsTNfu+Lm1xkrLCNqRW39e32LDvh?= =?utf-8?q?tNlmSGWPIvkynqfWHw62GbkCzUIoBbcgf8jjKmKRWN6Xz7U67kgaFH9L/e+ZPmWoy?= =?utf-8?q?bUKiU2hy/7uv2lbzkKwdKiUFSKxzsEDRTRZHZYHqYZkd0ki6VkU4Nu4jW7tcS9Me6?= =?utf-8?q?ih8J70GnlmpkYCLNEp9BBWGiid/z11u31PvoxNHFXIgU1bm5UBQcgy5h/kslFCg9Z?= =?utf-8?q?o4XxhZEHtfZtoywDzHhOlv/zQtB1nM/GLjdyov2aSQkZ01Zfa97skGkBh2GhlhVcB?= =?utf-8?q?Sv2J+nSP6iP7/GWN4/XEAb6WpL21RhZ/y+8pbWzojjnNu484toI9jQ7u8zzF4WtX3?= =?utf-8?q?YdKlM8qXFc6XjzDDzSr0FgxFmiVYQBtW7GRenT8dFxoTF2+3sMpYjKL16HJshfbFY?= =?utf-8?q?etquLk1w8UHoLE6qx1evOJ3Dfg44nceLwRqTzyebVTrT/4TkF3kz0cCrB6/OzahZY?= =?utf-8?q?e+Ta3MMtnqLejIkm8IswVhd1fVcDMnb+aHaSCpSoVJ6TE2hrXmC/JNSTr2O1WuLst?= =?utf-8?q?UU6EAN5HOMIIbWU4x1OV76LJnPANDi5w2JA=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:(13230031)(376005)(366007)(1800799015)(38070700009); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?q?pIfzp9GD/r4LoNMIMd9ly7LFsVPo?= =?utf-8?q?bJCpDZrmnKhdaSLYOFFcDe4qUX/gg6NX3XmjIoWkYbAFZQPqsAnEMjX+HKq7k4mw9?= =?utf-8?q?EukT69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2QTJe+B95e/y6GSkhGHChvWTkfwazuVvWg164Jqr6jwhA9?= =?utf-8?q?D79XlXNkVK6zJw9wXPQQCleCNaosyca4bWCGvmNRj1MDCDd3s7rB8apLQU044AaiN?= =?utf-8?q?+clU8PkyN3bN02shkwaiCaFC1LFKmyoq3Z9PbA8xRO8ch64ClUVopw7owJcUsu1CG?= =?utf-8?q?CooGBDx9QmSycep2W5SrvwSVjmyI/FkOeOi7yZ+O2qmb9y/YU3fKelh14ETOyA8H+?= =?utf-8?q?Jsns7x3R+BOLqiEFf+wLmWoEfKJKBGl4Pv5teBTFSqqh/Eqs0K6JgkYIUmOtEJ4cN?= =?utf-8?q?y+yWuVTeVDTx7hIatvWAywhcxAgml763pLb6Z4JN+fmxqiFl4H5k9W+J0OMmhhTN/?= =?utf-8?q?vljzi4m32ipMIAXGy0mxfU/ZFqAHj4OtFa2o2MzFAlSFFMEgFjkVkeTTQJ0dvJzZo?= =?utf-8?q?AZu/5Lwqid795ry3w3FsrzLaNN8jSILhD6/StEl/67hvHv/TuaOfBiOrTemSOQrDZ?= =?utf-8?q?opBF3zLU4antub3Nj4r/D5OJYoke8YK5jooHsEdEi9sMG/cGQPu/JuaC1NjWvFIbY?= =?utf-8?q?cre/h6lcKd+aMjO2Yj27V0RZsvWyDPJPQhV5k0O19e2/KALzNW81Jwc=3D?= Content-Type: text/plain; charset="utf-8" Content-ID: <4D0B3D6B2160FD4EA6A9FF6316759583@eurprd07.prod.outlook.com> Content-Transfer-Encoding: base64 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: 7082c18c-433f-46fd-622e-08dc83925ee8 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Jun 2024 05:59:45.9895 (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: VSPP8xNVXPqE0FxVxWhOhXNoJpmOimUfgMzU146D3MTig2NKoLA5kLnABt9olyR3YoTR1fhHO0LEbnD1a32rhb3x58iZxBmBmxg19vJQ3rzGTmBR/TN11aEh2WbLWKEf X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR07MB6238 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, T_SCC_BODY_TEXT_LINE=-0.01 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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org |
Series |
ATS support for VT-d
|
expand
|
diff --git a/hw/i386/intel_iommu.c b/hw/i386/intel_iommu.c index 7b0c22fc07..fb6c7d1e33 100644 --- a/hw/i386/intel_iommu.c +++ b/hw/i386/intel_iommu.c @@ -5838,7 +5838,7 @@ static void vtd_cap_init(IntelIOMMUState *s) } if (s->pasid) { - s->ecap |= VTD_ECAP_PASID; + s->ecap |= VTD_ECAP_PASID | VTD_ECAP_PSS; } } diff --git a/hw/i386/intel_iommu_internal.h b/hw/i386/intel_iommu_internal.h index c9a673585f..1b0d8958ad 100644 --- a/hw/i386/intel_iommu_internal.h +++ b/hw/i386/intel_iommu_internal.h @@ -194,6 +194,7 @@ #define VTD_ECAP_MHMV (15ULL << 20) #define VTD_ECAP_NEST (1ULL << 26) #define VTD_ECAP_SRS (1ULL << 31) +#define VTD_ECAP_PSS (19ULL << 35) #define VTD_ECAP_PASID (1ULL << 40) #define VTD_ECAP_SMTS (1ULL << 43) #define VTD_ECAP_SLTS (1ULL << 46)