search for: afd7729

Displaying 4 results from an estimated 4 matches for "afd7729".

2010 Sep 14
1
[PATCH] vhost: max s/g to match qemu
...ev, indirect->addr, indirect->len, vq->indirect, - ARRAY_SIZE(vq->indirect)); + UIO_MAXIOV); if (unlikely(ret < 0)) { vq_err(vq, "Translation failure %d in indirect.\n", ret); return ret; diff --git a/drivers/vhost/vhost.h b/drivers/vhost/vhost.h index afd7729..edc8929 100644 --- a/drivers/vhost/vhost.h +++ b/drivers/vhost/vhost.h @@ -15,11 +15,6 @@ struct vhost_device; -enum { - /* Enough place for all fragments, head, and virtio net header. */ - VHOST_NET_MAX_SG = MAX_SKB_FRAGS + 2, -}; - struct vhost_work; typedef void (*vhost_work_fn_t)(struct...
2010 Sep 14
1
[PATCH] vhost: max s/g to match qemu
...ev, indirect->addr, indirect->len, vq->indirect, - ARRAY_SIZE(vq->indirect)); + UIO_MAXIOV); if (unlikely(ret < 0)) { vq_err(vq, "Translation failure %d in indirect.\n", ret); return ret; diff --git a/drivers/vhost/vhost.h b/drivers/vhost/vhost.h index afd7729..edc8929 100644 --- a/drivers/vhost/vhost.h +++ b/drivers/vhost/vhost.h @@ -15,11 +15,6 @@ struct vhost_device; -enum { - /* Enough place for all fragments, head, and virtio net header. */ - VHOST_NET_MAX_SG = MAX_SKB_FRAGS + 2, -}; - struct vhost_work; typedef void (*vhost_work_fn_t)(struct...
2010 Jul 29
1
[PATCH] vhost: locking/rcu cleanup
...) vhost_poll_start(&vq->poll, vq->kick); mutex_unlock(&vq->mutex); - if (pollstop && vq->handle_kick) + if (pollstop && vq->work.fn) vhost_poll_flush(&vq->poll); return r; } diff --git a/drivers/vhost/vhost.h b/drivers/vhost/vhost.h index afd7729..9c990ea 100644 --- a/drivers/vhost/vhost.h +++ b/drivers/vhost/vhost.h @@ -11,9 +11,10 @@ #include <linux/uio.h> #include <linux/virtio_config.h> #include <linux/virtio_ring.h> +#include <linux/srcu.h> #include <asm/atomic.h> -struct vhost_device; +struct vhost_...
2010 Jul 29
1
[PATCH] vhost: locking/rcu cleanup
...) vhost_poll_start(&vq->poll, vq->kick); mutex_unlock(&vq->mutex); - if (pollstop && vq->handle_kick) + if (pollstop && vq->work.fn) vhost_poll_flush(&vq->poll); return r; } diff --git a/drivers/vhost/vhost.h b/drivers/vhost/vhost.h index afd7729..9c990ea 100644 --- a/drivers/vhost/vhost.h +++ b/drivers/vhost/vhost.h @@ -11,9 +11,10 @@ #include <linux/uio.h> #include <linux/virtio_config.h> #include <linux/virtio_ring.h> +#include <linux/srcu.h> #include <asm/atomic.h> -struct vhost_device; +struct vhost_...