qemu/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 savevm: Remove all the unneeded version_minimum_id_old (rest) 2014-05-14 15:24:51 +02:00
lsi53c895a.c scsi-bus: Convert DeviceClass init to realize 2014-08-26 13:20:44 +02:00
Makefile.objs vhost-scsi: new device supporting the tcm_vhost Linux kernel module 2013-04-19 16:18:11 +02:00
megasas.c memory: remove memory_region_destroy 2014-08-18 12:06:21 +02:00
mfi.h megasas: Implement LD_LIST_QUERY 2014-04-28 13:48:41 +02:00
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 scsi: Print command name in debug 2014-06-18 08:47:10 +02:00
srp.h spapr-vscsi: add task management 2013-09-12 08:46:21 +02:00
vhost-scsi.c vhost-scsi: init backend features earlier 2014-09-03 16:41:05 +03:00
viosrp.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
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 scsi: VMWare PVSCSI paravirtual device implementation 2013-04-19 10:44:17 +02:00