libxl: Move qmp cleanup into devicemodel destroy function
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:55 +0000 (18:41 +0000)
commita233781cd66258b40c7d997a1845ef626fcb425e
tree659534779338b4bbf5046e6d5f7ad81b85827810
parent436bf83bf13c94eb68a34e8ae5d7fe3e4be2af33
libxl: Move qmp cleanup into devicemodel destroy function

Removing the qmp connection is logically part of the device model
destruction; having the caller destroy it is a mild layering
violation.

Move libxl__qmp_cleanup() into libxl__destroy_device_model().  This
will make it easier when we make devicemodel destruction asynchronous.

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