virtio-crypto: avoid one cryptodev device is used by multiple virtio crypto devices
commitb89f8c80ccdaf6915271df6bb16ef6b292f47f9f
authorGonglei <arei.gonglei@huawei.com>
Thu, 22 Dec 2016 03:12:41 +0000 (22 11:12 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 10 Jan 2017 05:02:52 +0000 (10 07:02 +0200)
treea098a31467685bfe6f1685a3055e3a0b40a55af8
parent305f5131ac30b4a03e698bae0976f4cd24bb0a86
virtio-crypto: avoid one cryptodev device is used by multiple virtio crypto devices

Add the check condition for cryptodev device in order
to avoid one cryptodev device is used by multiple
virtio crypto devices.

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