Anthony PERARD writes ("Re: [PATCH v3 07/31] libxl_qmp: Learned to send FD 
through QMP to QEMU"):
> Yes, anywhere before the last byte of the command that is going to use
> the fd. QEMU is going to store any fd received until a command is using
> it.

Great.  Can you maybe add a comment about that ?

> We should be able to the the fd, then sent several qmp command, then the
> add-fd command, and I think that will work fine.

Let's not, though :-).

> I don't think QEMU discards fds until a command is using it, or maybe
> until a new fd comes in (I did not check this second thought).

If you call read() (or recvmsg() without suitable ancillary data
parameters), the kernel will discard any fds that might have
accompanied the data you read.

Ian.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reply via email to