diff options
author | Fam Zheng <famz@redhat.com> | 2014-09-16 15:20:18 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-09-23 15:40:51 +0200 |
commit | faf1e1fb4cdd3f1f71c948cb53e7d50f0798a202 (patch) | |
tree | f2e3147381d466782ceca7eabb81664309a073b5 /qtest.c | |
parent | 61e68b3fbd3e2b7beb636bc56f78d9c1ca25e8f9 (diff) | |
download | qemu-faf1e1fb4cdd3f1f71c948cb53e7d50f0798a202.zip qemu-faf1e1fb4cdd3f1f71c948cb53e7d50f0798a202.tar.gz qemu-faf1e1fb4cdd3f1f71c948cb53e7d50f0798a202.tar.bz2 |
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>
Diffstat (limited to 'qtest.c')
0 files changed, 0 insertions, 0 deletions