Commit 696f0d7743 for qemu.org

commit 696f0d77439cc2a5f5cd04818ff0b0ffc7123418
Author: Daniel P. Berrangé <berrange@redhat.com>
Date:   Fri Dec 4 11:09:57 2026 +0000

    hw/virtio: don't mark virtio-crypto as secure

    This device was deprecated in aaf25b4ccc, and given the messaging
    in that deprecation, it is inappropriate to claim it is intended
    to provide a security boundary going forward.

    Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
    Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
    Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
    Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>

diff --git a/hw/virtio/virtio-crypto-pci.c b/hw/virtio/virtio-crypto-pci.c
index 7b7dd05616..c4089f49fe 100644
--- a/hw/virtio/virtio-crypto-pci.c
+++ b/hw/virtio/virtio-crypto-pci.c
@@ -88,6 +88,6 @@ static const VirtioPCIDeviceTypeInfo virtio_crypto_pci_info = {

 static void virtio_crypto_pci_register_types(void)
 {
-    virtio_pci_types_register(&virtio_crypto_pci_info);
+    virtio_pci_types_register_insecure(&virtio_crypto_pci_info);
 }
 type_init(virtio_crypto_pci_register_types)
diff --git a/hw/virtio/virtio-crypto.c b/hw/virtio/virtio-crypto.c
index 51a99a6cf6..6d053e7d93 100644
--- a/hw/virtio/virtio-crypto.c
+++ b/hw/virtio/virtio-crypto.c
@@ -1315,7 +1315,6 @@ static const TypeInfo virtio_crypto_info = {
     .instance_size = sizeof(VirtIOCrypto),
     .instance_init = virtio_crypto_instance_init,
     .class_init = virtio_crypto_class_init,
-    .secure = true,
 };

 static void virtio_register_types(void)