[libvirt] [PATCH 3/4] memory: make it easier to avoid quadratic scaling of arrays