[libvirt] [PATCH] init cont->idx correctly