I realized that when I create KVM virtual machines, they end up having approximately ~2% less memory than the actual max memory given.
For example if I set the max and current memory of a VM to 1024MB of RAM, if I boot it up it will have 997MB of RAM
For 2048MB it will actually have 2007MB and for 10240MB, 10021MB respectively.
virsh setmaxmem --kilobytes 1048576 VM_Name
virsh setmem --current --kilobytes 1048576 VM_Name
Anyone knows why?
I made some research but I couldn't find an explanation to this.