qemu-e2k/hw/scsi
Fam Zheng faf1e1fb4c virtio-scsi: Optimize virtio_scsi_init_req
The VirtQueueElement is a very big structure (>48k!), since it will be
initialzed by virtqueue_pop, we can save the expensive zeroing here.

This saves a few microseconds per request in my test:

[fio-test]      rw         bs         iodepth    jobs       bw         iops       latency
--------------------------------------------------------------------------------------------
Before          read       4k         1          1          110        28269      34
After           read       4k         1          1          131        33745      28

Whereas,

virtio-blk      read       4k         1          1          217        55673      16

Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2014-09-23 15:40:51 +02:00
..
esp-pci.c
esp.c
lsi53c895a.c
Makefile.objs
megasas.c
mfi.h
scsi-bus.c
scsi-disk.c
scsi-generic.c
spapr_vscsi.c
srp.h
vhost-scsi.c
viosrp.h
virtio-scsi.c virtio-scsi: Optimize virtio_scsi_init_req 2014-09-23 15:40:51 +02:00
vmw_pvscsi.c
vmw_pvscsi.h