[libvirt] [PATCH] Use virDomainGetState in migration APIs