The patch set make the cryptodev object can be hot plugging in safety, and which are preparing works for virtio-crypto device hotplugging.
Patch 5 opens the hotplugging capability for virtio crypto device. Gonglei (5): cryptodev: introduce a new is_used property cryptodev: wrap the ready flag virtio-crypto-pci: add check for cryptodev object virtio-crypto: avoid one cryptodev device is used by multiple virtio crypto devices virtio-crypto-pci: tag virtio-crypto device hot pluggable backends/cryptodev-builtin.c | 4 ++++ backends/cryptodev.c | 34 ++++++++++++++++++++++++++++++---- hw/virtio/virtio-crypto-pci.c | 6 +++++- hw/virtio/virtio-crypto.c | 22 +++++++++++++++++++--- include/sysemu/cryptodev.h | 42 ++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 100 insertions(+), 8 deletions(-) -- 1.8.3.1