aboutsummaryrefslogtreecommitdiffstats
path: root/vm/qemu
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2024-09-27 14:50:55 +0200
committerDmitry Vyukov <dvyukov@google.com>2024-09-27 14:18:05 +0000
commit420f1484594ebf514f4eb45c32d7b12ecb4a8a4b (patch)
tree2548c0c8b2f9bda4f2952b982016cee36704cf9a /vm/qemu
parent2b1784d60091eb9bfbf640ddc0bee576f6c4fb8c (diff)
vm/qemu: increase max number of VMs
I want to create more than 128.
Diffstat (limited to 'vm/qemu')
-rw-r--r--vm/qemu/qemu.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm/qemu/qemu.go b/vm/qemu/qemu.go
index 96fdfd139..225c3ad59 100644
--- a/vm/qemu/qemu.go
+++ b/vm/qemu/qemu.go
@@ -277,8 +277,8 @@ func ctor(env *vmimpl.Env) (vmimpl.Pool, error) {
if err := config.LoadData(env.Config, cfg); err != nil {
return nil, fmt.Errorf("failed to parse qemu vm config: %w", err)
}
- if cfg.Count < 1 || cfg.Count > 128 {
- return nil, fmt.Errorf("invalid config param count: %v, want [1, 128]", cfg.Count)
+ if cfg.Count < 1 || cfg.Count > 1024 {
+ return nil, fmt.Errorf("invalid config param count: %v, want [1, 1024]", cfg.Count)
}
if env.Debug && cfg.Count > 1 {
log.Logf(0, "limiting number of VMs from %v to 1 in debug mode", cfg.Count)