diff options
-rw-r--r-- | hw/virtio.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/virtio.c b/hw/virtio.c index 2e3984e6ed..bb941eda75 100644 --- a/hw/virtio.c +++ b/hw/virtio.c @@ -738,6 +738,9 @@ void virtio_notify(VirtIODevice *vdev, VirtQueue *vq) void virtio_notify_config(VirtIODevice *vdev) { + if (!(vdev->status & VIRTIO_CONFIG_S_DRIVER_OK)) + return; + vdev->isr |= 0x03; virtio_update_irq(vdev); } |