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
…
2014-06-23 11:00:12 -04:00
2014-09-23 15:40:51 +02:00
2014-09-23 15:40:51 +02:00
2014-09-22 11:39:45 +01:00
2014-08-26 13:52:15 +01:00
2014-08-18 14:39:10 -04:00
2014-08-24 13:16:32 +04:00
2014-09-22 11:39:45 +01:00
…
2014-06-16 13:24:35 +02:00
…
2014-06-09 15:43:40 +02:00
2014-08-29 10:46:58 +01:00
2014-06-23 11:12:28 -04:00
2014-08-29 10:46:58 +01:00
…
…
…
…
…
2014-06-19 18:44:21 +03:00
2014-06-19 16:41:54 +03:00
…
2014-08-29 10:48:45 +01:00
2014-03-13 14:34:16 +00:00
2014-09-22 11:39:45 +01:00
2014-09-22 11:39:45 +01:00
2014-05-24 00:07:29 +04:00
…
2014-09-22 11:39:45 +01:00
2014-08-06 17:53:07 +02:00
…
2014-09-19 17:20:11 +01:00
…
2014-02-17 11:57:23 -05:00
2014-09-05 13:27:11 +02:00
2014-06-05 16:10:33 +02:00
2014-08-01 18:30:08 +01:00
2014-05-07 16:16:43 +00:00
2014-07-07 10:37:40 +00:00

Read the documentation in qemu-doc.html or on http://wiki.qemu-project.org

- QEMU team
S
Description
Original Xbox Emulator for Windows, macOS, and Linux (Active Development)
Readme GPL-2.0
721 MiB
0 Stars 1 Watchers 0 Forks
Languages
C 82.3%
C++ 6.9%
Python 3.5%
Dylan 2.7%
Shell 1.5%
Other 2.9%