Three small patches for xen-4.1.0-rc
Here are three small patches that I have applied to the Fedora xen builds and I think are are suitable for xen-4.1.0.
The first patch fixes an anomaly in /etc/xen/scripts/network-route. Currently this script contains
netdev=${netdev:-eth${vifnum}}
ie. netdev is set to eth${vifnum} by default. Unfortunately vifnum is not set anywhere in the xen code so the default is actually the broken "eth". The patch changes the default to eth0 (which is what the comment at the top of the file says it should be).
The next patch updates a comment about NetworkManager not supporting bridging in Fedora 11 to refer instead to Fedora 14.
The final patch solve a build problem in Fedora rawhide, where rpm (4.9.0) doesn't automatically supply a "provides" entry for a library unless it is executable. This patch makes the libvhd and libblktap library files executable (and consistent with the other libraries in xen) so that rpm generates the right "provides" entries and therefore does the right thing when resolving package dependencies. All the patches are
Michael Young
tools/hotplug/Linux/network-route renamed from tools/hotplug/Linux/network-route.orig +1 -1
@@ -22,7 +22,7 @@ evalVariables "$@" -netdev=${netdev:-eth${vifnum}} +netdev=${netdev:-eth0} echo 1 >/proc/sys/net/ipv4/ip_forward echo 1 >/proc/sys/net/ipv4/conf/${netdev}/proxy_arp
docs/misc/network_setup.txt renamed from docs/misc/network_setup.txt.orig +1 -1
@@ -30,7 +30,7 @@ Disabling NetworkManager ------------------------ -As of time of writing (Fedora 11) NetworkManager does not support bridging, +As of time of writing (Fedora 14) NetworkManager does not support bridging, so it is neccessary to disable it, and revert to "classic" network initscripts # chkconfig NetworkManager off
tools/blktap/lib/Makefile renamed from tools/blktap/lib/Makefile.orig +1 -1
@@ -36,7 +36,7 @@ install: all $(INSTALL_DIR) $(DESTDIR)$(LIBDIR) $(INSTALL_DIR) $(DESTDIR)$(INCLUDEDIR) - $(INSTALL_DATA) $(LIB) $(DESTDIR)$(LIBDIR) + $(INSTALL_PROG) $(LIB) $(DESTDIR)$(LIBDIR) ln -sf libblktap.so.$(MAJOR).$(MINOR) $(DESTDIR)$(LIBDIR)/libblktap.so.$(MAJOR) ln -sf libblktap.so.$(MAJOR) $(DESTDIR)$(LIBDIR)/libblktap.so $(INSTALL_DATA) blktaplib.h $(DESTDIR)$(INCLUDEDIR)
tools/blktap2/vhd/lib/Makefile renamed from tools/blktap2/vhd/lib/Makefile.orig +1 -1
@@ -63,7 +63,7 @@ install: all $(INSTALL_DIR) -p $(DESTDIR)$(INST-DIR) - $(INSTALL_DATA) $(LIBVHD) $(DESTDIR)$(INST-DIR) + $(INSTALL_PROG) $(LIBVHD) $(DESTDIR)$(INST-DIR) ln -sf libvhd.so.$(LIBVHD-MAJOR).$(LIBVHD-MINOR) $(DESTDIR)$(INST-DIR)/libvhd.so.$(LIBVHD-MAJOR) ln -sf libvhd.so.$(LIBVHD-MAJOR) $(DESTDIR)$(INST-DIR)/libvhd.so
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Ian Campbell
Acked-byQuoted 2 lines · M A Young
Here are three small patches that I have applied to the Fedora xen builds and I think are are suitable for xen-4.1.0.
Thanks, I general we would prefer separate patches to be submitted separately rather than bundled in a single submission ("hg email" can help with this for large series).
In particular having independent changelogs in a form where they can be used directly (e.g. a good firstl ine summary and without references to the "first patch" etc) is much appreciated.
Quoted 7 lines
The first patch fixes an anomaly in
/etc/xen/scripts/network-route. Currently this script contains
netdev=${netdev:-eth${vifnum}}
ie. netdev is set to eth${vifnum} by default. Unfortunately vifnum is not set anywhere in the xen code so the default is actually the broken "eth". The patch changes the default to eth0 (which is what the comment at the top of the file says it should be).
The comment also refers to an antispoof setting which I don't see being implemented here. Is that just a wrong comment? (possibly cut and paste error from one of the other network-*)
Quoted 2 lines
The next patch updates a comment about NetworkManager not supporting bridging in Fedora 11 to refer instead to Fedora 14.
Was the NetworkManager stuff introduced in 14 and erroneously documented as being in 11, or was it in 11 and worked fine, or has it been continuously broken since F11? IOW should this comment refer to breakage in Fedora 11 thru 14 or something similar?
Quoted 6 lines
The final patch solve a build problem in Fedora rawhide, where rpm (4.9.0) doesn't automatically supply a "provides" entry for a library unless it is executable. This patch makes the libvhd and libblktap library files executable (and consistent with the other libraries in xen) so that rpm generates the right "provides" entries and therefore does the right thing when resolving package dependencies.
Ick, but apparently normal.
Ian.
Quoted 9 lines · Ian Campbell
Quoted 7 lines · M A Young
The first patch fixes an anomaly in
/etc/xen/scripts/network-route. Currently this script contains
netdev=${netdev:-eth${vifnum}}
ie. netdev is set to eth${vifnum} by default. Unfortunately vifnum is not set anywhere in the xen code so the default is actually the broken "eth". The patch changes the default to eth0 (which is what the comment at the top of the file says it should be).
Quoted 3 lines
The comment also refers to an antispoof setting which I don't see being implemented here. Is that just a wrong comment? (possibly cut and paste error from one of the other network-*)
I think it is wrong (or maybe there was an intention to implement it which never happened. Only the network-bridge has any antispoofing code.
Quoted 7 lines
Quoted 2 lines
The next patch updates a comment about NetworkManager not supporting bridging in Fedora 11 to refer instead to Fedora 14.
Was the NetworkManager stuff introduced in 14 and erroneously documented as being in 11, or was it in 11 and worked fine, or has it been continuously broken since F11? IOW should this comment refer to breakage in Fedora 11 thru 14 or something similar?
I think it has never worked. Fedora is perhaps mentioned because I think it may have been the first distribution to use NetworkManager. So perhaps the reference to Fedora could be removed altogether or by a more general phrase like "such as in Fedora" .
Michael Young
Ian Campbell writes ("Re: [Xen-devel] Three small patches for xen-4.1.0-rc"):
Quoted 3 lines · M A Young
Quoted 2 lines
Here are three small patches that I have applied to the Fedora xen builds and I think are are suitable for xen-4.1.0.
Thanks, I have applied them.
Quoted 3 lines
Thanks, I general we would prefer separate patches to be submitted separately rather than bundled in a single submission ("hg email" can help with this for large series).
I agree with Ian's comments.
Quoted 7 lines
Quoted 2 lines
The next patch updates a comment about NetworkManager not supporting bridging in Fedora 11 to refer instead to Fedora 14.
Was the NetworkManager stuff introduced in 14 and erroneously documented as being in 11, or was it in 11 and worked fine, or has it been continuously broken since F11? IOW should this comment refer to breakage in Fedora 11 thru 14 or something similar?
Perhaps you misread the document ? I don't think NetworkManager can set up a bridge at all. So you just have to disable NetworkManager. I clarified the wording slightly while applying the patch.
Quoted 8 lines
Quoted 6 lines
The final patch solve a build problem in Fedora rawhide, where rpm (4.9.0) doesn't automatically supply a "provides" entry for a library unless it is executable. This patch makes the libvhd and libblktap library files executable (and consistent with the other libraries in xen) so that rpm generates the right "provides" entries and therefore does the right thing when resolving package dependencies.
Ick, but apparently normal.
Shared libraries are indeed supposed to be executable. This isn't the only thing that can go wrong if they aren't.
Thanks,
Ian.