summaryrefslogtreecommitdiff
path: root/user/qemu/spapr-page-size.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-09-10 04:15:42 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-09-10 04:15:42 +0000
commit3e58e613625fd250d7f46047b31eeec09d17bcf9 (patch)
treefe6e117fc65a22222cd7797a6295cdac0967d2f9 /user/qemu/spapr-page-size.patch
parenteaab04d5b852e788a589e36f7c74aa14847c7db5 (diff)
downloadpackages-3e58e613625fd250d7f46047b31eeec09d17bcf9.tar.gz
packages-3e58e613625fd250d7f46047b31eeec09d17bcf9.tar.bz2
packages-3e58e613625fd250d7f46047b31eeec09d17bcf9.tar.xz
packages-3e58e613625fd250d7f46047b31eeec09d17bcf9.zip
user/qemu: default to 4 KB page size for pseries KVM since that's our kernel default
Diffstat (limited to 'user/qemu/spapr-page-size.patch')
-rw-r--r--user/qemu/spapr-page-size.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/user/qemu/spapr-page-size.patch b/user/qemu/spapr-page-size.patch
new file mode 100644
index 000000000..2ea81ab80
--- /dev/null
+++ b/user/qemu/spapr-page-size.patch
@@ -0,0 +1,30 @@
+From 3a9eba6700a9f6fc307bb08b9fe672cc36804fb5 Mon Sep 17 00:00:00 2001
+From: "A. Wilcox" <AWilcox@Wilcox-Tech.com>
+Date: Sun, 9 Sep 2018 19:58:37 -0500
+Subject: [PATCH] =?UTF-8?q?spapr:=20Default=20to=204=20KiB=20page=20size?=
+ =?UTF-8?q?=20for=20Ad=C3=A9lie?=
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Not upstream eligible, most likely.
+---
+ hw/ppc/spapr.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
+index 4edb6c7d16..8628673994 100644
+--- a/hw/ppc/spapr.c
++++ b/hw/ppc/spapr.c
+@@ -3882,7 +3882,7 @@ static void spapr_machine_class_init(ObjectClass *oc, void *data)
+ smc->default_caps.caps[SPAPR_CAP_CFPC] = SPAPR_CAP_BROKEN;
+ smc->default_caps.caps[SPAPR_CAP_SBBC] = SPAPR_CAP_BROKEN;
+ smc->default_caps.caps[SPAPR_CAP_IBS] = SPAPR_CAP_BROKEN;
+- smc->default_caps.caps[SPAPR_CAP_HPT_MAXPAGESIZE] = 16; /* 64kiB */
++ smc->default_caps.caps[SPAPR_CAP_HPT_MAXPAGESIZE] = 12; /* 4kiB */
+ spapr_caps_add_properties(smc, &error_abort);
+ smc->irq = &spapr_irq_xics;
+ }
+--
+2.18.0
+