]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
vmspawn: enabled free page reporting in qemu by default
authorSam Leonard <sam.leonard@codethink.co.uk>
Thu, 11 Apr 2024 11:54:42 +0000 (12:54 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 11 Apr 2024 21:10:25 +0000 (06:10 +0900)
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

index 1828deae2aee2021c8dd151aa7d42b61edaf71ea..78fd32a5649dbedb4c22aac2148b6d85466630f8 100644 (file)
@@ -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();