virtio-crypto: using bh to handle dataq's requests
commit20cb2ffd5ff3fdbf47d7a69d1bb649000aca66b6
authorGonglei <arei.gonglei@huawei.com>
Fri, 28 Oct 2016 08:33:30 +0000 (28 16:33 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 1 Nov 2016 17:21:08 +0000 (1 19:21 +0200)
tree00e68a2ba3eed88e2f1dc5eb5816ee7e9bfdb9eb
parentd6634ac09abf20d890fd094773f125ee0ff0b1cb
virtio-crypto: using bh to handle dataq's requests

Make crypto operations are executed asynchronously,
so that other QEMU threads and monitor couldn't
be blocked at the virtqueue handling context.

Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/virtio-crypto.c
include/hw/virtio/virtio-crypto.h