[libvirt] [RFC v2 1/2] vireventpoll: isolate common code