qemu-e2k/hw/scsi
Fam Zheng 61e68b3fbd scsi: Optimize scsi_req_alloc
Zeroing sense buffer for each scsi request is not efficient, we can just
leave it uninitialized because sense_len is set to 0.

Move the implicitly zeroed fields to the end of the structure and use a
partial memset.

The explicitly initialized fields (by scsi_req_alloc or scsi_req_new)
are moved to the beginning of the structure, before sense buffer, to
skip the memset.

Also change g_malloc0 to g_slice_alloc.

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 memory: remove memory_region_destroy 2014-08-18 12:06:21 +02:00
esp.c
lsi53c895a.c scsi-bus: Convert DeviceClass init to realize 2014-08-26 13:20:44 +02:00
Makefile.objs
megasas.c memory: remove memory_region_destroy 2014-08-18 12:06:21 +02:00
mfi.h
scsi-bus.c scsi: Optimize scsi_req_alloc 2014-09-23 15:40:51 +02:00
scsi-disk.c block: Make the block accounting functions operate on BlockAcctStats 2014-09-10 10:41:29 +02:00
scsi-generic.c scsi-generic: remove superfluous DPRINTF avoid to break compiling 2014-08-26 13:20:44 +02:00
spapr_vscsi.c
srp.h
vhost-scsi.c vhost-scsi: init backend features earlier 2014-09-03 16:41:05 +03:00
viosrp.h
virtio-scsi.c virtio-scsi: Report error if num_queues is 0 or too large 2014-08-26 13:20:44 +02:00
vmw_pvscsi.c memory: remove memory_region_destroy 2014-08-18 12:06:21 +02:00
vmw_pvscsi.h