From: Sam Leonard Date: Thu, 11 Apr 2024 11:54:42 +0000 (+0100) Subject: vmspawn: enabled free page reporting in qemu by default X-Git-Tag: v256-rc1~218 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=657be6bdc765efb12203f1ddc4065bd3b232f19c;p=thirdparty%2Fsystemd.git 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. --- 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();