This patch series resolves the following bug:
https://bugzilla.redhat.com/show_bug.cgi?id=703851
In short, it implements support for a new "listenNetwork" attribute in
the domain's <graphics> element. When listenNetwork is specified,
libvirt will look for a network of that name (from the networks that
can be created within libvirt), and derive a listen address from the
physical interface used to connect that network to the outside
world. (More details are given in each commit message).
This is V2. The main differences from V1 are:
1) everything was rebased
2) I eliminated #if WITH_NETWORK in the .c files by defining the one
missing function as static inline when WITH_NETWORK is false.
This series is meant to be applied on top of the "network physical
device abstraction" patch series I sent a couple hours ago:
https://www.redhat.com/archives/libvir-list/2011-July/msg01294.html
Don't attempt to apply it by itself!