Message ID | 1520281107-5115-5-git-send-email-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 F15D860365 for <patchwork-kvm@patchwork.kernel.org>; Mon, 5 Mar 2018 20:18:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E0FC428A78 for <patchwork-kvm@patchwork.kernel.org>; Mon, 5 Mar 2018 20:18:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D52DA28AE6; Mon, 5 Mar 2018 20:18:54 +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 59B6F28A78 for <patchwork-kvm@patchwork.kernel.org>; Mon, 5 Mar 2018 20:18:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752861AbeCEUSw (ORCPT <rfc822;patchwork-kvm@patchwork.kernel.org>); Mon, 5 Mar 2018 15:18:52 -0500 Received: from mail-bn3nam01on0062.outbound.protection.outlook.com ([104.47.33.62]:47061 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752586AbeCEUSs (ORCPT <rfc822;kvm@vger.kernel.org>); Mon, 5 Mar 2018 15:18:48 -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=dX6d9WQs4hcOC2DzDVkih86855Hl3DqY4D3//QOZ6X8=; b=OSTIWrNSFUE5yIkhkU8EpafF0+6otrMfiLu7cQhFjOT5+7y6s5rBspiPxZp/K3ocdBHCx3C+Nc80EmuwWNsT1fBANDpr7uOdW0VTxkaJvGI7k+hE9L6G4G626SnJV5+jhjWkbcrVP5CTxPdOEVHsHToGS0wXg82fVxtp5CKoRsc= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Babu.Moger@amd.com; Received: from linux-pyp0.amd.com (165.204.77.1) by BN6PR12MB1763.namprd12.prod.outlook.com (10.175.101.136) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.548.13; Mon, 5 Mar 2018 20:18:43 +0000 From: Babu Moger <babu.moger@amd.com> To: pbonzini@redhat.com, rth@twiddle.net, ehabkost@redhat.com, rkrcmar@redhat.com Cc: mtosatti@redhat.com, qemu-devel@nongnu.org, kvm@vger.kernel.org, Gary.Hook@amd.com, Thomas.Lendacky@amd.com, babu.moger@amd.com Subject: [PATCH v3 4/5] target/i386: Enable TOPOEXT feature on AMD EPYC CPU Date: Mon, 5 Mar 2018 15:18:26 -0500 Message-Id: <1520281107-5115-5-git-send-email-babu.moger@amd.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1520281107-5115-1-git-send-email-babu.moger@amd.com> References: <1520281107-5115-1-git-send-email-babu.moger@amd.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: CY4PR1801CA0014.namprd18.prod.outlook.com (10.171.252.27) To BN6PR12MB1763.namprd12.prod.outlook.com (10.175.101.136) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: bb3c53ab-a9d3-4d7a-4666-08d582d64bcf X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:BN6PR12MB1763; X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1763; 3:oVxmpKcU+dENJjTrClIl6d5pC7Ck5pbcISExIpF3+WHXvxlhzDdKzR6LlWgCFjQXHCWRqYbhgPEX+GHzjgU8/rhN9WIvcHE80nLWWGsTenmWrDUiSEE4F4TZRQ4RBD3HHOAJiJN1/JiQuS9fzhAuMcbSSIqXPAoGleJjOIwpKogZYzaUvjmaZnOQxr69KwIdCyUSgYKHaDAsqgBqfexw50S6iEa/sEolJVbxZH9gsxwLXvG66rM0p+XFI7GSVqj/; 25:/7RodsTCq8EhxgnQz0obEGLQTU/7clrQJiObqbsCovpFfYn6e3X8BCBjJmIHg7sMH8vhclFEJVQdxDC3xZPUWvsLZ/Wb80FIYW/Qh30HGOQKYP7UuFWoVww5kZ4qhftlWKewN9udEPY1H0cvPb62kv4IVWfN0Rp2B6n6eKc07HsAsO4OyrN+eaOC2qc1GaVdZWrCMMQwLsf0WgPGJ/XDpYwOxW9JjvYPA0RHGdhLqrdEKjgRX5typz+BUK7Da64BwVlMfg91FozNXEHNanFnMQf489rEUJG31g3j2zfwHUOyioMMFoWP67j26Iq+P5HWHCspRqoS9exwGWnVRFPOdw==; 31:znxfIl4vvm56Q+sh25GfL8hjMlOtWscgqaZ6QeAPM+Av6KlnSBtw0Oxgs/7H/0Mkofdmb5UFQD+1VPpsivc1mJ4hKQwousRA59/9rJqG1QReZqDP3klcG8NkbRJsAJUyFDJhg+3KzAsu3eiQVzpGr1Cx67rdFg6cn21Fv6y6qDvovtJ/i3MZQtNioT12SI1TVc2GNrKiapvmeRcUiLjOkIrCA/HQjCNI/5anSf8897k= X-MS-TrafficTypeDiagnostic: BN6PR12MB1763: X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1763; 20:CTaKuIIx+OdC/f2jgs8Iq49hnGkenX3MURDhYUBdQ2ZonDFtmUsg3XciIfDIoBKo06RtSUt1xmmZWI5yshoCT0nVSNe/EGp7L0c/gElkxwCw7NKppZxp2FDwkqtTpZ3wENbOaD9GwKGxb8/J5lLjmfIGKnVHbNQkf381kDMV38TE84/i10ye40hU98hSDyl4S9RVYM3Dc5bS5XyDyDyMyiNtN7YjxHgVJ5Wd+Bkj3YDKIMQ5Xw3xf8BuE3mWvktbDTQOaSEAPgyQQLmghm4GTcah0HwjXpFy5UiFDfxfSed1WdbUcdh7mEvRHcyLYO8XY+wrLRx9OoHVjfakEfUviUbV0wjspfiMQOPGAKUj9m95du0tHKDsgPOiOCu80syFb5JvNK9DvsPqojNlY4T5UjMgAtf0kiLdgCQaT2MgRoh1iv4LV+FtrYfSTrgC7Aie/JxJE6lbET1O4ngea8fcDGMCiqJJmDu0LbMXrMiBQQqffcxUKebw7dCIbp9LdNNJ; 4:5sGf2Lizu6/8/5uqP+qQG5dWBXSjuPL2hISyQ3ubCfXDerzgufsUsxxpVsTRRQrRTCBJcmazX/eV/E84EMipSjSthDcQqZuWa9NdVhYaVXJj+2swKZ8UJcBA0S3Q+C8BTU3ByuD1ysmZ5jqCD13VffNoev0d03BXTXzLNdeMD2IW5sJWyZvSfOp38CEWeAt1FQ8SRg+mZPwBZkLjrF7xg4B4mxIGEr8m2bBzXlmWC5I8w9KL3ierFQ2IS5wUzkmh/QdJICbs5tFYSX9byV+MTSQtUbA1dM6zV8FaBPxTn0eQtLoxkTrUN8q6Iz0BaCwe X-Microsoft-Antispam-PRVS: <BN6PR12MB1763F721F020D9C4C4CFC48395DA0@BN6PR12MB1763.namprd12.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040501)(2401047)(5005006)(8121501046)(10201501046)(3231220)(944501244)(52105095)(3002001)(93006095)(93001095)(6055026)(6041288)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123560045)(20161123564045)(6072148)(201708071742011); SRVR:BN6PR12MB1763; BCL:0; PCL:0; RULEID:; SRVR:BN6PR12MB1763; X-Forefront-PRVS: 06022AA85F X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(39380400002)(396003)(366004)(376002)(346002)(189003)(199004)(2950100002)(4720700003)(2906002)(106356001)(66066001)(6666003)(97736004)(25786009)(36756003)(5660300001)(478600001)(48376002)(81166006)(81156014)(8676002)(72206003)(47776003)(8936002)(50226002)(4326008)(105586002)(50466002)(26005)(6486002)(305945005)(16586007)(186003)(16526019)(316002)(52116002)(53936002)(7696005)(68736007)(53416004)(3846002)(6116002)(386003)(51416003)(7736002)(76176011)(86362001)(217873001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR12MB1763; 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; BN6PR12MB1763; 23:TVKV9dUH6N545lughhVxtbHTmrbpWU2oSJlr9MLiU?= =?us-ascii?Q?SYPwHWqpW2qyOLBHXrWuACQCWL7oZUEi7Kmx7OSQCR0iNzm9+ix0UnIXlTE4?= =?us-ascii?Q?TNmtHI7xJP2n6ZHW/qePJBv5IobIxQbI5jHtJ/NSEqm/NQuKgJ40ZzpjZU6R?= =?us-ascii?Q?49/0IyltntkrpVg4NwLzcy/p21p1X5FPLHNt8ofo+ErigDHWdWYxeWEIkbPp?= =?us-ascii?Q?cDrsS4e/6MDsAaFvRZoM7llIHgG3Y897Irj9/ngC+QkSXT2rRBv7TXuFXpav?= =?us-ascii?Q?7INhrRNggClQIrqhRoDEdRKoC/eY4nD0MDfc2syNHtmBpty4bURspvUuyEQr?= =?us-ascii?Q?3DLkIzJz/jxig4BgtQlLpoAHBqRTsuc/RqTVRMX73wjC/I09tbNPt41uvE4p?= =?us-ascii?Q?gbBnenTHE7R1YngaW8eGn9UzfCJlKTGSysxgcR00MsAz45+UKvo5TMGmwJsQ?= =?us-ascii?Q?vnoYvvER0cCzY4R596Qyy66UpDIvDHIkEyAQqe3YIIVITvyqpOPsbqWTyzTX?= =?us-ascii?Q?ms8CeMN9/Y4X/IVVMU6QvEcN4r3mPxFOspuz/9kUxFUp5iYW38shwN4HJk3D?= =?us-ascii?Q?RaSFMdV15jX9iFBC7ruxJTY5a+323Qfk63XFis5zCzBZuSWNOcrXJfuyje0L?= =?us-ascii?Q?hhYyPXJES83LzWgBziTBx5BELIoVqqu//yi17i4g3sZkWJfqAVdqU/VNKl67?= =?us-ascii?Q?dFerLcG4DbT8siPsVotRMV5ndk72DoSGyfzWK2s0LKBkbxBKOM5yT1A/oqbI?= =?us-ascii?Q?zUXjLdKolO5JiwVuktVaFKIq5hW7hnVuB3rgA54ka5ENMdwa1G+espvjQasx?= =?us-ascii?Q?8++XbkLWE1SLjmDrNRvMwsafBqR27hD5h2Ueov/PYS70cAptAoZd+4ggDxwy?= =?us-ascii?Q?YY0o/QnfyqJd543BezWVH9wKD0uQhIhdpUqzAqOmmtBcxMW7Je/ZRf1jy4Gl?= =?us-ascii?Q?HcjMGO8EM2Ayh1+eJwqyxV4WJ9pXId1klcJq1Lj9+mIHcZMPlLre8R9PD8t0?= =?us-ascii?Q?c1MP+RNyiR7L4LW+Ek9ar6/csujUTJ9/ZY9qsDgvFmt54S81tyIFunR8uVXJ?= =?us-ascii?Q?Jmum+CawBsY0Zdurm77EsmX2bNqs47KPpoXi7uxhy4/+gEr3gWILZuqM5rWk?= =?us-ascii?Q?91X6hG8q1rKtHrAFij8jcxlhQX/Otp3PpdtbfTVZlZrCkrdiXVsTQ=3D=3D?= X-Microsoft-Antispam-Message-Info: mtkywBuqMA9GG2d8HKTySAmlslawafpXlTMZmlnjxmh7WGoDnKQfFxKJvWTfZ+rbjGDAsvKkJjwNshw3H3+WKrlG1OhsREr/TxbZrVylXLK9VTk44xpQWFd1zRJ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oft-Exchange-Diagnostics: 1; BN6PR12MB1763; 20:NL7L8MPNZASzV0fvKGvMTtNm68n+VKV2rf0immDE8Nq2i+ZzJQDiWeHc9lRLchRrdMtyhoKvW8rla/ALcVslM5zheS+jYi9x9QkB/F2ngkg2aV2OiJi/UrhIywm0ycPfTLCw5+CU4vb8WiK8KYBrr/6ml28k4IEQMWyVL1CbBfTS3bIv/Ih2/qjD3ZAmg78dXUamWgHPVuVlsMCIDHqSRHDqS2VoJk3xFCeqOeJea0b5hUB47H7PlQ2B/8v8SWcs X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Mar 2018 20:18:43.8499 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bb3c53ab-a9d3-4d7a-4666-08d582d64bcf X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1763 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 555ab83..88941d9 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -1955,7 +1955,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 | @@ -1970,7 +1971,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. Also extend xlevel to 0x8000001E. Signed-off-by: Babu Moger <babu.moger@amd.com> --- target/i386/cpu.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)