Message ID | 1519439425-27883-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 7DD166056E for <patchwork-kvm@patchwork.kernel.org>; Sat, 24 Feb 2018 02:31:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6E2B129B33 for <patchwork-kvm@patchwork.kernel.org>; Sat, 24 Feb 2018 02:31:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 62F8229B6B; Sat, 24 Feb 2018 02:31:07 +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 0893029B33 for <patchwork-kvm@patchwork.kernel.org>; Sat, 24 Feb 2018 02:31:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752673AbeBXCa6 (ORCPT <rfc822;patchwork-kvm@patchwork.kernel.org>); Fri, 23 Feb 2018 21:30:58 -0500 Received: from mail-bl2nam02on0062.outbound.protection.outlook.com ([104.47.38.62]:45312 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752501AbeBXCay (ORCPT <rfc822;kvm@vger.kernel.org>); Fri, 23 Feb 2018 21:30:54 -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=KPnnK/0cAX8VyHLM/YZR6WzEtwM4EvxCCDnO3P0WGDc=; b=0bD/aB6Mcg9CLgWwpjPRGFEXJgI+kz4w8TLrNWctqg7K73iOfkGN3Lgc8QT1vufAimbjrSxBAIUkAGmRGIEUHE/lWbQPOtOT6GeN/7gfuMTmU/ULDZ6sCLgVkkHYh+1j4hyRghV6KXMn76q8vsLmvtwy2971MDWdfaEObP3Kf58= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Babu.Moger@amd.com; Received: from linux-pyp0.amd.com (165.204.77.1) by MWHPR12MB1776.namprd12.prod.outlook.com (2603:10b6:300:113::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.527.15; Sat, 24 Feb 2018 02:30:50 +0000 From: Babu Moger <babu.moger@amd.com> To: pbonzini@redhat.com, rth@twiddle.net, ehabkost@redhat.com Cc: mtosatti@redhat.com, qemu-devel@nongnu.org, kvm@vger.kernel.org, pixo@polepetko.eu, Gary.Hook@amd.com, babu.moger@amd.com Subject: [PATCH v2 4/5] target/i386: Enable TOPOEXT feature on AMD EPYC CPU Date: Fri, 23 Feb 2018 21:30:24 -0500 Message-Id: <1519439425-27883-5-git-send-email-babu.moger@amd.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1519439425-27883-1-git-send-email-babu.moger@amd.com> References: <1519439425-27883-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: DM5PR06CA0061.namprd06.prod.outlook.com (2603:10b6:3:37::23) To MWHPR12MB1776.namprd12.prod.outlook.com (2603:10b6:300:113::7) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 9ffb46f5-0149-4efc-029b-08d57b2e9eda X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:MWHPR12MB1776; X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1776; 3:F0MDlexndtDEtKvP8nscaagVGMrUg2dMo09ufYzBiD0HnoiqQtaII+L7fcRzA0ylyZAyBI3hY1b8vqTUoPP8w5qfm0xMg8U2Typ//D0FFxYJq6jIDLf2DKOl1nn3+wBdGVC3S3/Ruf/6IA6mVj7e7m1zp9DVEVUzFnxyaDsYaWwpxh//Witgm3d77D6ZQ4fskFeLQafwBGPcRdqoiQxk7eyKEAje80+L5DulmdSt/j/APnaxGR+0MWniYBfsbdnV; 25:gBBdjQztK1I+nwkKX3sFNYvWSTUWQjEkVlKqD31qJXn5bbl6Yl2FgQJMhN/eC80EoCrjgyAPyi2cEaOPqFiY7sGlfF644/hhh+0C+FIPWkDEOoIsCrKjIMxYrtIevhm3bCuEG+h+FvCUafOWlPxeDKA8YLcswrcnt9sGCi+ED/GRSmhxTudkk/RDFAllug3eyezbaUuaszroTkyWQQIkh4U9jIOwHvRGK7KMvhoBRSJxE1cSRS6YbeZp5lmrBO9Py9pmik3fHDAuKU23sa9uEuY8clkths9gbdjPg/P+uoId1UYoIm8402kCr83OmzlVYTQLGfmQtv8sSC5KgVvYKA==; 31:zC16aiTJRHysTXCx9zhW2LWCzU/MBaO3yzsESaoiLrqyjEs6Z3tlH+HDOHrIj9jqPSBkpC8hMkck4e5D125DOOYSIuWt0TgmuKPFjlfdRzIsIbPe8lQfcMlnVyq8ZojJvN+xAUk0KGYaq/VjCvNLx8JL5WUzwGMI0Kd2owCfX+z8Tfs+0+bRKG6G8r16K06PFpRQOcPjqmksOxzzzVc7ufdCzjrdwMuFA6p6QTYHtSo= X-MS-TrafficTypeDiagnostic: MWHPR12MB1776: X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1776; 20:mhEgXbkZ0WWEfJFFWlALBO5Ch3nvLIIKjgdG7S3uDttPD//yu3PPMs1hvC2peuCsX4ILmcRDosg2IeQCWAhoep1zcrXHsynhYOEGMDfkQrWjbVMDZASNVlwo/RsDkcI/M/fScN+Bw56mnLWcgofOFbCggRjbltYnRMAJNrm3QH/G0SEnLF5a2vaWlfzNoI4OVn87wIUjkjhQtj9tImjPYBx/4ADdecTxEJorerLaMEmaLnyOklv8EtgcLeYNV5yNm1Dl73N64Z66nHLVDlzDp58e12BfbGo/5rgkUIt4CnLoqCluGYfzv4d9TayHtd+TA+eSrc94Z58lwXASGF82BYEa5XsuYTFG1OEdq21hlliBgBHJvJwLZ+wKoFlxZNAmohGvsmk48XYO1WJyeY7JWxkO7t0QPXS91TkCrfnkLrTBo1se2mnu6r53m62jJZA/ZGG53GXpwPPzO10mPhCA8EBZELFlLR5GxQzLOUAflyZsaNP75/aswfgJTdrpFQhf; 4:+IuOrMzkyKAOEMcnvmXuk+PJkNigm2ChqIaVTNpRghnozMlx4UUlT5snmc7BxUBGaDhPv672KoKqzXSa7OjVCXHH1jpD0a+2h5o/20X1P7R6ME6sJsm/Q4uaZr31ZFs20pUpMB4+/C4tLSvzeFm7Nz8Uan/9Sdr6EkTXmlUNt1HE9NniSTQ63Axz9sNsdkQ7/wMWK9fYIll54zlkip4ECwSSJ9YX6GQjwchjN2jomy6Vn8GkIxd+uxCD/Np18TylenyqvHJp1j/jyzdoIVehEUMTiit3o7+/jgZFoxZwK8SnXf9p1gX9obnYM+qph1pA X-Microsoft-Antispam-PRVS: <MWHPR12MB17763079E9D4B552D5F421FF95C30@MWHPR12MB1776.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)(8121501046)(5005006)(93006095)(93001095)(3002001)(10201501046)(3231208)(944501161)(52105095)(6055026)(6041288)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(6072148)(201708071742011); SRVR:MWHPR12MB1776; BCL:0; PCL:0; RULEID:; SRVR:MWHPR12MB1776; X-Forefront-PRVS: 0593E261C4 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(366004)(346002)(39380400002)(39860400002)(376002)(199004)(189003)(6486002)(386003)(7736002)(305945005)(4720700003)(2950100002)(6666003)(68736007)(7696005)(52116002)(51416003)(97736004)(106356001)(47776003)(316002)(3846002)(6116002)(66066001)(76176011)(50226002)(53416004)(2906002)(72206003)(105586002)(478600001)(25786009)(53936002)(16526019)(186003)(16586007)(36756003)(86362001)(26005)(50466002)(8936002)(81156014)(8676002)(81166006)(4326008)(48376002)(5660300001)(217873001); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR12MB1776; H:linux-pyp0.amd.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX: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; MWHPR12MB1776; 23:/JXgf7/UVLiotdTV7yZW+Ly0FlwXjEfuPoJcG10gw?= =?us-ascii?Q?TB3D+tkrNVGnFrPxnXWcpOEsH2O+KjSwtGLIc0Dg6MrJPPs+FshDwUCBLwix?= =?us-ascii?Q?a5OZt+ns1Q3ncb5DPEsaJrUDPkTpod1AgyfYxIW9u0UAgNuLJF6B04VoimxF?= =?us-ascii?Q?UO+iEL7gaI0NvPHZUynX0XnKyX5o2bYYqGt7DFm6X0Zg7/O/dKhMzeI9mxsU?= =?us-ascii?Q?mIquaf3iVVdeOhEPOjo10Pu13CEaHz5dgcBeWBgj2Kfl+Aw0jJZ4RhAgiTGx?= =?us-ascii?Q?sTzMEVaAUbp0N4wHdOdvTkYogyeDjFD2I6sORHzCQFQ7/6e4/vZ31um2XYgq?= =?us-ascii?Q?6PEsUM4XycjdJ2WgXWfLah5KsBq9tBuB126cxm7xaf6/1rbgIOWB7jg2Mm6w?= =?us-ascii?Q?4Y24hTJ/khNu55N46Gsb96EmGdFqi0dwV2WxCpahmAXFuEiOFsFohgR2p+QQ?= =?us-ascii?Q?woPLCDOexCFEh5flkMLS/xdMUgwIujPywoI/rfa7HwvhGQqwLjNRMh0ztNvm?= =?us-ascii?Q?fJZNW5nSfcacLmWzRn16r+d2yTvHN16ewrwTjZEK7KCBKQ+FV1FUM5+f731y?= =?us-ascii?Q?S1N5DupyUjea+RNAKnxNHvaf5HwJxKf9g4Jy8zSQFFvYIv2czEwQe5LLILze?= =?us-ascii?Q?f3vYJSOqlYUi6myiCGgws9ata/IzqEy0CwgdExulSh+SJkTSUTQ9zbZtUleg?= =?us-ascii?Q?3RzNfdsHRihl2PklWVUUMwjmNEjhnNPCAEMlInOxy4AYmkKhTlN5q1nzKBhE?= =?us-ascii?Q?dmTr1VwfYqRi3HF6roEavYFPivHP+ad6Jl7ZbZ1E33PrcnI+UW2uTufy8t0C?= =?us-ascii?Q?tkPTsUoCEiWElP6v5MXR2V5dkBKAVI+JmVJ5Mq6dvNiIs5yLEcXLs6korwnL?= =?us-ascii?Q?CXZniBGy7Ahrc2m+AtO4xsUg/sJ6xVzAB08UBKLBkbn9jQG3HCQCgDTENgw5?= =?us-ascii?Q?3FoFVrpACgZqyISZk4eKjtWAvX8MwCxmQOHwBfGkvocNSm4mKr5Lw0JWReGs?= =?us-ascii?Q?I4tUxat9cJGadMxaE4wYZJkmNvKvdgpnu72qxk5Y/612ao90eYC6WtBThr8+?= =?us-ascii?Q?eekSnZh9JhhoJ7k+JiaVZbfz/7Epn5wvKcSMIiXz8HeujDqpI40FpygVtPTz?= =?us-ascii?Q?qRo/J39uLTg6IfQAr9KKvA/bUZD1UVRxyO5h//hw2tuyErFi9vB5g=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1776; 6:ZyJ0aFiKtqbF7XUoK/uDDBll7eMXKrwo/5a7tkcMA1j6R0qq/87CY/AjP29lwdesNFbKfXias/YrRPtqx83sMxzvjV0BSfNVF2SoiOv+02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UYZaxtmySvmvJt1ht8d41fx8VF46wrR/JWIQR/dc1yadeSB820kx8CuuLCwZ X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Feb 2018 02:30:50.0343 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9ffb46f5-0149-4efc-029b-08d57b2e9eda X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1776 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 191e850..6d06637 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. 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(-)