libxl: Add dmss_init/dispose for libxl__dm_spawn_state
authorAnthony PERARD <anthony.perard@citrix.com>
Thu, 22 Nov 2018 12:09:37 +0000 (12:09 +0000)
committerWei Liu <wei.liu2@citrix.com>
Fri, 11 Jan 2019 14:57:52 +0000 (14:57 +0000)
commit785fb75168b5fd51aa2213f113995b73052f434e
treea1255fe03f3bf85f2c579ccb10dd85bab051840d
parent77b595836bfd97711afae9b1bb2548e33e87b042
libxl: Add dmss_init/dispose for libxl__dm_spawn_state

These two functions, dmss_init and dmss_dispose, need to be called to
initialise the private parts of a libxl__dm_spawn_state (dmss) as well
as dispose of them before giving back control to a caller.

There are 3 functions that can start using a dmss, the classic
libxl__spawn_local_dm, the one for stubdom libxl__spawn_stub_dm and
libxl__spawn_qdisk_backend. But there are only 2 exit path as
libxl__spawn_qdisk_backend is using libxl__spawn_local_dm functions.

These two new functions are empty but will be used shortly.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_dm.c