Message ID | 1528295806-90593-5-git-send-email-babu.moger@amd.com |
---|---|
State | New |
Headers | show
Return-Path: <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=amd.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=amdcloud.onmicrosoft.com header.i=@amdcloud.onmicrosoft.com header.b="rC5mYv14"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 411BCl4T5Bz9s0W for <incoming@patchwork.ozlabs.org>; Thu, 7 Jun 2018 00:40:03 +1000 (AEST) Received: from localhost ([::1]:52827 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>) id 1fQZbV-0006kt-9o for incoming@patchwork.ozlabs.org; Wed, 06 Jun 2018 10:40:01 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50568) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <Babu.Moger@amd.com>) id 1fQZYh-0004WJ-TI for qemu-devel@nongnu.org; Wed, 06 Jun 2018 10:37:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <Babu.Moger@amd.com>) id 1fQZYd-0004F4-I9 for qemu-devel@nongnu.org; Wed, 06 Jun 2018 10:37:07 -0400 Received: from mail-bl2nam02on0071.outbound.protection.outlook.com ([104.47.38.71]:30688 helo=NAM02-BL2-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <Babu.Moger@amd.com>) id 1fQZYd-0004Ew-Au for qemu-devel@nongnu.org; Wed, 06 Jun 2018 10:37:03 -0400 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:X-MS-Exchange-SenderADCheck; bh=AQjCkghDrgu5Mk0wPsEaaZ+dV5xwpTOymJ65Y+OqK/E=; b=rC5mYv14IXFB1T7YT+1G1dlJkcU/OPII4R58yoe9ajPy7wuR4DedvpLK7LsbhwCVMl4tGSE1tGphFl4nvf3QpCILcJz88IhaIJqjUqdmIl8ykTPPz32Z4UM3Wq22t83FkS0PRnRE7hTk37QvFbKE57iYqBi6w3VaPV+SjscwfKk= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Babu.Moger@amd.com; Received: from linux-h3ml.amd.com (165.204.77.1) by MW2PR12MB2476.namprd12.prod.outlook.com (2603:10b6:907:9::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.820.15; Wed, 6 Jun 2018 14:37:00 +0000 From: Babu Moger <babu.moger@amd.com> To: mst@redhat.com, marcel.apfelbaum@gmail.com, pbonzini@redhat.com, rth@twiddle.net, ehabkost@redhat.com, mtosatti@redhat.com Date: Wed, 6 Jun 2018 10:36:46 -0400 Message-Id: <1528295806-90593-5-git-send-email-babu.moger@amd.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1528295806-90593-1-git-send-email-babu.moger@amd.com> References: <1528295806-90593-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: SN4PR0501CA0082.namprd05.prod.outlook.com (2603:10b6:803:22::20) To MW2PR12MB2476.namprd12.prod.outlook.com (2603:10b6:907:9::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:MW2PR12MB2476; X-Microsoft-Exchange-Diagnostics: 1; MW2PR12MB2476; 3:gy1pfpBmZ32BKkWj5LRXzlCsxy5cY8Du8fAMW2sQ2Oif9oFE63Zzck39PK4jCsqQ1QQZhpNt4ads13C9W6EC1MNANJzXnJttpiH42DWWky74oDmpNARdoWQ2AgG3WMlTxVTYRHdgY/GeqUbfh9OhxdeVYqGStaEDkpDB4IY0MMRtAibeiufO+frMAuR41r2JFGkDInEqAmJ952eB7lKBKUilWAk/5lCc591sBXryABtgIeZiHFeavLA0iyHNHpgo; 25:PfX8Ns57yna0NobB1p3TTE2JDapHY4CiIiMuGtAId2pMOGSm1Yq7/KUl9bzLeqann7ww54Vj3aCFfglSqcMaJ4L1NQ373WiOxuTAaMhJ63aRrUp+3dHqiILrOlTMLx7ZIK1k4Fyu3VUaxMby21moL5/j3Rl2UI92kP4FirxvGvP+YG9khSgENs6acgBOpy8FZrfo/fMTpJQDbPDO++piW6MiV8U5Batcfv9L16izRRr9aLGvpwdf/D25rQIhwJ8xuEslsxXMZYFNLzva+JD/RSV/I+qbjcks4k8rDLyAso3eqcv4A0aXUrYkixzOdDAmgNrp6mB/DEBAS2ONQDZ10A==; 31:0CGz2ZA1VIVTmksQjcQ+7TfNTNa1qvnz+YxLZ5Jre9fekvv308R/qkYR4IYDQ75IIwbLrfBw/jP3OGUOgJya7HJbkjqi4N4+BVU/+Jkt4NO2P2+qv2WYjhYVzDGVDoMiwX2Qw2c6hWtVdLwK12MvTFKHm1DWOnwjTHc4MdEDznmaAZKkJ1jGdCeNlIVe2/CrmNYVZoWmdvEh5NXCZ5+OtBLc7kGTG/kCJWrZKAGeizk= X-MS-TrafficTypeDiagnostic: MW2PR12MB2476: X-Microsoft-Exchange-Diagnostics: 1; MW2PR12MB2476; 20:Ofq1IHMa5nMxVSigmspDd2SdnD8aZvh73ATUX66FAYUVOFf7rjp1BakkFECVCf05ZbWHLIxhQXNqx/BPGGMSTA6O5ARcVT9nyk2u+opRWoc4H/v9jqs9/48drwQEmKfoo7aBlFkPU9Y+YmLDxFAj+Z/Gv1PbQuMHynkZfJ80NJ9JH7xEwczTsLUfo5E94AvPdIYIR2GKjcjlx3IUw0lsHZeiK0nMHj10BsMqy46voYdWkLte9NcxzPaRUyT+hRhVmxWo8g0fZbQOabVh/SYdF3Aylez+YfVM+lxIhiCS385uUntN1HZU7a1zY55oYdNFwk4PkW7j5zuO5/gf8yzNSIPI8VDGBe/LcTPEWs/2MHmmjM1Ue+c5IRQLlNq4TmEkwyqXrFR2p+qklUtKzHWt9j2PgAunxSno7tXwV1pn6OjfLZzaVPDrqQdbjai4/+N10H2uYpS5cEWoJTc/dWC93V+wPpabsw+PesD8UYpqp6S8d+pj7FEoryuYkZTy8Dkf; 4:FMex0HRMBgZtdZgRePKxX9kzwukG3kGMH1K4vMnZLSTUcvqZVWJ5guezHi0uUkudBiS8+HsCgFoLQGIS8H/GKZjerM8e2r3s7Q+ZSmXVXruyMNMVFiXzSJyF3NTmdFsJwEC2oE69RYUvRvv0HW1wH9OcOf1+CvObixrZbSPQOcmdNK9x8FUoS5UXnVGAh9E1c1+/tpbtmKIkftorXBac2QwjplvjooovBK/THxH6ZICw/HOjnQbSxRSCypduUlVD9TrnVW93kUSlzj88UAj8vwlCIrb/IXCV3mtxrCyZqjLKLlpOC06oFwjRDm2swwqE X-Microsoft-Antispam-PRVS: <MW2PR12MB24762BE609DFBA46C95A89F695650@MW2PR12MB2476.namprd12.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(93006095)(93001095)(3002001)(3231254)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123558120)(20161123564045)(6072148)(201708071742011)(7699016); SRVR:MW2PR12MB2476; BCL:0; PCL:0; RULEID:; SRVR:MW2PR12MB2476; X-Forefront-PRVS: 06952FC175 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(346002)(396003)(39860400002)(39380400002)(366004)(189003)(199004)(4720700003)(97736004)(26005)(50466002)(4326008)(59450400001)(39060400002)(7416002)(25786009)(3846002)(72206003)(6116002)(52116002)(47776003)(7696005)(386003)(478600001)(76176011)(66066001)(51416003)(5660300001)(81166006)(2906002)(446003)(11346002)(305945005)(8936002)(86362001)(6666003)(81156014)(16526019)(8676002)(53416004)(186003)(956004)(7736002)(44832011)(486006)(476003)(316002)(68736007)(36756003)(48376002)(105586002)(50226002)(16586007)(6486002)(106356001)(2616005)(53936002)(41533002); DIR:OUT; SFP:1101; SCL:1; SRVR:MW2PR12MB2476; H:linux-h3ml.amd.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MW2PR12MB2476; 23:KnXqJx2MGF5nmO7CtxcA42PwwLI3KYTy7IdlECAwF?= 2VM3lcDgx9/3sDHMfLdQ+7e9WkckFLXDCb5RE1zkxwTtzstCW/aarClb+KM5i2v0VKn7dx1jLhOND++SYqYdZzYPFl6Tv3RkdpCu4KrpNFm6O5ZlYefhcfVKzzjzXIZmRtUODfYS1bVVDsCcYStVneVNcTGezvGRt5Atkg7kG2vnaoUMk+4Q3jkXLFGAZDHVThvcT+0Yx0ZDCRoWgvWfOAxYYZd037ylaG746PZpiE3A6ypfVM4CGN8Lz2nxPFmypG5bJTdromDH1mPJ+6+fwHz1TmWWwNmybB0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OixxS1KsfVUnBo+J+GGduWzOt+6IgrBSiE7nbpIsYHsBLPzeKTV/kfaBt6P2MD3XT4p33jU52UKrYe962Nt2/6hnGyiqVeQ0pvv/U02vZ2lSZdH3lq1+yPMArf0r6i+WILwyLzxbpSii2N6pGOf X-Microsoft-Exchange-Diagnostics: 1; MW2PR12MB2476; 6:JXmjfHdnfebPV/Am2gB4qQDqr79ywstci103z/cVJpo/30KrgnpobxARlwFy4xQXzykROx+fHS+5209abR7wBOGLa87XdP71iId2vc0RwO1cH6YxnjArKd8Hp+Ou4T2BZet12L8YXkwOppEnUUesAfEXoG1wxz4aHlmLcDMmSHLQxVOYsLthQAv9yWJWrCqmV6COcGsSCO1ZQbIzUUu9zabBXmM0iBlrkBtuesU3ksVplOeCnwIBLaCiQwYd/V7zImS/fnzX8w5ZHehNqdXkMhqibk7l6iOclhGXMCz5FB7RKErBX6BC0KUpUGNGLzZjLH8Rj6b78KqYFhR0bc7amV3DJs/ZH/hTCYTB5YH794rukB1AJFcL7SJ8h4YpF0AvNNw0N1Sd41P1ZxXUDuRUltmsViXY94yG9ypq9ULFpKC0YEgj4JUVvhmpQBtJJPIz9T19A6Ued6UFhiblPB90RA==; 5:PTVc49QL2UwmVaenmt5giQabM5XDZaXLhuRsmes+5vG71Ys978O4pWVikDyoRZ+LT01P7al6SLywnm+UvDeUIZ+goLZl4YFPLTm1VJgnl2lymat9f0BH3i39sRxvm05FRqJh1bpnc5yf8Ae+P95mZTsw6WNSY+pTULP8Nix5X/I=; 24:OyEeS8UvTstOpxo6SLg+YUz4F/d8FcsSjUKxNe6wXgSshxC2Do02sNAuzcGaDuYwZSkDYzlRMmAfMekNQX5mJwu8ek+gY3UfM31uiELX6ag= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MW2PR12MB2476; 7:NXyTQV+zhD/+nTwh3oaPSF7XqfhceFNj/Bjd4SiPBm2HWRvFifw8zdJMJisKSKCdASkTEkwjU4q7WZlEe16jBbiCtuZgywy/PXplJpwufJ4K4X58DktkTsx+rnxcHvzpmI+x6Cd7RppTzd0Mej9VogVbkTIrvSVA/XnEXxZG8Gvtdo7OJrzWqMhh+r9PuwhphXya+xX4hc3bYutyUaett4vMgZqk0t8CEApYm17c66845c7aVMBPTosjZWOo++oj; 20:3riczl0Cjkpi9f/9uIEqHGSCkJtBdTWRvFn4rxP0LUQ8WKISNoR4MJhK7WVHqdTDzy5xi0Cw4usZiJMqbP3jvZVN74cPnNNhH67kYDZ5DqR0yl6HEcsOK/+YIhrzngphDju8s5+fsHHc4qhN698VW9hH7FUQHWwvUYYT3nv+/JAagnVvy+OEwtOATw5dedN+VZkObOI1ot/fywC2JjY7VedkuvSRTn4GKyxd5VlfNLAksufb1EuWUftt3ZQYhot8 X-MS-Office365-Filtering-Correlation-Id: e685d84b-2823-4619-6204-08d5cbbaf72f X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jun 2018 14:37:00.4695 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e685d84b-2823-4619-6204-08d5cbbaf72f X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW2PR12MB2476 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 104.47.38.71 Subject: [Qemu-devel] [PATCH v12 4/4] i386: Remove generic SMT thread check X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 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: <http://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> Cc: geoff@hostfission.com, babu.moger@amd.com, kash@tripleback.net, qemu-devel@nongnu.org, kvm@vger.kernel.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> |
Series |
[v12,1/4] i386: Add support for CPUID_8000_001E for AMD
|
expand
|
diff --git a/target/i386/cpu.c b/target/i386/cpu.c index 40bf5cb..8e22b37 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -4975,17 +4975,22 @@ static void x86_cpu_realizefn(DeviceState *dev, Error **errp) } } - /* Only Intel CPUs support hyperthreading. Even though QEMU fixes this - * issue by adjusting CPUID_0000_0001_EBX and CPUID_8000_0008_ECX - * based on inputs (sockets,cores,threads), it is still better to gives + /* + * Most Intel and certain AMD CPUs support hyperthreading. Even though QEMU + * fixes this issue by adjusting CPUID_0000_0001_EBX and CPUID_8000_0008_ECX + * based on inputs (sockets,cores,threads), it is still better to give * users a warning. * * NOTE: the following code has to follow qemu_init_vcpu(). Otherwise * cs->nr_threads hasn't be populated yet and the checking is incorrect. */ - if (!IS_INTEL_CPU(env) && cs->nr_threads > 1 && !ht_warned) { - error_report("AMD CPU doesn't support hyperthreading. Please configure" - " -smp options properly."); + if (IS_AMD_CPU(env) && + !(env->features[FEAT_8000_0001_ECX] & CPUID_EXT3_TOPOEXT) && + cs->nr_threads > 1 && !ht_warned) { + error_report("This family of AMD CPU doesn't support " + "hyperthreading(%d). Please configure -smp " + "options properly or try enabling topoext feature.", + cs->nr_threads); ht_warned = true; }