diff options
author | Roger Pau Monne <roger.pau@citrix.com> | 2012-07-26 16:47:30 +0100 |
---|---|---|
committer | Roger Pau Monne <roger.pau@citrix.com> | 2012-07-26 16:47:30 +0100 |
commit | 962eb2acbb8af50f8cddc28ad4479fe9661ab65c (patch) | |
tree | e92990633073eb3d7c9ee42b7223919731c51188 /tools/libxl/libxl.h | |
parent | 6c80432517e30bfe178981b1939b17bea6e2f434 (diff) | |
download | xen-962eb2acbb8af50f8cddc28ad4479fe9661ab65c.tar.gz xen-962eb2acbb8af50f8cddc28ad4479fe9661ab65c.tar.bz2 xen-962eb2acbb8af50f8cddc28ad4479fe9661ab65c.zip |
libxl: convert libxl_device_disk_add to an async op
This patch converts libxl_device_disk_add to an ao operation that
waits for device backend to reach state XenbusStateInitWait and then
marks the operation as completed. This is not really useful now, but
will be used by later patches that will launch hotplug scripts after
we reached the desired xenbus state.
As usual, libxl_device_disk_add callers have been modified, and the
internal function libxl__device_disk_add has been used if the call was
inside an already running ao.
Signed-off-by: Roger Pau Monne <roger.pau@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
[ ijc -- drop hunk modifying libxl_cdrom_insert which is not needed after
25670:3666e9712eaf "libxl: make libxl_cdrom_insert async" ]
Committed-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'tools/libxl/libxl.h')
-rw-r--r-- | tools/libxl/libxl.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/libxl/libxl.h b/tools/libxl/libxl.h index 6f659386ee..cc872ba971 100644 --- a/tools/libxl/libxl.h +++ b/tools/libxl/libxl.h @@ -675,7 +675,9 @@ void libxl_vcpuinfo_list_free(libxl_vcpuinfo *, int nr_vcpus); */ /* Disks */ -int libxl_device_disk_add(libxl_ctx *ctx, uint32_t domid, libxl_device_disk *disk); +int libxl_device_disk_add(libxl_ctx *ctx, uint32_t domid, + libxl_device_disk *disk, + const libxl_asyncop_how *ao_how); int libxl_device_disk_remove(libxl_ctx *ctx, uint32_t domid, libxl_device_disk *disk, const libxl_asyncop_how *ao_how); |