xen-devel
Re: [Xen-devel] [PATCH V2 10/11] libxl_qmp, Introduce libxl__qmp_pci_add
On Mon, Oct 24, 2011 at 11:01, Ian Campbell <Ian.Campbell@xxxxxxxxxx> wrote:
>
>> + rc = qmp_synchronous_send(qmp, "device_add", &args, NULL, qmp->timeout);
>> + if (rc == 0) {
>> + rc = qmp_synchronous_send(qmp, "query-pci", NULL,
>> + &request, qmp->timeout);
>> + if (rc == 0) {
>> + rc = request.rc;
>> + }
>
> Is every caller going to want this behaviour? Perhaps it belongs in
> qmp_sync..._send?
Yes, I think we want to know if the command and the callback have been
a success or not. And, in case we want to know if it's a protocol
error or an error in the callback, then we will just need different
value return.
--
Anthony PERARD
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH V2 00/11] libxl: QMP client improvement + pci passthrougth insert through QMP, Anthony PERARD
- [Xen-devel] [PATCH V2 03/11] libxl_qmp, Better error message after a parse error., Anthony PERARD
- [Xen-devel] [PATCH V2 01/11] libxl_qmp, Fix return check of fcntl, Anthony PERARD
- [Xen-devel] [PATCH V2 04/11] libxl, Introduce dm-version xenstore key., Anthony PERARD
- [Xen-devel] [PATCH V2 06/11] libxl_qmp, Introduce list of arguments to qmp_send, Anthony PERARD
- [Xen-devel] [PATCH V2 07/11] libxl_qmp, Always insert a command id in the callback_list., Anthony PERARD
- [Xen-devel] [PATCH V2 10/11] libxl_qmp, Introduce libxl__qmp_pci_add., Anthony PERARD
- [Xen-devel] [PATCH V2 11/11] libxl, Use QMP to insert a passthrough device when using upstream QEMU, Anthony PERARD
- [Xen-devel] [PATCH V2 02/11] libxl_json, Check the parser status before to call parse_complete, Anthony PERARD
- Re: [Xen-devel] [PATCH V2 02/11] libxl_json, Check the parser status before to call parse_complete, Ian Jackson
- [Xen-devel] [PATCH V2 08/11] libxl_qmp, Introduce qmp_request_handle., Anthony PERARD
- [Xen-devel] [PATCH V2 09/11] libxl_json, Handle number abrove LONG_MAX., Anthony PERARD
|
|
|