[libvirt] [PATCH] Use VIR_ERR_OPERATION_INVALID when appropriated