[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH v3 07/11] libxl: implement device_from_vdispl and update_config_vdispl
From: Oleksandr Grytsov <oleksandr_grytsov@xxxxxxxx> Signed-off-by: Oleksandr Grytsov <oleksandr_grytsov@xxxxxxxx> --- tools/libxl/libxl_vdispl.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tools/libxl/libxl_vdispl.c b/tools/libxl/libxl_vdispl.c index 1a6c8b7..ab90cb1 100644 --- a/tools/libxl/libxl_vdispl.c +++ b/tools/libxl/libxl_vdispl.c @@ -33,6 +33,13 @@ static int libxl__device_from_vdispl(libxl__gc *gc, uint32_t domid, libxl_device_vdispl *vdispl, libxl__device *device) { + device->backend_devid = vdispl->devid; + device->backend_domid = vdispl->backend_domid; + device->backend_kind = LIBXL__DEVICE_KIND_VDISPL; + device->devid = vdispl->devid; + device->domid = domid; + device->kind = LIBXL__DEVICE_KIND_VDISPL; + return 0; } @@ -49,7 +56,8 @@ static void libxl__update_config_vdispl(libxl__gc *gc, libxl_device_vdispl *dst, libxl_device_vdispl *src) { - + dst->devid = src->devid; + dst->be_alloc = src->be_alloc; } static int libxl_device_vdispl_compare(libxl_device_vdispl *d1, -- 2.7.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |