183 results
Order by date - Order by pertinence
All (183)
High-tech (183)
 
[PATCH] vhost: locking/rcu cleanup
I saw WARN_ON(!list_empty(&dev->work_list)) trigger so our custom flush is not as airtight as need be. This patch switches to a simple atomic counter + srcu instead of the custom locked queue + flush implementation. This will slow down the ...
Message posted on the July 29th, 2010 - 8:40 AM ET
[PATCH] vhost-net: utilize PUBLISH_USED_IDX feature
With PUBLISH_USED_IDX, guest tells us which used entries it has consumed. This can be used to reduce the number of interrupts: after we write a used entry, if the guest has not yet consumed the previous entry, or if the guest has already consumed ...
Message posted on the May 17th, 2010 - 9:30 PM ET
[PATCH] vhost-blk: Add vhost-blk support v6
vhost-blk is an in-kernel virito-blk device accelerator. Due to lack of proper in-kernel AIO interface, this version converts guest's I/O request to bio and use submit_bio() to submit I/O directly. So this version any supports raw block device as ...
Message posted on the December 1st, 2012 - 8:40 PM ET
[PATCH] vhost: break out of polling loop on error
When ring parsing fails, we currently handle this as ring empty condition. This means that we enable kicks and recheck ring empty: if this not empty, we re-start polling which of course will fail again. Instead, let's return a negative error code ...
Message posted on the June 27th, 2010 - 5:10 AM ET
[PATCH] vhost: drop virtio_net.h dependency
There's no net specific code in vhost.c anymore, don't include the virtio_net.h header. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> This is on top of Asias' patches, already queued so just FYI. drivers/vhost/vhost.c | 1 - 1 file ...
Message posted on the May 6th, 2013 - 6:40 AM ET
[PATCH] vhost: max s/g to match qemu
Qemu supports up to UIO_MAXIOV s/g so we have to match that because guest drivers may rely on this. Allocate indirect and log arrays dynamically to avoid using too much contigious memory and make the length of hdr array to match the header length ...
Message posted on the September 14th, 2010 - 12:00 PM ET
[PATCH] vhost: fix typos in comment
Signed-off-by: Jason Wang <jasowang@redhat.com> drivers/vhost/net.c | 2 +- drivers/vhost/vhost.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c index d10da28..14fc189 ...
Message posted on the November 29th, 2010 - 12:50 AM ET
[PATCH] vhost: fix length for cross region descriptor
If a single descriptor crosses a region, the second chunk length should be decremented by size translated so far, instead it includes the full descriptor length. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> drivers/vhost/vhost.c | 2 +- ...
Message posted on the November 26th, 2012 - 11:00 AM ET
[PATCH] vhost: correctly set bits of dirty pages
When counting pages we should increase it by 1 instead of VHOST_PAGE_SIZE, and also make log_write() can correctly process the request across pages with write_address not start at page boundary. Signed-off-by: Jason Wang <jasowang@redhat.com> ...
Message posted on the November 29th, 2010 - 12:50 AM ET
[PATCH] vhost: fix error handling in vring ioctls
Stanse found a locking problem in vhost_set_vring: several returns from VHOST_SET_VRING_KICK, VHOST_SET_VRING_CALL, VHOST_SET_VRING_ERR with the vq->mutex held. Fix these up. Reported-by: Jiri Slaby <jirislaby@gmail.com> Signed-off-by: ...
Message posted on the March 17th, 2010 - 9:50 AM ET
[PATCH] vhost: set dirty log when updating flags of used ring
We need to set log when updating flags of used ring, otherwise they may be missed after migration. A helper was introduced to write used_flags back to guest memory and update the log if necessary. Signed-off-by: Jason Wang ...
Message posted on the June 16th, 2011 - 2:50 AM ET
[PATCH] vhost: rcu annotation fixup
When built with rcu checks enabled, vhost triggers bogus warnings as vhost features are read without dev->mutex sometimes. Fixing it properly is not trivial as vhost.h does not know which lockdep classes it will be used under. Disable the warning ...
Message posted on the January 18th, 2011 - 6:10 AM ET
[PATCH] vhost-net: initialize zcopy packet counters
These packet counters are used to drive the zercopy selection heuristic so nothing too bad happens if they are off a bit - and they are also reset once in a while. But it's cleaner to clear them when backend is set so that we start in a known state. ...
Message posted on the December 3rd, 2012 - 12:30 PM ET
[PATCH] vhost: copy_from_user -> __copy_from_user
copy_from_user is pretty high on perf top profile, replacing it with __copy_from_user helps. It's also safe because we do access_ok checks during setup. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> drivers/vhost/vhost.c | 2 +- 1 ...
Message posted on the March 6th, 2011 - 6:40 AM ET