search for: qmp_parameters_add_str

Displaying 2 results from an estimated 2 matches for "qmp_parameters_add_str".

2012 Jul 27
9
[PATCH 0/3] libxl cd-insert/eject with qemu-xen
This patch series provides the facility to eject and insert a cdrom when the used device-model is qemu-xen. The only difference between both device-model is a call to a QMP command as `xl cd-insert ...` will still update xenstore, even if it''s not used by QEMU. Anthony PERARD (3): libxl_qmp, Introduce libxl__qmp_insert_cdrom. libxl_dm: Set an id to cdrom drives with qemuu. libxl:
2013 Apr 18
9
[PATCH v5 1/2] libxl: Introduce functions to add and remove USB devices to an HVM guest
...gc *gc, int domid, + libxl__device_usb *dev) +{ + libxl__json_object *args = NULL; + char *id; + + id = GCSPRINTF(HOST_USB_QDEV_ID, + (uint16_t) dev->u.hostdev.hostbus, + (uint16_t) dev->u.hostdev.hostaddr); + + qmp_parameters_add_string(gc, &args, "driver", "usb-host"); + QMP_PARAMETERS_SPRINTF(&args, "hostbus", "0x%x", dev->u.hostdev.hostbus); + QMP_PARAMETERS_SPRINTF(&args, "hostaddr", "0x%x", dev->u.hostdev.hostaddr); + + qmp_parameters_ad...