]> git.ipfire.org Git - thirdparty/qemu.git/commit - hw/virtio/virtio-crypto.c
cryptodev: introduce a new is_used property
authorGonglei <arei.gonglei@huawei.com>
Thu, 22 Dec 2016 03:12:38 +0000 (11:12 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 10 Jan 2017 05:02:52 +0000 (07:02 +0200)
commit46fd17054548b15b3b8a5991492f5f0dc37957d4
tree7590dc9d3f7208e1976d6461f3373ef60c9709eb
parentc159a4d1d0434fcf670f8684273bce0eca117a27
cryptodev: introduce a new is_used property

This property is used to Tag the cryptodev backend
is used by virtio-crypto or not. Making cryptodev
can't be hot unplugged when it's in use. Cleanup
resources when cryptodev is finalized.

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>
backends/cryptodev.c
hw/virtio/virtio-crypto.c
include/sysemu/cryptodev.h