]> git.proxmox.com Git - qemu.git/commit
spapr-vscsi: add task management
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Mon, 29 Jul 2013 04:49:29 +0000 (14:49 +1000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 12 Sep 2013 06:46:21 +0000 (08:46 +0200)
commiteb37f14658df23c51f172bddb0c45eecf408927c
treeb20a80688ffca514d5c3f5310209b4e67bcfd96e
parent5accc8408f2dac1e00d888e4fe75e6174ba2a940
spapr-vscsi: add task management

At the moment the guest kernel issues two types of task management
requests to the hypervisor - task about and lun reset. This adds
handling for these tasks. As spapr-vscsi starts calling scsi_req_cancel(),
free_request callback was implemented.

As virtio-vscsi, spapr-vscsi does not handle CLEAR_ACA either as CDB
control byte does not seem to be used at all so NACA bit is not
set to the guest so the guest has no good reason to call CLEAR_ACA task.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
[Fix choice of UCSOLCNT vs. SCSOLCNT. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi/spapr_vscsi.c
hw/scsi/srp.h