astro / microvm.nix

NixOS MicroVMs
https://astro.github.io/microvm.nix/
MIT License
1.24k stars 93 forks source link

QEMU balloon script abstraction improvement #248

Open slakkala opened 3 months ago

slakkala commented 3 months ago

Make the QEMU balloon script abstract away the difference between hypervisor balloon commands. The QMP balloon command expects the wanted memory size of the guest, so calculate the correct value from the balloon size given as argument.

Also some changes to reported balloon size; the changed signal is not emitted, if balloon size is not changed; and may report an old value.

slakkala commented 3 months ago

Added a description of SIZE. Also added balloon size query to cloud-hv's balloon script.