Message ID | 20180619014319.28272-9-mdroth@linux.vnet.ibm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.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 3288B601D7 for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 19 Jun 2018 03:28:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 18D1728B58 for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 19 Jun 2018 03:28:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0C8A728B67; Tue, 19 Jun 2018 03:28:36 +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=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A24D728B58 for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 19 Jun 2018 03:28:35 +0000 (UTC) Received: from localhost ([::1]:39072 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org>) id 1fV7Jq-00086P-Rm for patchwork-qemu-devel@patchwork.kernel.org; Mon, 18 Jun 2018 23:28:34 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47429) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <flukshun@gmail.com>) id 1fV5k4-0003VQ-MH for qemu-devel@nongnu.org; Mon, 18 Jun 2018 21:47:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <flukshun@gmail.com>) id 1fV5k3-00016k-QS for qemu-devel@nongnu.org; Mon, 18 Jun 2018 21:47:32 -0400 Received: from mail-ot0-x242.google.com ([2607:f8b0:4003:c0f::242]:46328) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <flukshun@gmail.com>) id 1fV5k3-00016A-Lt; Mon, 18 Jun 2018 21:47:31 -0400 Received: by mail-ot0-x242.google.com with SMTP id v24-v6so12230813otk.13; Mon, 18 Jun 2018 18:47:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=VbHSHczm6kRZ3SxNutgNs35u4qeOQ6xR2EZdRxwnzos=; b=rgyIyIOb3DCWITIV9az4McNz83GmyIrfSN1q5rs0og7CME1YPEKZ2GPgVI/1t4U9Zw FjtW+3g0dVYtRJuSBm0vH3+p0VTJ6gfeWTDon0W0Ne34N2aIhxYKYzCcIYf2JB+NSJb2 4krzPWIBlVw6qD3az4Qzv3UjIVvB2xNxIklpWT7AaaOLn8ifzoXUszH+IaSHOTKIkYFZ hpntOqRT72gLTgrovYpViccd7N9QXP4wB5N6Nm0xgRE+UmTro+uh1zQC4drWV6gNB8E2 SZNM9k3w+yKheORn9Y9qCQDMlpEsrPk/hzqsa9rYHnimvtfGyYmRoO8fsppz6sZsN/ty nK/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=VbHSHczm6kRZ3SxNutgNs35u4qeOQ6xR2EZdRxwnzos=; b=mtLdiAIJXBTBDvfNUw9weF7zEr2IGmc5AsBhZ7ThFpdBVV6iG0BJ7ij8fiBfVw1Byf xNh9FGCzO/riCKh7oYF/BdgrlYaxYalSP613NugaqhpmTOVQw5t4YvR51K2O5bk4Kk9O giQaysbS8w2xSSmYwcgT36UK4YPpOwx4XqYubiBtgcWSJilY+GtZZKtn6OuQsVxI8b1g +1FLHeFUN5uTKhDPRr0Zdqgfx5hbhDtbq8RjVc0i4KlAgCG5WQz6eqD+7YlZcdFbkQPs 2bM5K4Vcak2O6AekMPjQBuUlLrIuJoktAkkwQx5sdKgurifqEFRhZ4WjV85WGBnVHIRs QghA== X-Gm-Message-State: APt69E0oi/A3+kYe+3aGe8WXurdPYa4aUPLHpF+wZAkU7swfYy05UTsZ Oo4dhfSePgD/HTy6oZzeA6Z2uiqBiYU= X-Google-Smtp-Source: ADUXVKL/LS6iw2Sw/g2urcVZNMs9Bu6vhb+pW+nFN1ENPihfz+Er6z+i642g1T+Nprihj+w9jhOTKQ== X-Received: by 2002:a9d:1012:: with SMTP id h18-v6mr8661669ote.364.1529372850537; Mon, 18 Jun 2018 18:47:30 -0700 (PDT) Received: from localhost ([2600:1700:70:e488:b0ee:9bda:ee6f:91be]) by smtp.gmail.com with ESMTPSA id v8-v6sm16551556oti.35.2018.06.18.18.47.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Jun 2018 18:47:29 -0700 (PDT) From: Michael Roth <mdroth@linux.vnet.ibm.com> To: qemu-devel@nongnu.org Date: Mon, 18 Jun 2018 20:41:34 -0500 Message-Id: <20180619014319.28272-9-mdroth@linux.vnet.ibm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180619014319.28272-1-mdroth@linux.vnet.ibm.com> References: <20180619014319.28272-1-mdroth@linux.vnet.ibm.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c0f::242 Subject: [Qemu-devel] [PATCH 008/113] spapr: set vsmt to MAX(8, smp_threads) 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: Laurent Vivier <lvivier@redhat.com>, Greg Kurz <groug@kaod.org>, qemu-stable@nongnu.org, David Gibson <david@gibson.dropbear.id.au> Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index 0c6547faef..6f78c1cf7a 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -2289,7 +2289,7 @@ static void spapr_set_vsmt_mode(sPAPRMachineState *spapr, Error **errp) * the value that we'd get with KVM on POWER8, the * overwhelmingly common case in production systems. */ - spapr->vsmt = 8; + spapr->vsmt = MAX(8, smp_threads); } /* KVM: If necessary, set the SMT mode: */