projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f87a606
)
vmspawn: enabled free page reporting in qemu by default
author
Sam Leonard
<sam.leonard@codethink.co.uk>
Thu, 11 Apr 2024 11:54:42 +0000
(12:54 +0100)
committer
Yu 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
patch
|
blob
|
history
diff --git
a/src/vmspawn/vmspawn.c
b/src/vmspawn/vmspawn.c
index 1828deae2aee2021c8dd151aa7d42b61edaf71ea..78fd32a5649dbedb4c22aac2148b6d85466630f8 100644
(file)
--- 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();