I've implemented a prototype kernel module as described in this email:
Full source code and makefile attached as a bz2ball.
Not really strictly related to VDE, this module basically enables the creation
of a user space bridge.
Basically it creates /proc/vdeinject and uses that file to expose the netif_rx()
function. When you write a packet to it, the module handles all the skb stuff
and attempts to inject the packet into eth0. Currently my VDE setup seems to
be broken (my vde_pcap and vde_packet in particular don't want to work with my
vde_switch). It appears to work tho (as when using vde_pcap_inject to connect
to tap0, a dhcpd server that I was running on tap0 was able to pick up dhcp
requests from a guest).
Also, for those who want to see live updates as soon as I make changes, here
is a link:
Infinite complexity begets infinite beauty.
Infinite precision begets infinite perfection.
Description: Text document
Qemu-devel mailing list