libxl: call hotplug scripts for nic devices from libxl
authorRoger Pau Monne <roger.pau@citrix.com>
Thu, 26 Jul 2012 15:47:35 +0000 (16:47 +0100)
committerRoger Pau Monne <roger.pau@citrix.com>
Thu, 26 Jul 2012 15:47:35 +0000 (16:47 +0100)
commit57ad6afe2a08a03c40bcd336bfb27e008e1d3e53
tree5458836e1fff4d42ab9cdc3bebb9d9225a6247f3
parentb24dc64ef34437c958b40a71f510f404e0c4bbe4
libxl: call hotplug scripts for nic devices from libxl

Since most of the needed work is already done in previous patches,
this patch only contains the necessary code to call hotplug scripts
for nic devices, that should be called when the device is added or
removed from a guest.

Added another parameter to libxl__get_hotplug_script_info, that is
used to know the number of times hotplug scripts have been called for
that device. This is currently used by IOEMU nics on Linux.

Signed-off-by: Roger Pau Monne <roger.pau@citrix.com>
Acked-by: Ian Jackson<ian.jackson@eu.citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
tools/hotplug/Linux/xen-backend.rules
tools/libxl/libxl_device.c
tools/libxl/libxl_internal.h
tools/libxl/libxl_linux.c
tools/libxl/libxl_netbsd.c