diff options
author | Sam Leonard <sam.leonard@codethink.co.uk> | 2024-04-11 13:54:42 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-04-11 23:10:25 +0200 |
commit | 657be6bdc765efb12203f1ddc4065bd3b232f19c (patch) | |
tree | 7d66f667d138cf0e59174219e0ec299f9a1e5b34 /src/vmspawn | |
parent | Merge pull request #32213 from yuwata/network-ndisc-redirect-fix-sender-addre... (diff) | |
download | systemd-657be6bdc765efb12203f1ddc4065bd3b232f19c.tar.xz systemd-657be6bdc765efb12203f1ddc4065bd3b232f19c.zip |
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.
Diffstat (limited to 'src/vmspawn')
-rw-r--r-- | src/vmspawn/vmspawn.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vmspawn/vmspawn.c b/src/vmspawn/vmspawn.c index 1828deae2a..78fd32a564 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(); |