From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id E589869BEB for ; Sun, 15 Nov 2020 19:36:49 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id A2AF628749 for ; Sun, 15 Nov 2020 19:36:19 +0100 (CET) Received: from kvmformation1.odiso.net (globalOdiso.M6Lille.odiso.net [89.248.211.242]) by firstgate.proxmox.com (Proxmox) with ESMTP id 1222628741 for ; Sun, 15 Nov 2020 19:36:18 +0100 (CET) Received: by kvmformation1.odiso.net (Postfix, from userid 0) id B2CB3BF7A87; Sun, 15 Nov 2020 19:36:10 +0100 (CET) From: Alexandre Derumier To: pve-devel@lists.proxmox.com Date: Sun, 15 Nov 2020 19:36:09 +0100 Message-Id: <20201115183609.3022395-1-aderumier@odiso.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 2 AWL -0.511 Adjusted score from AWL reputation of From: address HEADER_FROM_DIFFERENT_DOMAINS 0.249 From and EnvelopeFrom 2nd level mail domains are different KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment KAM_LAZY_DOMAIN_SECURITY 1 Sending domain does not have any anti-forgery methods KAM_NUMSUBJECT 0.5 Subject ends in numbers excluding current years KHOP_HELO_FCRDNS 0.4 Relay HELO differs from its IP's reverse DNS NO_DNS_FOR_FROM 0.379 Envelope sender has no MX or A DNS records SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_NONE 0.001 SPF: sender does not publish an SPF Record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [proxmox.com] Subject: [pve-devel] [PATCH pve-kernel] add patch: vhost: bump max_mem_regions to 509 X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Nov 2020 18:36:50 -0000 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 --- ...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 +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 +--- + 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