libvirt/xen: move VIF configuration to separate function