[libvirt] [PULL 27/45] memory-device: factor out get_memory_region() from pc-dimm