mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
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>
This commit is contained in:
parent
5accc8408f
commit
eb37f14658
2 changed files with 100 additions and 28 deletions
|
@ -90,6 +90,13 @@ enum {
|
|||
SRP_REV16A_IB_IO_CLASS = 0x0100
|
||||
};
|
||||
|
||||
enum {
|
||||
SRP_TSK_MGMT_COMPLETE = 0x00,
|
||||
SRP_TSK_MGMT_FIELDS_INVALID = 0x02,
|
||||
SRP_TSK_MGMT_NOT_SUPPORTED = 0x04,
|
||||
SRP_TSK_MGMT_FAILED = 0x05
|
||||
};
|
||||
|
||||
struct srp_direct_buf {
|
||||
uint64_t va;
|
||||
uint32_t key;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue