refactor libvirt to send memory as integer.