[libvirt] [PATCH 4/5] macvtap support for libvirt -- helper code