]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
virtio-crypto: tag as not hotpluggable and migration
authorGonglei <arei.gonglei@huawei.com>
Mon, 31 Oct 2016 14:08:00 +0000 (22:08 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 15 Nov 2016 15:20:36 +0000 (17:20 +0200)
Currently the virtio-crypto device hasn't supported
hotpluggable and live migration well. Let's tag it
as not hotpluggable and migration actively and reopen
them once we support them well.

Suggested-by: Michael S. Tsirkin <mst@redhat.com>
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-pci.c
hw/virtio/virtio-crypto.c

index 21d998401a90502cd56fb2c314e5600387345b50..a1b09064c07fe46915eede4d84fe045506ac2dfc 100644 (file)
@@ -48,7 +48,7 @@ static void virtio_crypto_pci_class_init(ObjectClass *klass, void *data)
     k->realize = virtio_crypto_pci_realize;
     set_bit(DEVICE_CATEGORY_MISC, dc->categories);
     dc->props = virtio_crypto_pci_properties;
-
+    dc->hotpluggable = false;
     pcidev_k->class_id = PCI_CLASS_OTHERS;
 }
 
index 170114f52b3d7bd3c361d40d6ab10a8427bf7103..32938433b70d99694464905fbb4a1636a9707893 100644 (file)
@@ -813,6 +813,7 @@ static void virtio_crypto_device_unrealize(DeviceState *dev, Error **errp)
 
 static const VMStateDescription vmstate_virtio_crypto = {
     .name = "virtio-crypto",
+    .unmigratable = 1,
     .minimum_version_id = VIRTIO_CRYPTO_VM_VERSION,
     .version_id = VIRTIO_CRYPTO_VM_VERSION,
     .fields = (VMStateField[]) {