qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: David Gibson <david@gibson.dropbear.id.au>
To: paulus@samba.org, aik@ozlabs.ru
Cc: agraf@suse.de, David Gibson <david@gibson.dropbear.id.au>,
	qemu-ppc@nongnu.org, qemu-devel@nongnu.org,
	bharata@linux.vnet.ibm.com
Subject: [Qemu-devel] [RFC 3/6] pseries: Enable HPT resizing for 2.6
Date: Mon, 21 Mar 2016 15:42:49 +1100	[thread overview]
Message-ID: <1458535372-6757-4-git-send-email-david@gibson.dropbear.id.au> (raw)
In-Reply-To: <1458535372-6757-1-git-send-email-david@gibson.dropbear.id.au>

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 qemu-2.6, but leaves it
disabled (by default) for older machine types.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
---
 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 53bd8c4..1d831ac 100644
--- a/hw/ppc/spapr.c
+++ b/hw/ppc/spapr.c
@@ -2358,7 +2358,7 @@ static void spapr_machine_class_init(ObjectClass *oc, void *data)
     mc->cpu_index_to_socket_id = spapr_cpu_index_to_socket_id;
 
     smc->dr_lmb_enabled = true;
-    smc->resize_hpt_default = SPAPR_RESIZE_HPT_DISABLED;
+    smc->resize_hpt_default = SPAPR_RESIZE_HPT_ENABLED;
     fwc->get_dev_path = spapr_get_fw_dev_path;
     nc->nmi_monitor_handler = spapr_nmi;
 }
@@ -2438,6 +2438,7 @@ static void spapr_machine_2_5_class_options(MachineClass *mc)
 
     spapr_machine_2_6_class_options(mc);
     smc->use_ohci_by_default = true;
+    smc->resize_hpt_default = SPAPR_RESIZE_HPT_DISABLED;
     SET_MACHINE_COMPAT(mc, SPAPR_COMPAT_2_5);
 }
 
-- 
2.5.0

  parent reply	other threads:[~2016-03-21  4:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-21  4:42 [Qemu-devel] [RFC 0/6] PAPR HPT resizing (qemu host side) David Gibson
2016-03-21  4:42 ` [Qemu-devel] [RFC 1/6] pseries: Stubs for HPT resizing David Gibson
2016-03-21  4:42 ` [Qemu-devel] [RFC 2/6] pseries: Implement " David Gibson
2016-03-21  4:42 ` David Gibson [this message]
2016-03-21  4:42 ` [Qemu-devel] [RFC 4/6] pseries: Use smaller default hash page tables when guest can resize David Gibson
2016-03-21  4:42 ` [Qemu-devel] [RFC 5/6] pseries: Allow HPT resizing on PR KVM David Gibson
2016-03-21  4:42 ` [Qemu-devel] [RFC 6/6] pseries: Allow KVM HV implementation of HPT resizing to be used David Gibson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1458535372-6757-4-git-send-email-david@gibson.dropbear.id.au \
    --to=david@gibson.dropbear.id.au \
    --cc=agraf@suse.de \
    --cc=aik@ozlabs.ru \
    --cc=bharata@linux.vnet.ibm.com \
    --cc=paulus@samba.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).