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.
This commit is contained in:
Sam Leonard 2024-04-11 12:54:42 +01:00 committed by Yu Watanabe
parent f87a606e10
commit 657be6bdc7

View 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();