Message ID | 20180126213944.7594-5-babu.moger@amd.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <kvm-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2E03A60211 for <patchwork-kvm@patchwork.kernel.org>; Fri, 26 Jan 2018 21:40:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 20894293D3 for <patchwork-kvm@patchwork.kernel.org>; Fri, 26 Jan 2018 21:40:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 153A22A84A; Fri, 26 Jan 2018 21:40:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9FFF9293D3 for <patchwork-kvm@patchwork.kernel.org>; Fri, 26 Jan 2018 21:40:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752205AbeAZVkG (ORCPT <rfc822;patchwork-kvm@patchwork.kernel.org>); Fri, 26 Jan 2018 16:40:06 -0500 Received: from mail-by2nam01on0070.outbound.protection.outlook.com ([104.47.34.70]:19812 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751992AbeAZVkE (ORCPT <rfc822;kvm@vger.kernel.org>); Fri, 26 Jan 2018 16:40:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=u09DB9mUVEqIuPafxnScT/hdrcU7lSuAtI9Kom3CFjM=; b=l3lFIReEJTW/eOL1MeFKJzKnNZs5I+X4cQypxRT2RgaHkRQopMS2RegoNwvIkIR9HULfOm5yuKM4SAvO/s+11GcLgfQwR7WZl14zti6AOsQvdhDeB9+O8AQNQ/P+301CfGKklryoxPLcQPTBZltdrdeZzawje0jnlEy2lb4GwFI= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Babu.Moger@amd.com; Received: from linux-pyp0.amd.com (165.204.77.1) by DM5PR12MB1769.namprd12.prod.outlook.com (10.175.89.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.428.17; Fri, 26 Jan 2018 21:40:01 +0000 From: Babu Moger <babu.moger@amd.com> To: pbonzini@redhat.com, rth@twiddle.net, ehabkost@redhat.com, pixo@polepetko.eu Cc: mtosatti@redhat.com, babu.moger@amd.com, qemu-devel@nongnu.org, kvm@vger.kernel.org Subject: [PATCH 4/5] target/i386: Enable TOPOEXT feature on AMD EPYC CPU Date: Fri, 26 Jan 2018 16:39:43 -0500 Message-Id: <20180126213944.7594-5-babu.moger@amd.com> X-Mailer: git-send-email 2.16.0 In-Reply-To: <20180126213944.7594-1-babu.moger@amd.com> References: <20180126213944.7594-1-babu.moger@amd.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: CY4PR04CA0064.namprd04.prod.outlook.com (10.171.243.157) To DM5PR12MB1769.namprd12.prod.outlook.com (10.175.89.150) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 295da33b-b7fb-4457-4b6b-08d565055aef X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:DM5PR12MB1769; X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1769; 3:RSWV5+EuJqTkHEfe+XO1tskGMEpkBR7T3bmES9Aox6LEviJteKfzvu9jbJgc6uefNehKiflpwKJWCtehppXTw5hCImxUCiNrnXCyS5+gsqWX1E9Y2uFxYX07TC3Cave3PeXuRycYPpaT6bKMz6OLjxu4pDaupepeukBRSkODXQZWjXhXt4pspCNBEwMSgpCnd1tX4BjjKj7BFQEAoLo41FUPFUKxpGnRyv5ZnRoc6/HjSB23bfkFDyHDLEYhZEd4; 25:umDBJmXVTQNpVSOGkNy5JANRmYEDvq9JlduxKYs62cK24HJk19IqkFQ8wZjHbMrDxZCoAwD2wcavP7zdKnL3AVHbpsSS8QP9uxlKmSX3+8gKWqUf67lVEry0NAMmJQVudFYiApPYBvhGi8EnNZej6KeJ1xsbRpyOjmVCVzCOcgDyFrx9Gb0Wdfoj3W9eYGe7mhAPYkzBQaN2p3r/IKFypuAj1QuMpC8Ppb3It7n9KS7qaTM3mnCgPYlVdDDvN94T+gmYJlcqVA4Si8AHDDl2PxdLXGOqtREyt/qDqNgK4TXNy+ySulryVG6rcA7e/qtmQX+cNN6ob1FX0MQNYE4ZZA==; 31:RvKyY8OshhRIrh8U9lv9+wtE96QiR2PoOeAC9Y4AulAAzKaXmBb4Mo4WLqxVt9v64NHTge0mZyiM1Muc/HmenjftqwIvWVL5KMCvV5vt1BgX6O2hshdYzIAu6TESLOz8RuGLlrcObHbT3KW8iLjKJXdunmvQFJ8mkNaNFbuxFSny6Tq/k7my3aHDzfFomHpIuiHIA0nfCFvxKpgZqUJe/YK+BSBYfq7PppQI2ua0pzg= X-MS-TrafficTypeDiagnostic: DM5PR12MB1769: X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1769; 20:eNhX5leupxu+txZxKvkJxU4xNgBakUOUh8BwgXLl9Uw7URxcvuvK+d1bVbBuT9LLQG0+FZo8Q7+LQl4/BG87v2Y0kxlUYGm7H0VtyjYptt0fBpCA5LImb0tSyFJCzPvDT4plUGb4b8QWcqcvcnFkbvkyK15nxgPvn1T9l21MyFFjRUaBx9f5M9gycuiPhKwzJ3+FpTEl8dzEU0qGXlXYjLRqsknzB5nU8v1OL/wg4bXGLLcK+DfnqlhybZM1aXRf3mV1cizLJ5KgekDp0EgFiLyqA/oK+lGV3ISso4Jp8zoc5u7DgFLJnXyrCg+FthM5D8fbcPrEkrn/H4oEF+Ry9pT02QcMvp5h59J2wlyFvjzeaodLKomcZDBuvJq9FbSCRnjnu4xyILaxyG8Vk4yQcStUfho5s+GqWGgSURmy3O8/B3VRs7b09tELXDca6nBWlOF/edBZ8hPd4oD+bkkwAs0+t/a/xRBCoWgLqjhAVJd7q4pBSZiZE86Mm8ci3vaj; 4:wbMLyilmNxLGAbCJ9pz/Eiqe6tMkRr19SkKEmePvaktUffPwt44QG8x+DgnfRLP87VcQymbgPUfngjISzeGEN7IQk+t5MPvJ4leCJPtehvHQ523pP9x2WWwRidpjgJbv+vTZN0Ax2S9cGcL6rdeeXvPb4d+KsyOTr61DprKv2sa8AjjazwVmn1H33b6puG16JdFuHq8+fclElh1Ma0XDf3tczmwPbVEgm/ldlUg1PErSdeq7+eCb1XfG3exHcxtjLBlXXc2V7TXREJNl00MHj5K2kI3fR+In0H47rxY6gGZUin6z/AmiLHVcFOngQuI5 X-Microsoft-Antispam-PRVS: <DM5PR12MB1769C8BF51217D247EE1860F95E00@DM5PR12MB1769.namprd12.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(5005006)(8121501046)(3231077)(2400081)(944501161)(10201501046)(93006095)(93001095)(3002001)(6055026)(6041288)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(6072148)(201708071742011); SRVR:DM5PR12MB1769; BCL:0; PCL:0; RULEID:; SRVR:DM5PR12MB1769; X-Forefront-PRVS: 05641FD966 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(39380400002)(346002)(396003)(376002)(366004)(189003)(199004)(5660300001)(106356001)(51416003)(7696005)(52116002)(53416004)(8936002)(68736007)(386003)(105586002)(8676002)(81156014)(81166006)(50226002)(76176011)(53936002)(6666003)(2950100002)(6486002)(4326008)(16526019)(72206003)(36756003)(86362001)(1076002)(186003)(3846002)(305945005)(2906002)(66066001)(6116002)(47776003)(50466002)(48376002)(16586007)(97736004)(7736002)(478600001)(26005)(25786009)(316002)(217873001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR12MB1769; H:linux-pyp0.amd.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR12MB1769; 23:SOvLNw9ah12Cuz1HSoM1T0UjVs/SzsSS7WwgruYxq?= =?us-ascii?Q?N7ytltDG5IVEdJGzHC8JLdbH8KH1oClZ+WrXrb97TxVGtyysZxGKNOCvPpam?= =?us-ascii?Q?zDNw95kZZDCPalvLXBof0bvoUpjH3sPqcjeE75/bj6W8dYwOpqoNravddM8F?= =?us-ascii?Q?u+gaBdSdJyVWOQ2jCnypilReKc9MO4VWjxQg2QJPSug5F5/Aw16ymOLAFLv5?= =?us-ascii?Q?Dc+fprxzg3lDKqU1z2mktB/kVZKQMIwtQZDvSUMf1raodXkysrOkA7aBpVn0?= =?us-ascii?Q?Es6Gif+YYwzNh1Vok9ttMbVCAobhkGzmurOY/p0e1RlJkRqLvKYspsQ99Yu+?= =?us-ascii?Q?BpcnRyT54tcIQNL4X+Tw0I8OAvjHyYLI0AC/+h6mm8THWxeQ+HNYzZGJGcao?= =?us-ascii?Q?2/DZb7bVbLM95VQyuTSFEPm/txUIKEfurrKpnViOR8nqBk0VbzoSWdjyrje/?= =?us-ascii?Q?2qftuiVoBK6kTAjTwyAvGy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lIgpJQcTooMAHHsE/WlwgpgVhELX0/5mEVGZM3aQa4oU/87C2Ju6ZHMKl2Io/2g83KaoA6gbzzZ3L4Uhvdf40HgdUDYbb/qowYPr6DsQRzUqfQ5NrDcPd/JlCodD9QvRR8hZkXBRke0+MKNx1bk80T6w=; 5:sT9/NQbXTagx8JA/B9B8wIvpD7V+UxEomg8oIAOdpfH2C/X5LMiTwwYXrKj1ZbYWU6dvvtQcfSwNggzMiG/q+b+ccaT+Py5PEs2v/fDlwewopbM9LIM6QFuTjqtrdqWRb3jkXOt1jt8T1H/QgvLKnUkIet5NoDMQzAqwjWil7fw=; 24:pwOscO4c4OOBoXjg5DgsWK9xeBKorThsC/3FrckMpOV76Pd8NUQD70H9WRy9YKvtN8H2REFiwvXNMJ5MfYfIDvJFBctGr2FdEVsszzXEIy8=; 7:A5hiOzCrILgN0OqbN24ZToV0/4u3CYTPgDB05PnDy9DhSe0qbThK216cs1RljCOyKKfLDqkngxPIxaNjRmW4M0d7WRBJsQwF8yFIML5yp5j92iDhdqtIU7iOjylvR7ydegIa+W52Ui09k+e7J4yKFynbuRVUUbYMaf8wFGC0Ej/bUTUQUZytGAgOHUlRcyJOUxdfXjzEauMdf5noBVh/Wma3S0e12FAlDmfdmRmoN0a7pWVWE/hPDeTFfZu3cFcu SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1769; 20:g0aLTDq6bhK4jL7wJqQOOsRM5K7LJNl7pigiePZhPhIK7miC7bGR74JxDjd4E3QkKg4seQbQyQdFUKWbd/bqyelt9CX582sPc7w6VV/BPH6SYRjivWWA+CADDeP6qyWavYsFwhyeANxWzbAyEwVLK38+G+dt2bYd7QcvRDYdtLCqZBHG1gHHVFn7m2U7z4nWMqPKK58Yz5dlpNNKnMkmOMZO1X3ioT0k9mqSbmeeh/tYSm8hZ9Hw/NadXhN4+dlW X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jan 2018 21:40:01.1104 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 295da33b-b7fb-4457-4b6b-08d565055aef X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1769 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: <kvm.vger.kernel.org> X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/target/i386/cpu.c b/target/i386/cpu.c index 52591a1486..956ed112db 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -1557,7 +1557,8 @@ static X86CPUDefinition builtin_x86_defs[] = { .features[FEAT_8000_0001_ECX] = CPUID_EXT3_OSVW | CPUID_EXT3_3DNOWPREFETCH | CPUID_EXT3_MISALIGNSSE | CPUID_EXT3_SSE4A | CPUID_EXT3_ABM | - CPUID_EXT3_CR8LEG | CPUID_EXT3_SVM | CPUID_EXT3_LAHF_LM, + CPUID_EXT3_CR8LEG | CPUID_EXT3_SVM | CPUID_EXT3_LAHF_LM | + CPUID_EXT3_TOPOEXT, .features[FEAT_7_0_EBX] = CPUID_7_0_EBX_FSGSBASE | CPUID_7_0_EBX_BMI1 | CPUID_7_0_EBX_AVX2 | CPUID_7_0_EBX_SMEP | CPUID_7_0_EBX_BMI2 | CPUID_7_0_EBX_RDSEED | @@ -1572,7 +1573,7 @@ static X86CPUDefinition builtin_x86_defs[] = { CPUID_XSAVE_XGETBV1, .features[FEAT_6_EAX] = CPUID_6_EAX_ARAT, - .xlevel = 0x8000000A, + .xlevel = 0x8000001E, .model_id = "AMD EPYC Processor", }, };
Enable TOPOEXT feature on EPYC CPU. This is required to support hyperthreading on VM guests. These are supported via CPUID_8000_001E extended functions. Signed-off-by: Babu Moger <babu.moger@amd.com> --- target/i386/cpu.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)