public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH pve-kernel] add patch: vhost: bump max_mem_regions to 509
@ 2020-11-15 18:36 Alexandre Derumier
  2020-11-16  6:38 ` Alexandre Derumier
  2020-11-16 10:25 ` Thomas Lamprecht
  0 siblings, 2 replies; 4+ messages in thread
From: Alexandre Derumier @ 2020-11-15 18:36 UTC (permalink / raw)
  To: pve-devel

Currently, default value is 64, so qemu is limited to 64 hotplug dimm

original patch from 2015
https://patchwork.kernel.org/project/kvm/patch/1438180163-275465-3-git-send-email-imammedo@redhat.com/

We have discusted about this in 2016 (At this time some optimisations patches were missing)
https://lists.proxmox.com/pipermail/pve-devel/2016-December/024502.html

Also, this fix this bugzilla
https://bugzilla.proxmox.com/show_bug.cgi?id=1426

Wolfgang proposed to have explicit dimm module management, it could be great,
but for now this patch is fixed the current implemlentation.



Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
---
 ...08-vhost-bump-max_mem_regions-to-509.patch | 32 +++++++++++++++++++
 submodules/ubuntu-focal                       |  2 +-
 2 files changed, 33 insertions(+), 1 deletion(-)
 create mode 100644 patches/kernel/0008-vhost-bump-max_mem_regions-to-509.patch

diff --git a/patches/kernel/0008-vhost-bump-max_mem_regions-to-509.patch b/patches/kernel/0008-vhost-bump-max_mem_regions-to-509.patch
new file mode 100644
index 0000000..f547b7d
--- /dev/null
+++ b/patches/kernel/0008-vhost-bump-max_mem_regions-to-509.patch
@@ -0,0 +1,32 @@
+From 721ac248403a4c7ea98c416fc28f22c0bfbbb63d Mon Sep 17 00:00:00 2001
+From: Alexandre Derumier <aderumier@odiso.com>
+Date: Sun, 15 Nov 2020 19:19:28 +0100
+Subject: [PATCH] vhost: bump max_mem_regions to 509
+
+Currently, default value is 64, so qemu is limited to 64 hotplug dimm
+
+Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
+---
+ drivers/vhost/vhost.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c
+index 36ca2cf419bf..1d3eae6555fa 100644
+--- a/drivers/vhost/vhost.c
++++ b/drivers/vhost/vhost.c
+@@ -33,10 +33,10 @@
+ 
+ #include "vhost.h"
+ 
+-static ushort max_mem_regions = 64;
++static ushort max_mem_regions = 509;
+ module_param(max_mem_regions, ushort, 0444);
+ MODULE_PARM_DESC(max_mem_regions,
+-	"Maximum number of memory regions in memory map. (default: 64)");
++	"Maximum number of memory regions in memory map. (default: 509)");
+ static int max_iotlb_entries = 2048;
+ module_param(max_iotlb_entries, int, 0444);
+ MODULE_PARM_DESC(max_iotlb_entries,
+-- 
+2.20.1
+
diff --git a/submodules/ubuntu-focal b/submodules/ubuntu-focal
index fd386a6..721ac24 160000
--- a/submodules/ubuntu-focal
+++ b/submodules/ubuntu-focal
@@ -1 +1 @@
-Subproject commit fd386a64a1ed3f2f047318508ebd733f56a4fab2
+Subproject commit 721ac248403a4c7ea98c416fc28f22c0bfbbb63d
-- 
2.20.1




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-11-17 10:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-15 18:36 [pve-devel] [PATCH pve-kernel] add patch: vhost: bump max_mem_regions to 509 Alexandre Derumier
2020-11-16  6:38 ` Alexandre Derumier
2020-11-16 10:25 ` Thomas Lamprecht
2020-11-17 10:53   ` Alexandre Derumier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal