diff options
author | Roger Pau Monne <roger.pau@citrix.com> | 2012-10-26 16:40:32 +0100 |
---|---|---|
committer | Roger Pau Monne <roger.pau@citrix.com> | 2012-10-26 16:40:32 +0100 |
commit | 055f5673c633c38753eec9abd454c7adaaba9587 (patch) | |
tree | 969d0b41bbb18d34b995dcbc7cd0a89e0050db1b /tools/libxl | |
parent | b62fb27f1f8395812ba3676f3a931d8b48da1153 (diff) | |
download | xen-055f5673c633c38753eec9abd454c7adaaba9587.tar.gz xen-055f5673c633c38753eec9abd454c7adaaba9587.tar.bz2 xen-055f5673c633c38753eec9abd454c7adaaba9587.zip |
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@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
xen-unstable changeset: 25897:ff6d94944039
Backport-requested-by: Ian Campbell <Ian.Campbell@citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl')
-rw-r--r-- | tools/libxl/xl_cmdimpl.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index 2d6ab97298..5b59dd0847 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -1096,6 +1096,13 @@ static void parse_config_data(const char *config_source, 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")) { |