libxl_disk: Use ev_qmp in libxl_cdrom_insert
authorAnthony PERARD <anthony.perard@citrix.com>
Mon, 25 Mar 2019 15:11:23 +0000 (15:11 +0000)
committerIan Jackson <ian.jackson@eu.citrix.com>
Thu, 19 Sep 2019 11:24:56 +0000 (12:24 +0100)
commit69a77e40083ab629571827f727fd2f6a4dd53e1e
treee881ead1164402baeb9c753e775201773fa200ef
parent06bb05308f607c7b5cb6feeaaeb43680e01e3113
libxl_disk: Use ev_qmp in libxl_cdrom_insert

Make libxl_cdrom_insert asynchronous when QEMU is involved.  And
have the cdrom opened by libxl, sending a file descriptor to QEMU.

The "opaque" parameter of the "add-fd" can help to figure out what a
fdset in QEMU is used for. It can be queried by "query-fdsets".

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