libxl: Make killing of device model asynchronous
authorGeorge Dunlap <george.dunlap@citrix.com>
Fri, 21 Dec 2018 15:41:08 +0000 (15:41 +0000)
committerGeorge Dunlap <george.dunlap@citrix.com>
Fri, 21 Dec 2018 18:41:56 +0000 (18:41 +0000)
commit6a05c1a9b624f54b3687087829a25503088d1be5
treeb7ea7a7d6fc0258976a15fb614ce3bdbbb4b04f1
parenta233781cd66258b40c7d997a1845ef626fcb425e
libxl: Make killing of device model asynchronous

Or at least, give it an asynchronous interface so that we can make it
actually asynchronous in subsequent patches.

Create state structures and callback function signatures.  Add the
state structure to libxl__destroy_domid_state.  Break
libxl__destroy_domid down into two functions.

No functional change intended.

Signed-off-by: George Dunlap <george.dunlap@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_dm.c
tools/libxl/libxl_domain.c
tools/libxl/libxl_internal.h