Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5786aee8 authored by Michael S. Tsirkin's avatar Michael S. Tsirkin
Browse files

vhost: fix log ctx signalling



The log eventfd signalling got put in dead code.
We didn't notice because qemu currently does polling
instead of eventfd select.

Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent ee05d693
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -858,11 +858,12 @@ int vhost_log_write(struct vhost_virtqueue *vq, struct vhost_log *log,
		if (r < 0)
			return r;
		len -= l;
		if (!len)
			return 0;
	}
		if (!len) {
			if (vq->log_ctx)
				eventfd_signal(vq->log_ctx, 1);
			return 0;
		}
	}
	/* Length written exceeds what we have stored. This is a bug. */
	BUG();
	return 0;