]> git.ipfire.org Git - thirdparty/qemu.git/blobdiff - hw/virtio/virtio-crypto.c
virtio: introduce macro IRTIO_CONFIG_IRQ_IDX
[thirdparty/qemu.git] / hw / virtio / virtio-crypto.c
index 54f9bbb789ca304afef59257297aacc4cb9caff9..1d5192f8b4f363aa2d0b7f8c271a1935090af049 100644 (file)
@@ -948,6 +948,9 @@ static void virtio_crypto_guest_notifier_mask(VirtIODevice *vdev, int idx,
 
     assert(vcrypto->vhost_started);
 
+    if (idx == VIRTIO_CONFIG_IRQ_IDX) {
+        return;
+    }
     cryptodev_vhost_virtqueue_mask(vdev, queue, idx, mask);
 }
 
@@ -958,6 +961,9 @@ static bool virtio_crypto_guest_notifier_pending(VirtIODevice *vdev, int idx)
 
     assert(vcrypto->vhost_started);
 
+    if (idx == VIRTIO_CONFIG_IRQ_IDX) {
+        return false;
+    }
     return cryptodev_vhost_virtqueue_pending(vdev, queue, idx);
 }