virtio-scsi: start preparing for any_layout
commit36b15c79aa1bef5fe7543f9f2629b6413720bbfb
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 10 Jun 2014 14:21:18 +0000 (10 16:21 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 18 Jun 2014 06:47:11 +0000 (18 08:47 +0200)
tree251dc0dca67f821eda25a0d8ea2dea8fdff72207
parent519661ee6514f22b1e289b1c4c8c076378bc4202
virtio-scsi: start preparing for any_layout

- Introduce virtio_scsi_init_req and virtio_scsi_free_req

- rename qemu_sgl_init_external to qemu_sgl_concat

- move virtio_scsi_parse_req from virtio_scsi_pop_req to callers
  and add header length checks to virtio_scsi_parse_req.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi/virtio-scsi.c