virtio-scsi: Split virtio_scsi_handle_cmd_req from virtio_scsi_handle_cmd
commitbf359a445e780815866327891a845071197dfb63
authorFam Zheng <famz@redhat.com>
Wed, 6 Aug 2014 05:35:00 +0000 (6 13:35 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 23 Sep 2014 13:41:11 +0000 (23 15:41 +0200)
tree10e1b33716550dc735f9b5ee014e6992a82d33e1
parent9df7bfddcc25a22b99be5fe9b14ce367fa43b106
virtio-scsi: Split virtio_scsi_handle_cmd_req from virtio_scsi_handle_cmd

This is the "common part" to handle one cmd request. Refactor out for
later usage of dataplane iothread code.

Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi/virtio-scsi.c
include/hw/virtio/virtio-scsi.h