spapr-vscsi: Adding VSCSI capabilities
This implements capabilities exchange between vscsi host and client. Asat the moment no capability is supported, put zero flags everywhere andreturn.
Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>...
spapr-vscsi: Report error on unsupported MAD requests
The existing driver just dropped unsupported requests. This adds errorresponses to those unhandled requests.
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
iscsi: split discard requests in multiple parts
Replace .bdrv_aio_discard with .bdrv_co_discard so that discardrequests can be split in multiple parts, each for a small amountof sectors.
This is useful because we expose a generic API with no limiton the amount of sectors that can be unmapped in one request....
spapr-vscsi: add task management
At the moment the guest kernel issues two types of task managementrequests to the hypervisor - task about and lun reset. This addshandling for these tasks. As spapr-vscsi starts calling scsi_req_cancel(),free_request callback was implemented....
virtio-scsi: Make type virtio-scsi-common abstract
It's the abstract base of virtio-scsi-device and vhost-scsi.
Signed-off-by: Markus Armbruster <armbru@redhat.com>Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
scsi: Fix scsi_bus_legacy_add_drive() scsi-generic with serial
scsi_bus_legacy_add_drive() creates either a scsi-disk or ascsi-generic device. It sets property "serial" to argument serialunless null. Crashes with scsi-generic, because it doesn't have such...
hw/scsi/lsi53c895a: Use sextract32 for sign-extension
Use sextract32() for doing sign-extension rather than rollingour own implementation.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi/lsi53c895a: Use deposit32 rather than handcoded shift/mask
Use deposit32() rather than handcoded shifts/masks to update thescratch registers. This is cleaner and incidentally avoids a clangsanitizer complaint ("runtime error: left shift of 255 by 24 places...
iscsi: add logical block provisioning information to iscsilun
Signed-off-by: Peter Lieven <pl@kamp.de>Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
iscsi: add .bdrv_get_block_status
this patch adds a coroutine for .bdrv_co_block_status as well asa generic framework that can be used to build coroutines in block/iscsi.
View all revisions | View revisions
Also available in: Atom