[Libvirt-cim] [PATCH V2 32/48] Fix xml generation algorithm in mem_xml()