libxl_create: Re-order callbacks of initiate_domain_create
authorAnthony PERARD <anthony.perard@citrix.com>
Wed, 12 Dec 2018 14:53:46 +0000 (14:53 +0000)
committerWei Liu <wei.liu2@citrix.com>
Wed, 2 Jan 2019 14:16:52 +0000 (14:16 +0000)
commit3fa1afc57ec8c4966727d0a9f7f997c47f25f7af
tree607ed21a677e132e8a1627ca47f92789df57cf44
parent9b97818c3d5854caa95d8af20fe7ef6112ff1b06
libxl_create: Re-order callbacks of initiate_domain_create

Callbacks should be in the order that there are going to be executed.
This patch fixes the initiate_domain_create callbacks, and also
reorders the callbacks prototypes. That way, it's easier to follow the
flow.

This patch:
- move libxl__colo_restore_setup_done after domcreate_bootloader_done.
- move domcreate_attach_devices after domcreate_devmodel_started.

No functional change.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/libxl_create.c