]> git.ipfire.org Git - thirdparty/qemu.git/blobdiff - hw/display/vhost-user-gpu.c
virtio: introduce macro IRTIO_CONFIG_IRQ_IDX
[thirdparty/qemu.git] / hw / display / vhost-user-gpu.c
index 09818231bd24a9f8acd7ee3c2e1517561e6c1bdf..d4a440e815c8e70aca4cfe0e33acef8cbedd915a 100644 (file)
@@ -485,6 +485,9 @@ vhost_user_gpu_guest_notifier_pending(VirtIODevice *vdev, int idx)
 {
     VhostUserGPU *g = VHOST_USER_GPU(vdev);
 
+    if (idx == VIRTIO_CONFIG_IRQ_IDX) {
+        return false;
+    }
     return vhost_virtqueue_pending(&g->vhost->dev, idx);
 }
 
@@ -493,6 +496,9 @@ vhost_user_gpu_guest_notifier_mask(VirtIODevice *vdev, int idx, bool mask)
 {
     VhostUserGPU *g = VHOST_USER_GPU(vdev);
 
+    if (idx == VIRTIO_CONFIG_IRQ_IDX) {
+        return;
+    }
     vhost_virtqueue_mask(&g->vhost->dev, vdev, idx, mask);
 }