search for: last_used_event

Displaying 20 results from an estimated 20 matches for "last_used_event".

2017 Jul 27
2
[PATCH V2 net] Revert "vhost: cache used event for better performance"
...diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index e4613a3..9cb3f72 100644 --- a/drivers/vhost/vhost.c +++ b/drivers/vhost/vhost.c @@ -308,7 +308,6 @@ static void vhost_vq_reset(struct vhost_dev *dev, vq->avail = NULL; vq->used = NULL; vq->last_avail_idx = 0; - vq->last_used_event = 0; vq->avail_idx = 0; vq->last_used_idx = 0; vq->signalled_used = 0; @@ -1402,7 +1401,7 @@ long vhost_vring_ioctl(struct vhost_dev *d, int ioctl, void __user *argp) r = -EINVAL; break; } - vq->last_avail_idx = vq->last_used_event = s.num; + vq->last_avail_idx...
2017 Jul 27
2
[PATCH V2 net] Revert "vhost: cache used event for better performance"
...diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index e4613a3..9cb3f72 100644 --- a/drivers/vhost/vhost.c +++ b/drivers/vhost/vhost.c @@ -308,7 +308,6 @@ static void vhost_vq_reset(struct vhost_dev *dev, vq->avail = NULL; vq->used = NULL; vq->last_avail_idx = 0; - vq->last_used_event = 0; vq->avail_idx = 0; vq->last_used_idx = 0; vq->signalled_used = 0; @@ -1402,7 +1401,7 @@ long vhost_vring_ioctl(struct vhost_dev *d, int ioctl, void __user *argp) r = -EINVAL; break; } - vq->last_avail_idx = vq->last_used_event = s.num; + vq->last_avail_idx...
2017 Jul 26
4
[PATCH net] Revert "vhost: cache used event for better performance"
...diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index e4613a3..9cb3f72 100644 --- a/drivers/vhost/vhost.c +++ b/drivers/vhost/vhost.c @@ -308,7 +308,6 @@ static void vhost_vq_reset(struct vhost_dev *dev, vq->avail = NULL; vq->used = NULL; vq->last_avail_idx = 0; - vq->last_used_event = 0; vq->avail_idx = 0; vq->last_used_idx = 0; vq->signalled_used = 0; @@ -1402,7 +1401,7 @@ long vhost_vring_ioctl(struct vhost_dev *d, int ioctl, void __user *argp) r = -EINVAL; break; } - vq->last_avail_idx = vq->last_used_event = s.num; + vq->last_avail_idx...
2017 Jul 26
4
[PATCH net] Revert "vhost: cache used event for better performance"
...diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index e4613a3..9cb3f72 100644 --- a/drivers/vhost/vhost.c +++ b/drivers/vhost/vhost.c @@ -308,7 +308,6 @@ static void vhost_vq_reset(struct vhost_dev *dev, vq->avail = NULL; vq->used = NULL; vq->last_avail_idx = 0; - vq->last_used_event = 0; vq->avail_idx = 0; vq->last_used_idx = 0; vq->signalled_used = 0; @@ -1402,7 +1401,7 @@ long vhost_vring_ioctl(struct vhost_dev *d, int ioctl, void __user *argp) r = -EINVAL; break; } - vq->last_avail_idx = vq->last_used_event = s.num; + vq->last_avail_idx...
2016 Dec 12
0
[PATCH] vhost: cache used event for better performance
...diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index 2663543..d3fa550 100644 --- a/drivers/vhost/vhost.c +++ b/drivers/vhost/vhost.c @@ -290,6 +290,7 @@ static void vhost_vq_reset(struct vhost_dev *dev, vq->avail = NULL; vq->used = NULL; vq->last_avail_idx = 0; + vq->last_used_event = 0; vq->avail_idx = 0; vq->last_used_idx = 0; vq->signalled_used = 0; @@ -1324,7 +1325,7 @@ long vhost_vring_ioctl(struct vhost_dev *d, int ioctl, void __user *argp) r = -EINVAL; break; } - vq->last_avail_idx = s.num; + vq->last_avail_idx = vq->last_used_event...
2016 Dec 12
0
[PATCH] vhost: cache used event for better performance
...diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index 2663543..d3fa550 100644 --- a/drivers/vhost/vhost.c +++ b/drivers/vhost/vhost.c @@ -290,6 +290,7 @@ static void vhost_vq_reset(struct vhost_dev *dev, vq->avail = NULL; vq->used = NULL; vq->last_avail_idx = 0; + vq->last_used_event = 0; vq->avail_idx = 0; vq->last_used_idx = 0; vq->signalled_used = 0; @@ -1324,7 +1325,7 @@ long vhost_vring_ioctl(struct vhost_dev *d, int ioctl, void __user *argp) r = -EINVAL; break; } - vq->last_avail_idx = s.num; + vq->last_avail_idx = vq->last_used_event...
2017 Jul 26
0
[PATCH net] Revert "vhost: cache used event for better performance"
...rivers/vhost/vhost.c > index e4613a3..9cb3f72 100644 > --- a/drivers/vhost/vhost.c > +++ b/drivers/vhost/vhost.c > @@ -308,7 +308,6 @@ static void vhost_vq_reset(struct vhost_dev *dev, > vq->avail = NULL; > vq->used = NULL; > vq->last_avail_idx = 0; > - vq->last_used_event = 0; > vq->avail_idx = 0; > vq->last_used_idx = 0; > vq->signalled_used = 0; > @@ -1402,7 +1401,7 @@ long vhost_vring_ioctl(struct vhost_dev *d, int ioctl, void __user *argp) > r = -EINVAL; > break; > } > - vq->last_avail_idx = vq->last_used_...
2017 Jul 26
2
[PATCH net] Revert "vhost: cache used event for better performance"
...ed to do to make it stale? This will be helpful if > > > anyone wants to bring it back, or if we want to extend the protocol. > > > > > > > The problem we don't know whether or not guest has published a new used > > event. The check vring_need_event(vq->last_used_event, new + vq->num, > > new) is not sufficient to check for this. > > > > Thanks > > More notes, the previous assumption is that we don't move used event back, > but this could happen in fact if idx is wrapper around. You mean if the 16 bit index wraps around after...
2017 Jul 26
2
[PATCH net] Revert "vhost: cache used event for better performance"
...ed to do to make it stale? This will be helpful if > > > anyone wants to bring it back, or if we want to extend the protocol. > > > > > > > The problem we don't know whether or not guest has published a new used > > event. The check vring_need_event(vq->last_used_event, new + vq->num, > > new) is not sufficient to check for this. > > > > Thanks > > More notes, the previous assumption is that we don't move used event back, > but this could happen in fact if idx is wrapper around. You mean if the 16 bit index wraps around after...
2017 Jul 26
3
[PATCH net] Revert "vhost: cache used event for better performance"
...e? How does it get stale? > What does guest need to do to make it stale? This will be helpful if > anyone wants to bring it back, or if we want to extend the protocol. > The problem we don't know whether or not guest has published a new used event. The check vring_need_event(vq->last_used_event, new + vq->num, new) is not sufficient to check for this. Thanks
2017 Jul 26
3
[PATCH net] Revert "vhost: cache used event for better performance"
...e? How does it get stale? > What does guest need to do to make it stale? This will be helpful if > anyone wants to bring it back, or if we want to extend the protocol. > The problem we don't know whether or not guest has published a new used event. The check vring_need_event(vq->last_used_event, new + vq->num, new) is not sufficient to check for this. Thanks
2017 Aug 09
1
[PATCH net] Revert "vhost: cache used event for better performance"
...ke it stale? This will be helpful if >>>>> anyone wants to bring it back, or if we want to extend the protocol. >>>>> >>>> The problem we don't know whether or not guest has published a new used >>>> event. The check vring_need_event(vq->last_used_event, new + vq->num, >>>> new) is not sufficient to check for this. >>>> >>>> Thanks >>> More notes, the previous assumption is that we don't move used event back, >>> but this could happen in fact if idx is wrapper around. >> You mean i...
2017 Aug 09
1
[PATCH net] Revert "vhost: cache used event for better performance"
...ke it stale? This will be helpful if >>>>> anyone wants to bring it back, or if we want to extend the protocol. >>>>> >>>> The problem we don't know whether or not guest has published a new used >>>> event. The check vring_need_event(vq->last_used_event, new + vq->num, >>>> new) is not sufficient to check for this. >>>> >>>> Thanks >>> More notes, the previous assumption is that we don't move used event back, >>> but this could happen in fact if idx is wrapper around. >> You mean i...
2017 Jul 30
0
[PATCH net] Revert "vhost: cache used event for better performance"
...???This will be helpful if > > > > anyone wants to bring it back, or if we want to extend the protocol. > > > > > > > > > > The problem we don't know whether or not guest has published a new used > > > event. The check vring_need_event(vq->last_used_event, new + vq->num, > > > new) is not sufficient to check for this. > > > > > > Thanks > > > > More notes, the previous assumption is that we don't move used event back, > > but this could happen in fact if idx is wrapper around. > > You mean...
2017 Jul 26
0
[PATCH net] Revert "vhost: cache used event for better performance"
...>> What does guest need to do to make it stale? This will be helpful if >> anyone wants to bring it back, or if we want to extend the protocol. >> > > The problem we don't know whether or not guest has published a new > used event. The check vring_need_event(vq->last_used_event, new + > vq->num, new) is not sufficient to check for this. > > Thanks More notes, the previous assumption is that we don't move used event back, but this could happen in fact if idx is wrapper around. Will repost and add this into commit log. Thanks
2017 Mar 07
2
[PATCH] vhost: Move vhost.h to allow vhost driver out-of-tree compilation
...all when the Guest pings us, or timeout. */ - vhost_work_fn_t handle_kick; - - /* Last available index we saw. */ - u16 last_avail_idx; - - /* Caches available index value from user. */ - u16 avail_idx; - - /* Last index we used. */ - u16 last_used_idx; - - /* Last used evet we've seen */ - u16 last_used_event; - - /* Used flags */ - u16 used_flags; - - /* Last used index value we have signalled on */ - u16 signalled_used; - - /* Last used index value we have signalled on */ - bool signalled_used_valid; - - /* Log writes to used structure. */ - bool log_used; - u64 log_addr; - - struct iovec iov[UIO_MAXI...
2017 Mar 07
2
[PATCH] vhost: Move vhost.h to allow vhost driver out-of-tree compilation
...all when the Guest pings us, or timeout. */ - vhost_work_fn_t handle_kick; - - /* Last available index we saw. */ - u16 last_avail_idx; - - /* Caches available index value from user. */ - u16 avail_idx; - - /* Last index we used. */ - u16 last_used_idx; - - /* Last used evet we've seen */ - u16 last_used_event; - - /* Used flags */ - u16 used_flags; - - /* Last used index value we have signalled on */ - u16 signalled_used; - - /* Last used index value we have signalled on */ - bool signalled_used_valid; - - /* Log writes to used structure. */ - bool log_used; - u64 log_addr; - - struct iovec iov[UIO_MAXI...
2017 Mar 10
0
[PATCH] vhost: Move vhost.h to allow vhost driver out-of-tree compilation
...t handle_kick; > - > - /* Last available index we saw. */ > - u16 last_avail_idx; > - > - /* Caches available index value from user. */ > - u16 avail_idx; > - > - /* Last index we used. */ > - u16 last_used_idx; > - > - /* Last used evet we've seen */ > - u16 last_used_event; > - > - /* Used flags */ > - u16 used_flags; > - > - /* Last used index value we have signalled on */ > - u16 signalled_used; > - > - /* Last used index value we have signalled on */ > - bool signalled_used_valid; > - > - /* Log writes to used structure. */ > -...
2017 May 22
1
[PATCH] vhost: Coalesce vq_err formats, pr_fmt misuse, add missing newlines
...2,7 @@ static bool vhost_notify(struct vhost_dev *dev, struct vhost_virtqueue *vq) smp_mb(); if (vhost_get_avail(vq, event, vhost_used_event(vq))) { - vq_err(vq, "Failed to get used event idx"); + vq_err(vq, "Failed to get used event idx\n"); return true; } vq->last_used_event = vhost16_to_cpu(vq, event); diff --git a/drivers/vhost/vhost.h b/drivers/vhost/vhost.h index f55671d53f28..18bcfc70459a 100644 --- a/drivers/vhost/vhost.h +++ b/drivers/vhost/vhost.h @@ -227,11 +227,12 @@ ssize_t vhost_chr_write_iter(struct vhost_dev *dev, struct iov_iter *from); int vho...
2017 May 22
1
[PATCH] vhost: Coalesce vq_err formats, pr_fmt misuse, add missing newlines
...2,7 @@ static bool vhost_notify(struct vhost_dev *dev, struct vhost_virtqueue *vq) smp_mb(); if (vhost_get_avail(vq, event, vhost_used_event(vq))) { - vq_err(vq, "Failed to get used event idx"); + vq_err(vq, "Failed to get used event idx\n"); return true; } vq->last_used_event = vhost16_to_cpu(vq, event); diff --git a/drivers/vhost/vhost.h b/drivers/vhost/vhost.h index f55671d53f28..18bcfc70459a 100644 --- a/drivers/vhost/vhost.h +++ b/drivers/vhost/vhost.h @@ -227,11 +227,12 @@ ssize_t vhost_chr_write_iter(struct vhost_dev *dev, struct iov_iter *from); int vho...