libxl: add generic function to add device
authorOleksandr Grytsov <oleksandr_grytsov@epam.com>
Mon, 26 Jun 2017 13:08:56 +0000 (16:08 +0300)
committerOleksandr Grytsov <oleksandr_grytsov@epam.com>
Wed, 13 Sep 2017 07:54:45 +0000 (10:54 +0300)
commit58907d389bb30c48f285bbfce254e4939d61ec03
tree9a911d118972972bf497ebd2b8adb483f5a26494
parent082fc63f20e827eb0229d520b4ebf54140d9b21b
libxl: add generic function to add device

Add libxl__device_add to simple write XenStore device conifg
and libxl__device_add_async to update domain configuration
and write XenStore device config asynchroniously.
Almost all devices have similar libxl__device_xxxx_add function.
This generic functions implement same functionality but
using the device handling framework. Th device specific
part such as setting xen store configurationis moved
to set_xenstore_config callback of the device framework.

Signed-off-by: Oleksandr Grytsov <oleksandr_grytsov@epam.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/libxl_9pfs.c
tools/libxl/libxl_console.c
tools/libxl/libxl_create.c
tools/libxl/libxl_device.c
tools/libxl/libxl_disk.c
tools/libxl/libxl_dm.c
tools/libxl/libxl_internal.h
tools/libxl/libxl_nic.c
tools/libxl/libxl_pci.c
tools/libxl/libxl_usb.c
tools/libxl/libxl_vtpm.c