[libvirt] [PATCH 1/3] rpc: first allocate the memory and then set the count