[libvirt] [PATCH] Add domain type checking