On Thu, 2019-09-19 at 13:18 +0200, Paolo Bonzini wrote: > I think you can pass "s" to the tx handler as well, and remove the > send_opaque and recv_opaque fields?
Qtest also uses this function to communicate over qmp (different fd). I can probably make the tx handler a wrapper which accepts "s", and passes s->fd to the real socket_send.