From nobody Tue Feb 10 06:07:40 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1500013240156860.1393949838065; Thu, 13 Jul 2017 23:20:40 -0700 (PDT) Received: from localhost ([::1]:35710 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVtxu-0005UU-S7 for importer@patchew.org; Fri, 14 Jul 2017 02:20:38 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43685) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVtt5-00019H-IT for qemu-devel@nongnu.org; Fri, 14 Jul 2017 02:15:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dVtt3-0002Bp-Sq for qemu-devel@nongnu.org; Fri, 14 Jul 2017 02:15:39 -0400 Received: from ozlabs.org ([2401:3900:2:1::2]:41327) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dVtt3-00028b-Dd; Fri, 14 Jul 2017 02:15:37 -0400 Received: by ozlabs.org (Postfix, from userid 1007) id 3x82VR62fXz9t2v; Fri, 14 Jul 2017 16:15:26 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gibson.dropbear.id.au; s=201602; t=1500012927; bh=2TewCd3PfL1t98N2zYyMeJ7kJmTylI6n64UqYYBCIW0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Icne6vTQETDayFEf8ICJn4CsevZ080j+8nPkPgX7iDI2cqBfxnBY1HsAQPa+5nbwk aoRvWaKhh3UsCVTRb7vv2i5lsuc2bDrGSUdHnSK67Cx/1p9ZnFgd1lxT6Wrqtlozuk 47sxK1jo4Xq5QKZg5NuHMiFTmyrcT5BbgNXmp4bQ= From: David Gibson To: peter.maydell@linaro.org Date: Fri, 14 Jul 2017 16:15:19 +1000 Message-Id: <20170714061521.28300-17-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170714061521.28300-1-david@gibson.dropbear.id.au> References: <20170714061521.28300-1-david@gibson.dropbear.id.au> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2401:3900:2:1::2 Subject: [Qemu-devel] [PULL 16/18] pseries: Enable HPT resizing for 2.10 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: , Cc: lvivier@redhat.com, agraf@suse.de, qemu-devel@nongnu.org, sbobroff@au1.ibm.com, mdroth@linux.vnet.ibm.com, groug@kaod.org, qemu-ppc@nongnu.org, sjitindarsingh@gmail.com, David Gibson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" We've now implemented a PAPR extensions which allows PAPR guests (i.e. "pseries" machine type) to resize their hash page table during runtime. However, that extension is only enabled if explicitly chosen on the command line. This patch enables it by default for spapr-2.10, but leaves it disabled (by default) for older machine types. Signed-off-by: David Gibson Reviewed-by: Laurent Vivier --- hw/ppc/spapr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index 322540b393..775cc28c78 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -3433,7 +3433,7 @@ static void spapr_machine_class_init(ObjectClass *oc,= void *data) smc->dr_lmb_enabled =3D true; smc->tcg_default_cpu =3D "POWER8"; mc->has_hotpluggable_cpus =3D true; - smc->resize_hpt_default =3D SPAPR_RESIZE_HPT_DISABLED; + smc->resize_hpt_default =3D SPAPR_RESIZE_HPT_ENABLED; fwc->get_dev_path =3D spapr_get_fw_dev_path; nc->nmi_monitor_handler =3D spapr_nmi; smc->phb_placement =3D spapr_phb_placement; @@ -3540,6 +3540,7 @@ static void spapr_machine_2_9_class_options(MachineCl= ass *mc) SET_MACHINE_COMPAT(mc, SPAPR_COMPAT_2_9); mc->numa_auto_assign_ram =3D numa_legacy_auto_assign_ram; smc->pre_2_10_has_unused_icps =3D true; + smc->resize_hpt_default =3D SPAPR_RESIZE_HPT_DISABLED; } =20 DEFINE_SPAPR_MACHINE(2_9, "2.9", false); --=20 2.13.0