[libvirt] [PATCH V2] Rework configure logic for virtualport support