libxl: call hotplug scripts for disk devices from libxl
authorRoger Pau Monne <roger.pau@citrix.com>
Thu, 26 Jul 2012 15:47:34 +0000 (16:47 +0100)
committerRoger Pau Monne <roger.pau@citrix.com>
Thu, 26 Jul 2012 15:47:34 +0000 (16:47 +0100)
commitb24dc64ef34437c958b40a71f510f404e0c4bbe4
tree45d6b1f9269c422f0618918c64f4ba41752ddb7b
parent24bc7a06aea0dd3cb3c9e0ba6c0367d54fdd503e
libxl: call hotplug scripts for disk 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 disk devices, that should be called when the device is added or
removed from a guest.

We will chain the launch of the disk hotplug scripts after the
device_backend_callback callback, or directly from
libxl__initiate_device_{add,remove} if the device is already in the
desired state.

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/hotplug/Linux/xen-hotplug-common.sh
tools/libxl/libxl.c
tools/libxl/libxl_device.c
tools/libxl/libxl_internal.h
tools/libxl/libxl_linux.c
tools/libxl/libxl_netbsd.c