[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-4.2-testing] xl: error if vif backend!=0 is used with run_hotplug_scripts
# HG changeset patch # User Roger Pau Monne <roger.pau@xxxxxxxxxx> # Date 1351266032 -3600 # Node ID 27312134166b0596f5de8ce0b9e7dd7c094fad68 # Parent 6fca80608511ca4c92975ed316a75478a0f317a8 xl: error if vif backend!=0 is used with run_hotplug_scripts Print an error and exit if backend!=0 is used in conjunction with run_hotplug_scripts. Currently libxl can only execute hotplug scripts from the toolstack domain (the same domain xl is running from). Added a description and workaround of this issue on xl-network-configuration. Signed-off-by: Roger Pau Monne <roger.pau@xxxxxxxxxx> Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx> Committed-by: Ian Campbell <ian.campbell@xxxxxxxxxx> xen-unstable changeset: 25897:ff6d94944039 Backport-requested-by: Ian Campbell <Ian.Campbell@xxxxxxxxxx> Committed-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> --- diff -r 6fca80608511 -r 27312134166b docs/misc/xl-network-configuration.markdown --- a/docs/misc/xl-network-configuration.markdown Fri Oct 26 16:40:24 2012 +0100 +++ b/docs/misc/xl-network-configuration.markdown Fri Oct 26 16:40:32 2012 +0100 @@ -122,8 +122,10 @@ specified IP address to be used by the g ### backend Specifies the backend domain which this device should attach to. This -defaults to domain 0. Specifying another domain requires setting up a -driver domain which is outside the scope of this document. +defaults to domain 0. This option does not work if `run_hotplug_scripts` +is not disabled in xl.conf (see xl.conf(5) man page for more information +on this option). Specifying another domain requires setting up a driver +domain which is outside the scope of this document. ### rate diff -r 6fca80608511 -r 27312134166b tools/libxl/xl_cmdimpl.c --- a/tools/libxl/xl_cmdimpl.c Fri Oct 26 16:40:24 2012 +0100 +++ b/tools/libxl/xl_cmdimpl.c Fri Oct 26 16:40:32 2012 +0100 @@ -1096,6 +1096,13 @@ static void parse_config_data(const char fprintf(stderr, "Specified backend domain does not exist, defaulting to Dom0\n"); nic->backend_domid = 0; } + if (nic->backend_domid != 0 && run_hotplug_scripts) { + fprintf(stderr, "ERROR: the vif 'backend=' option " + "cannot be used in conjunction with " + "run_hotplug_scripts, please set " + "run_hotplug_scripts to 0 in xl.conf\n"); + exit(EXIT_FAILURE); + } } else if (!strcmp(p, "rate")) { parse_vif_rate(&config, (p2 + 1), nic); } else if (!strcmp(p, "accel")) { _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |