summaryrefslogtreecommitdiffstats
path: root/fs/select.c
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2016-12-12 07:46:49 +0100
committerMichael S. Tsirkin <mst@redhat.com>2016-12-15 23:12:50 +0100
commit809ecb9bca6a9424ccd392d67e368160f8b76c92 (patch)
tree606dee0e521208955dee5b5bdda763b3c30425cb /fs/select.c
parentvsock: lookup and setup guest_cid inside vhost_vsock_lock (diff)
downloadlinux-809ecb9bca6a9424ccd392d67e368160f8b76c92.tar.xz
linux-809ecb9bca6a9424ccd392d67e368160f8b76c92.zip
vhost: cache used event for better performance
When event index was enabled, we need to fetch used event from userspace memory each time. This userspace fetch (with memory barrier) could be saved sometime when 1) caching used event and 2) if used event is ahead of new and old to new updating does not cross it, we're sure there's no need to notify guest. This will be useful for heavy tx load e.g guest pktgen test with Linux driver shows ~3.5% improvement. Signed-off-by: Jason Wang <jasowang@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'fs/select.c')
0 files changed, 0 insertions, 0 deletions