aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/virtio_scsi.c
diff options
context:
space:
mode:
authorIgor Mammedov <imammedo@redhat.com>2015-06-16 18:33:35 +0200
committerMichael S. Tsirkin <mst@redhat.com>2015-07-01 10:12:12 +0200
commitbcfeacab45e6d419c6bafc0e57ea4b1125e23231 (patch)
treec994f9533d20d043525fd5730629ed3a97bd60b0 /drivers/scsi/virtio_scsi.c
parentvirtio_net: document VIRTIO_NET_CTRL_GUEST_OFFLOADS (diff)
downloadlinux-dev-bcfeacab45e6d419c6bafc0e57ea4b1125e23231.tar.xz
linux-dev-bcfeacab45e6d419c6bafc0e57ea4b1125e23231.zip
vhost: use binary search instead of linear in find_region()
For default region layouts performance stays the same as linear search i.e. it takes around 210ns average for translate_desc() that inlines find_region(). But it scales better with larger amount of regions, 235ns BS vs 300ns LS with 55 memory regions and it will be about the same values when allowed number of slots is increased to 509 like it has been done in kvm. Signed-off-by: Igor Mammedov <imammedo@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/scsi/virtio_scsi.c')
0 files changed, 0 insertions, 0 deletions