From 657be6bdc765efb12203f1ddc4065bd3b232f19c Mon Sep 17 00:00:00 2001 From: Sam Leonard Date: Thu, 11 Apr 2024 12:54:42 +0100 Subject: [PATCH] vmspawn: enabled free page reporting in qemu by default Fixes issue #32025, I saw no reason not to enable this by default so I added it to the initial qemu cmdline. --- src/vmspawn/vmspawn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vmspawn/vmspawn.c b/src/vmspawn/vmspawn.c index 1828deae2ae..78fd32a5649 100644 --- a/src/vmspawn/vmspawn.c +++ b/src/vmspawn/vmspawn.c @@ -1258,7 +1258,8 @@ static int run_virtual_machine(int kvm_device_fd, int vhost_device_fd) { "-smp", arg_cpus ?: "1", "-m", mem, "-object", "rng-random,filename=/dev/urandom,id=rng0", - "-device", "virtio-rng-pci,rng=rng0,id=rng-device0" + "-device", "virtio-rng-pci,rng=rng0,id=rng-device0", + "-device", "virtio-balloon,free-page-reporting=on" ); if (!cmdline) return log_oom(); -- 2.47.3