My command to start qemu looks like this:
$ qemu-system-x86_64 \
-name guest=win10 \
-m 4830196K \
-enable-kvm \
-drive file=win10.img,format=raw,index=0,media=disk,if=virtio \
......
qemu takes up 4G of memory according to the parameters I gave, but the memory size used by the guest machine may only be 2G.
I want to specify the maximum memory available for a guest, how much memory the guest uses, and how much memory qemu takes.
what should I do?