virtio-scsi: Fix descriptor order for SCSI WRITE commands
virtio-scsi: Fix descriptor order for SCSI WRITE commands

Virtio needs the descriptors ordered: All descriptors for buffers that
contain data that should go *to* the device have to be put into the
queue first. The descriptors for buffers that read *from* the device
have to be sorted in last. For SCSI WRITE commands (which we never
used in the past), the order was wrong, so QEMU complains with a
"Incorrect order for descriptors" message as soon as we use it for
SCSI WRITE commands.

Signed-off-by: Thomas Huth <9e65be74847981e55b2564b6266c57d86d3bac05@redhat.com>
Signed-off-by: Alexey Kardashevskiy <ac1fc56530d7d037e1ea666f130daca22d72f964@ozlabs.ru>

open-power-host-os/slof,stefanberger/SLOF-tpm,qemu/SLOF,qemu/SLOF,aik/SLOF,aik/SLOF,stefanberger/SLOF-tpm,open-power-host-os/slof,qemu/SLOF,stefanberger/SLOF-tpm,aik/SLOF,open-power-host-os/slof,open-power-host-os/slof