Re: [Qemu-devel] [PATCH] virtio-scsi: clean up virtio_scsi_parse_cdb

2014-09-18 Thread Laszlo Ersek
On 09/18/14 16:58, Paolo Bonzini wrote: > The command direction according to the guest-passed buffers > is already stored in the VirtIOSCSIReq. We can use it instead > of computing it again from req->elem. > > Cc: Laszlo Ersek > Signed-off-by: Paolo Bonzini > --- > hw/scsi/virtio-scsi.c | 8 +-

[Qemu-devel] [PATCH] virtio-scsi: clean up virtio_scsi_parse_cdb

2014-09-18 Thread Paolo Bonzini
The command direction according to the guest-passed buffers is already stored in the VirtIOSCSIReq. We can use it instead of computing it again from req->elem. Cc: Laszlo Ersek Signed-off-by: Paolo Bonzini --- hw/scsi/virtio-scsi.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-)