* [PATCH] vhost: Bump max_mem_regions default to 256
@ 2026-03-19 8:00 Nikolay Kuratov
0 siblings, 0 replies; only message in thread
From: Nikolay Kuratov @ 2026-03-19 8:00 UTC (permalink / raw)
To: linux-kernel
Cc: netdev, virtualization, kvm, Michael S. Tsirkin, Jason Wang,
Eugenio Pérez
Today, vfio mappings for a single GPU (BAR 0) may consume more than 30
umem entries (e.g. configured by qemu with vhost-net), so bump default to
allow running with a few GPUs without module parameter adjustment - it
is harmless, since umem rarely used and iotlb already have larger limit.
Signed-off-by: Nikolay Kuratov <kniv@yandex-team.ru>
---
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 2f2c45d20883..3ac2ba272716 100644
--- a/drivers/vhost/vhost.c
+++ b/drivers/vhost/vhost.c
@@ -34,10 +34,10 @@
#include "vhost.h"
-static ushort max_mem_regions = 64;
+static ushort max_mem_regions = 256;
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: 256)");
static int max_iotlb_entries = 2048;
module_param(max_iotlb_entries, int, 0444);
MODULE_PARM_DESC(max_iotlb_entries,
--
2.34.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-03-19 8:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-19 8:00 [PATCH] vhost: Bump max_mem_regions default to 256 Nikolay Kuratov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox