From patchwork Wed Mar 29 04:32:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pranith Kumar X-Patchwork-Id: 744607 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 3vtFJ23l3kz9vqB for ; Wed, 29 Mar 2017 15:33:22 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="AYZKcebr"; dkim-atps=neutral Received: from localhost ([::1]:56491 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ct5IM-0001Jb-W1 for incoming@patchwork.ozlabs.org; Wed, 29 Mar 2017 00:33:19 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46164) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ct5I7-0001JW-48 for qemu-devel@nongnu.org; Wed, 29 Mar 2017 00:33:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ct5I3-0003Hx-Vj for qemu-devel@nongnu.org; Wed, 29 Mar 2017 00:33:03 -0400 Received: from mail-yw0-x241.google.com ([2607:f8b0:4002:c05::241]:33492) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ct5I3-0003Hh-R8 for qemu-devel@nongnu.org; Wed, 29 Mar 2017 00:32:59 -0400 Received: by mail-yw0-x241.google.com with SMTP id p77so467615ywg.0 for ; Tue, 28 Mar 2017 21:32:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id; bh=cpYD9JEEdIvWY9LGo6JUT+THj61PSfj2KxARjDzEQoI=; b=AYZKcebrnTaphxyb3a+s1aeysQFG8BTvOnyqw6KV66tPKSnBDe62bqpbdGKTWmT/Sj W8zG96Z3zZcugLMMHAY7AEL/AmZwB5ufiq1EObfU2Eg2LnFmhdLWqtP2vMYnJMT/sYxy 8oWUB7flQGlOjuE2Ggs9chozWOWjGsDTPrHzoyNj41T73CrUmhddwersyIjl354JD82M fOtAx5N1l1H3ucG5VIrNFW0xATeJzA1519HKfFP8mzlJSQ5TKgCx3RDTSB5tskctcfA1 HSWDQg3RSdpLH+AaaRHHi5mLAdayEz/FT0rIiYem9tTWuJWIfSHWD1YcaBgqMyK5yEUR hV+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=cpYD9JEEdIvWY9LGo6JUT+THj61PSfj2KxARjDzEQoI=; b=o8Q9BRpsuDZsYYrOXbOMoA8+DlDcfsEzy/Cy2VsvGxEYFg8YOfq6EDVzhc0LFTj98S kbYS50YfQd1I/jt+/s5SvhAVWA2lwu1Fu3NZvHhUj++4MV4RnnMoIKb0Qrt0IOIkdriy rMQZf5MWAFCWJw5HRFnFv90R3Qy88MrBw0XuqFtnNK6u5ZeMnfC/4fjIDwLMDrMjzl69 O20oc7uVnjOYo6WZvXVcD//mNiF9yafCszHVsgpT6Kn88M+vYSY5nEANlwnRQUtpIwzD fxIZ2mhEPxGFSLBoiTMTa3gax0YOSumkBDYlCX5PUd2vBJt5Y64SWmcvMPacpMYYlqZq 5zoA== X-Gm-Message-State: AFeK/H1f9jRWcoNtTN956wua99zKtuuzbLXSJ54K8V1zxwI33joBu4XAyBlBc+S+ADJh6A== X-Received: by 10.37.37.134 with SMTP id l128mr18458452ybl.17.1490761978871; Tue, 28 Mar 2017 21:32:58 -0700 (PDT) Received: from localhost.localdomain (c-73-207-178-95.hsd1.ga.comcast.net. [73.207.178.95]) by smtp.gmail.com with ESMTPSA id q127sm2344430ywd.69.2017.03.28.21.32.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Mar 2017 21:32:58 -0700 (PDT) From: Pranith Kumar To: Paolo Bonzini , Richard Henderson , Eduardo Habkost , qemu-devel@nongnu.org (open list:All patches CC here) Date: Wed, 29 Mar 2017 00:32:57 -0400 Message-Id: <20170329043257.20595-1-bobby.prani@gmail.com> X-Mailer: git-send-email 2.11.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4002:c05::241 Subject: [Qemu-devel] [PATCH] tcg/i386: Display AMD HT warning only for KVM X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" TCG uses the AMD cpu which warns when we use hyperthreading. Disable the warning for TCG since it is not necessary. Signed-off-by: Pranith Kumar --- target/i386/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/i386/cpu.c b/target/i386/cpu.c index 7aa762245a..66242893b6 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -3647,7 +3647,7 @@ static void x86_cpu_realizefn(DeviceState *dev, Error **errp) * 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) { + if (!IS_INTEL_CPU(env) && cs->nr_threads > 1 && !ht_warned && kvm_enabled()) { error_report("AMD CPU doesn't support hyperthreading. Please configure" " -smp options properly."); ht_warned = true;