From patchwork Thu Oct 24 22:18:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Babu Moger X-Patchwork-Id: 13849801 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 12A2BD10388 for ; Thu, 24 Oct 2024 22:23:52 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t46F5-0002YE-62; Thu, 24 Oct 2024 18:23:43 -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 1t46F3-0002Y4-7d for qemu-devel@nongnu.org; Thu, 24 Oct 2024 18:23:41 -0400 Received: from mail-dm6nam12on2088.outbound.protection.outlook.com ([40.107.243.88] helo=NAM12-DM6-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t46F1-0002tg-9Y for qemu-devel@nongnu.org; Thu, 24 Oct 2024 18:23:40 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=tyesYlE8WA6w1VXmQiW54XqlXrDFf/geNuyC4lcR6x6K4mBv0Ej9k3ascWfIST3OPyyEdkd1uHaRboF4ye0qp59cwCdy3QOmKU+3F85Ka9VkUBwSP6vWRLq7nll8lTEOb+RRZHu8uqWUGyebPbxRgRcOVSKMWXi+ZLvQsPjGw/yiZ2ecBLX4Cs8lmLujo39tuEmDErd1oRy4DH7Do7NwyBX4nkDD+KH8hXXRCQCA4M3mBv1YAdvkUjydmjVJ88hR9EoLZH4DkJkNKW8Km5oIA8Hs/ppxftMqpRxujztWEDDHHSFyi+8a4GMZq5S2zgcJH5UDDxLP1FplNhqt9WJbxw== 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=w8KlgY/CBUmuUVbXblaZl34+v6ommK/tcxDyalJB91c=; b=C+ucdSiIlFI2gyiBsvXzbyD62NwQEYaNEI7QYSDi1RdAuHwmXrloWFVYfq+dX8le5upPGPVvFjRFjZHQIB/ThEkEmILhGkjzlXWA/na2KoNbUPCSiNk7aWgG3B1+5Cu0T7XgIjzyBvhVEq8lsB8GXTv38uo9pOZ5WWqPxbIKWmtfUYkqwWarmATm44z1jFJkanRcJ7N4CtothLp6qwRlZ/SyNkUHptqAGgTYskOAyWWlcaGVVmgq1ucTnSlXVTZSUSSby0FsiotCRKFcz1ICySmkdeFg2ZBQes6aY1h+5+NmxzVgavM/qRIS47t+r5/yBLX1X+lzDWCEmlwb7zhiLg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=redhat.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=w8KlgY/CBUmuUVbXblaZl34+v6ommK/tcxDyalJB91c=; b=U0oN6fgUehQ6n/GK/elT/TC8NT6EWx2gFTosqUjew5bso298MWzo23Ezp5ij/7FqImzD40AFcFMWUkQWsmoEg9t449OKhJ9v/gNlSWzKmDnx6RPa5qnuCE7641OtKifeUdtRUctkpBOWgXzZVnPUoPSlyfw1dUTZzu25I69bOWQ= Received: from BL1PR13CA0327.namprd13.prod.outlook.com (2603:10b6:208:2c1::32) by PH7PR12MB7378.namprd12.prod.outlook.com (2603:10b6:510:20d::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.18; Thu, 24 Oct 2024 22:18:31 +0000 Received: from BN2PEPF000055E0.namprd21.prod.outlook.com (2603:10b6:208:2c1:cafe::af) by BL1PR13CA0327.outlook.office365.com (2603:10b6:208:2c1::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.21 via Frontend Transport; Thu, 24 Oct 2024 22:18:31 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by BN2PEPF000055E0.mail.protection.outlook.com (10.167.245.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8114.2 via Frontend Transport; Thu, 24 Oct 2024 22:18:31 +0000 Received: from bmoger-ubuntu.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Thu, 24 Oct 2024 17:18:30 -0500 From: Babu Moger To: CC: , Subject: [PATCH v3 0/7] target/i386: Add support for perfmon-v2, RAS bits and EPYC-Turin CPU model Date: Thu, 24 Oct 2024 17:18:18 -0500 Message-ID: X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN2PEPF000055E0:EE_|PH7PR12MB7378:EE_ X-MS-Office365-Filtering-Correlation-Id: 90d37421-4a2b-4d6f-8219-08dcf479cb22 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|36860700013|1800799024|82310400026; X-Microsoft-Antispam-Message-Info: R6Y5ddJdwuILIvMLaPFVu/7qxNyCysIZA8xH0C99MYbB8xolgBlwj4fy3MzOO5BYdHDtSb11xQX7PnM8dSkIHEsGUuuEslC9sRR5ZnU4W3TyQ7Zm4r4OKbrqD6s6Lxo3uXh7OZ3y3wU4S1MOg4DT5+W/n9uf2q98ylIQkVFZ4JSeopMiMmldsfMG0n3anBfalB0dQPfYHS5/NL+3dO9iMLyv2mxDqxaSakeaZE741xEPI4iy/Z4BIC6m8oFXB080x+KdCpO6AlldhHWPFyMdv3mZP2XSO9MUpaP+48VEHPZzO03Rpuwl0dEZiq2f62VCCdQy2lZvGzKtdKCOPzQi1eP2da5CS6w7HPSM35utoVqA0VanGT2WG95rstLXMsTbFosgyygYJByA9/TSYqSvus2VlKmxR8C/8T2PyCpFbP/sTFY2T6JrNogoOcxHTx7Kq+LezZXnt14V+qUwJq5a+NxFtOGj6bQCc1lirdRyWmjT6j2ph3ySdG7OTTg2wEE+iyIHxSaCUqlPYvrRMrQdUTMFazs6BvtGl9Oxir1Rz3/4gqqkhaA36hT6TogIL+TGDRyqEx/EGAziwfW6VqH8iDUSSPPQpaZf5/p3gMVLR2Mg8jesSlWES213E+ViTMfIOoxeHnhfK+lZP6k/7gtqXLtN3eg9ZQ+V0EJYrVDh5Y0A1Hkja5LnVl8U5My4upKzhLvo6hOnZ2pPZH3SCpWaqQpNO36ctbeDeFL+Xbgni56Za4ZnzTybED1cyUkUd6DwcIj4iA8cqdZr8VkI3lpc0j33owm5s3VVOs+J92SBHtX3Czmp40bHZIWCrZ3VqPtqCPsZ/4vMa5+IuwFCGZP999DO/kcu1rK7lg1jGaYx91RFKUFxY8Z+BO4QZSs+Y7tDEtU8Q38es42B8veHrhOyNijjUFrWS7FTrVVTSgBBAlToJCSwg9AtPlpyeXUswqGVWlY7SVpJ8zrpnU7EoM5Onz7zcgzJ6mUJae4G8KKbZWbcCNpwcdTpW8sZGrWhz2wt8g3jWYorjMiJ9q72fIqSLMLY2dSeTiO3HimO2q+TWWADBIiBXEfnX989Y5vY8B8WSDdPEpziNha40rEqzwH5GPToIspKctm2Re3QQf2r/Zek5Rt0aS3WYhZhk+j345V+DnktCQu5U0Dlsnb0XBXE8g2/S4PQ5+P3gZLaHEWj8hMF/gWLNZtVO4hwA7eADwr4nFW/bvCaUhc/kviqQ586qB8fW+OXgoIrMglghtrCMiyLgjCD9kiRTqyhUvduhRpCkxzvH8pGTdpSK7AU65dM3N2StRK7TSll5c/eSyQyNSmjEuNRZzgk9cb9oMb5Ytf0TdSXPM7d1x/YMu4S1rTstM5BV9WNuDjEBDXA5xDg+E8G/B6G9VeDJOwJ4D/lJ1mN6nxfYCzcgj97vzqiBo3GZLkFIETcyHjxK9qKju3Hn2g= X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(376014)(36860700013)(1800799024)(82310400026); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Oct 2024 22:18:31.5399 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 90d37421-4a2b-4d6f-8219-08dcf479cb22 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BN2PEPF000055E0.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB7378 Received-SPF: permerror client-ip=40.107.243.88; envelope-from=Babu.Moger@amd.com; helo=NAM12-DM6-obe.outbound.protection.outlook.com X-Spam_score_int: -40 X-Spam_score: -4.1 X-Spam_bar: ---- X-Spam_report: (-4.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.263, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H2=-1.697, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, 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 This series adds the support for following features in qemu. 1. RAS feature bits (SUCCOR, McaOverflowRecov) 2. perfmon-v2 3. Update EPYC-Genoa to support perfmon-v2 and RAS bits 4. Support for bits related to SRSO (sbpb, ibpb-brtype, srso-user-kernel-no) 5. Added support for feature bits CPUID_Fn80000021_EAX/CPUID_Fn80000021_EBX to address CPUID enforcement requirement in Turin platforms. 6. Add support for EPYC-Turin. Link: https://www.amd.com/content/dam/amd/en/documents/epyc-technical-docs/programmer-references/57238.zip Link: https://www.amd.com/content/dam/amd/en/documents/corporate/cr/speculative-return-stack-overflow-whitepaper.pdf --- v3: Added SBPB, IBPB_BRTYPE, SRSO_USER_KERNEL_NO, ERAPS and RAPSIZE bits to EPYC-Turin. v2: Fixed couple of typos. Added Reviewed-by tag from Zhao. Rebased on top of 6d00c6f98256 ("Merge tag 'for-upstream' of https://repo.or.cz/qemu/kevin into staging") v2: https://lore.kernel.org/kvm/cover.1723068946.git.babu.moger@amd.com/ v1: https://lore.kernel.org/qemu-devel/cover.1718218999.git.babu.moger@amd.com/ Babu Moger (6): target/i386: Fix minor typo in NO_NESTED_DATA_BP feature bit target/i386: Add RAS feature bits on EPYC CPU models target/i386: Enable perfmon-v2 and RAS feature bits on EPYC-Genoa target/i386: Expose bits related to SRSO vulnerability target/i386: Expose new feature bits in CPUID 8000_0021_EAX/EBX target/i386: Add support for EPYC-Turin model Sandipan Das (1): target/i386: Add PerfMonV2 feature bit target/i386/cpu.c | 222 +++++++++++++++++++++++++++++++++++++++++++++- target/i386/cpu.h | 27 +++++- 2 files changed, 242 insertions(+), 7 deletions(-)