]> git.proxmox.com Git - mirror_qemu.git/commit
nbd: fix NBD over TLS
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 15 Jun 2017 17:09:05 +0000 (19:09 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 24 Aug 2017 21:57:32 +0000 (16:57 -0500)
commit40ed5cdf724598f42907dd5a6b33f4f93dce398a
tree600486f8655125792028f2eb770587bcda22d569
parent21827917342bac938e462513afee6c7d39f28adc
nbd: fix NBD over TLS

When attaching the NBD QIOChannel to an AioContext, the TLS channel should
be used, not the underlying socket channel.  This is because, trivially,
the TLS channel will be the one that we read/write to and thus the one
that will get the qio_channel_yield() call.

Fixes: ff82911cd3f69f028f2537825c9720ff78bc3f19
Cc: qemu-stable@nongnu.org
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
Tested-by: Daniel P. Berrange <berrange@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 96d06835dc40007673cdfab6322e9042c4077113)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
block/nbd-client.c