Statistics
| Branch: | Revision:

root / hw / scsi @ f6bda9cb

# Date Author Comment
f6bda9cb 07/30/2013 03:56 am Peter Maydell

spapr: Rename 'dprintf' to 'DPRINTF'

'dprintf' is the name of a POSIX standard function so we should not be
stealing it for our debug macro. Rename to 'DPRINTF' (in line with
a number of other source files.)

Signed-off-by: Peter Maydell <>...

dbd94f8e 07/29/2013 06:37 pm Alexey Kardashevskiy

spapr-vscsi: fix SOLNT bit in SRP_RSP

The driver calculates SOLNT bit from UCSOLNT and SCSOLNT bits from
the request. The iu pointer has a type of srp_iu* which points to a union,
so cmd and rsp overlap. As the vscsi_send_rsp function calls
memset(iu, 0, sizeof(rsp)), it clears first 36 bytes of both cmd and rsp...

125ee0ed 07/29/2013 06:37 pm Marcel Apfelbaum

devices: Associate devices to their logical category

The category will be used to sort the devices displayed in
the command line help.

Signed-off-by: Marcel Apfelbaum <>
Message-id: ...

8ca8a17c 07/29/2013 06:37 pm Alexey Kardashevskiy

pseries: rework PAPR virtual SCSI

The patch reimplements handling of indirect requests in order to
simplify upcoming live migration support.
- all pointers (except SCSIRequest*) were replaces with integer
indexes and offsets;
- DMA'ed srp_direct_buf kept untouched (ie. BE format);...

1168ec7d 07/29/2013 06:37 pm David Gibson

pseries: savevm support for PAPR virtual SCSI

This patch adds the necessary support for saving the state of the PAPR VIO
virtual SCSI device. This also saves and restores active SCSI requests.

[aik: implemented vscsi_req save/restore]
Signed-off-by: Alexey Kardashevskiy <>...

b09318ca 07/23/2013 01:37 am Hu Tao

scsi/esp: Use QOM realize for scsi esp

Signed-off-by: Hu Tao <>
[AF: Drop sysbus_esp_init()]
Signed-off-by: Andreas Färber <>

22d6aa03 07/23/2013 01:37 am Andreas Färber

megasas: Legacy command line handling fix

Only apply legacy command line handling when the device has not been
hot-plugged. Propagate failure of legacy command line handling.

Cc:
Acked-by: Paolo Bonzini <>
Signed-off-by: Andreas Färber <>

caad4eb3 07/23/2013 01:37 am Andreas Färber

scsi: Improve error propagation for scsi_bus_legacy_handle_cmdline()

Let scsi_bus_legacy_add_drive() and scsi_bus_legacy_handle_cmdline()
return an Error**. Prepare qdev initfns for QOM realize error model.

Signed-off-by: Andreas Färber <>

a71c7ec5 07/23/2013 01:37 am Hu Tao

scsi/esp: QOM'ify some more

Introduce type constant and avoid DO_UPCAST().

Signed-off-by: Hu Tao <>
[AF: Renamed parent field]
Signed-off-by: Andreas Färber <>

71186c86 07/23/2013 01:37 am Peter Crosthwaite

scsi/lsi53c895a: QOM Upcast Sweep

Define and use standard QOM cast macro. Remove usages of DO_UPCAST()
and direct -> style upcasting.

Signed-off-by: Peter Crosthwaite <>
Signed-off-by: Andreas Färber <>

725eec70 07/23/2013 01:37 am Andreas Färber

scsi/lsi53c895a: QOM parent field cleanup

Replace direct uses of LSIState::dev with QOM casts and rename it to
parent_obj.

Acked-by: Peter Crosthwaite <>
Signed-off-by: Andreas Färber <>

c79e16ae 07/23/2013 01:37 am Peter Crosthwaite

scsi/megasas: QOM Upcast Sweep

Define and use standard QOM cast macro. Remove usages of DO_UPCAST()
and direct -> style upcasting.

Signed-off-by: Peter Crosthwaite <>
Signed-off-by: Andreas Färber <>

52190c1e 07/23/2013 01:37 am Andreas Färber

scsi/megasas: QOM parent field cleanup

Replace direct uses of MegasasState::dev with QOM casts and rename it to
parent_obj.

Acked-by: Peter Crosthwaite <>
Signed-off-by: Andreas Färber <>

3a15effe 07/23/2013 01:37 am Peter Crosthwaite

scsi/esp-pci: QOM Upcast Sweep

Define and use standard QOM cast macro. Remove usages of DO_UPCAST()
and direct -> style upcasting.

Signed-off-by: Peter Crosthwaite <>
Signed-off-by: Andreas Färber <>

4e5dcc77 07/23/2013 01:37 am Andreas Färber

scsi/esp-pci: QOM parent field cleanup

Replace direct uses of PCIESPState::dev with QOM casts and rename it to
parent_obj.

Acked-by: Peter Crosthwaite <>
Signed-off-by: Andreas Färber <>

6783ecf1 07/23/2013 01:37 am Peter Maydell

hw: Avoid use of QOM type name macros in VMStateDescriptions

The name field in a VMStateDescription is part of the migration state
versioning, so changing it will break migration. It's therefore a
bad idea to use a QOM typename macro to initialize it, because in...

29776739 07/04/2013 06:42 pm Paolo Bonzini

hw/s*: pass owner to memory_region_init* functions

Signed-off-by: Paolo Bonzini <>

2c9b15ca 07/04/2013 06:42 pm Paolo Bonzini

memory: add owner argument to initialization functions

Signed-off-by: Paolo Bonzini <>

f487b677 07/04/2013 06:42 pm Paolo Bonzini

dma: keep a device alive while it has SGLists

Reviewed-by: Anthony Liguori <>
Signed-off-by: Paolo Bonzini <>

cac3c384 07/04/2013 06:37 pm Paolo Bonzini

scsi: keep device alive while it has requests

Reviewed-by: Anthony Liguori <>
Signed-off-by: Paolo Bonzini <>

df32fd1c 06/20/2013 05:39 pm Paolo Bonzini

dma: eliminate DMAContext

The DMAContext is a simple pointer to an AddressSpace that is now always
already available. Make everyone hold the address space directly,
and clean up the DMA API to use the AddressSpace directly.

Reviewed-by: Peter Maydell <>...

7721c7f7 06/18/2013 01:43 pm Pavel Hrdina

scsi: reset cdrom tray statuses on scsi_disk_reset

Tray statuses should be also reset. Some guests may lock the tray and
right after resetting the guest it should be unlocked and closed. This
is done on power-on, reset and resume from suspend/hibernate on bare-metal....

53254e56 06/18/2013 01:43 pm Paolo Bonzini

scsi-generic: fix sign extension of READ CAPACITY data

Issuing the READ CAPACITY command in the guest will cause QEMU
to update its knowledge of the maximum accessible LBA in the disk.
The recorded maximum LBA will be wrong if the disk is bigger than...

d836f8d3 06/18/2013 01:43 pm Pavel Hrdina

scsi-generic: check the return value of bdrv_aio_ioctl in execute_command

This fixes the bug introduced by this commit ad54ae80c73f.
The bdrv_aio_ioctl() still could return null and we should return an error
in that case.

Cc:
Signed-off-by: Pavel Hrdina <>...

18e673b8 06/18/2013 01:43 pm Pavel Hrdina

scsi-disk: scsi-block device for scsi pass-through should not be removable

This patch adds a new SCSI_DISK_F_NO_REMOVABLE_DEVOPS feature. By this
feature we can set that the scsi-block (scsi pass-through) device will still
be removable from the guest side, but from monitor it cannot be removed....

0e22a2d1 06/18/2013 01:43 pm Stefan Hajnoczi

vhost-scsi: fix k->set_guest_notifiers() NULL dereference

Coverity picked up a copy-paste bug. In vhost_scsi_start() we check for
!k->set_guest_notifiers and error out. The check probably got copied
but instead of erroring we actually use the function pointer!...

dcb07809 06/11/2013 10:45 pm Stefan Weil

hw/scsi: Don't increment a boolean value

This fixes a warning from cppcheck.

Signed-off-by: Stefan Weil <>
Signed-off-by: Michael Tokarev <>

4f39178b 05/24/2013 07:42 pm Paolo Bonzini

exec: eliminate qemu_put_ram_ptr

Reviewed-by: Peter Maydell <>
Signed-off-by: Paolo Bonzini <>

11fc853c 05/03/2013 08:05 pm KONRAD Frederic

scsi: add bus_name parameter to scsi_bus_new.

This adds the possibility to create a scsi-bus with a specified name.

Signed-off-by: KONRAD Frederic <>
Acked-by: Paolo Bonzini <>
Tested-by: Cornelia Huck <>...

6f32a6b4 05/03/2013 08:05 pm KONRAD Frederic

virtio-scsi: fix the command line compatibility.

The bus name is wrong since the refactoring.

This keeps the behaviour of the command line.

Signed-off-by: KONRAD Frederic <>
Tested-by: Cornelia Huck <>
Message-id: ...

fd506b4f 04/27/2013 12:02 am David Gibson

pseries: Convert VIO code to QOM style type safe(ish) casts

Curerntly the pseries VIO device code contains quite a few explicit
uses of DO_UPCAST and plain C casts. This is (obviously) type unsafe,
and not the conventional way of doing things in the QOM model. This...

6a1a8cc7 04/24/2013 07:50 pm KONRAD Frederic

virtio: cleanup: init and exit function.

This clean the init and the exit functions and rename virtio_common_cleanup
to virtio_cleanup.

Signed-off-by: KONRAD Frederic <>
Message-id: ...

181103cd 04/24/2013 07:50 pm KONRAD Frederic

virtio: remove the function pointer.

This remove the function pointer in VirtIODevice, and use only
VirtioDeviceClass function pointer.

Signed-off-by: KONRAD Frederic <>
Message-id: ...

1c819449 04/24/2013 07:50 pm KONRAD Frederic

virtio: remove virtiobindings.

This remove virtio-bindings, and use class instead.

Signed-off-by: KONRAD Frederic <>
Message-id:
Signed-off-by: Anthony Liguori <>

5e9be92d 04/19/2013 05:18 pm Nicholas Bellinger

vhost-scsi: new device supporting the tcm_vhost Linux kernel module

The WWPN specified in configfs is passed to "-device vhost-scsi-pci".
The tgpt field of the SET_ENDPOINT ioctl is obsolete now, so it is not
available from the QEMU command-line. Instead, I hardcode it to zero....

292c8e50 04/19/2013 05:17 pm Paolo Bonzini

virtio-scsi: create VirtIOSCSICommon

This patch refactors existing virtio-scsi code into VirtIOSCSICommon
in order to allow virtio_scsi_init_common() to be used by both internal
virtio_scsi_init() and external vhost-scsi-pci code.

Cc: Michael S. Tsirkin <>...

881d588a 04/19/2013 11:44 am Dmitry Fleytman

scsi: VMWare PVSCSI paravirtual device implementation

Signed-off-by: Dmitry Fleytman <>
Signed-off-by: Yan Vugenfirer <>
[ Rename files to vmw_pvscsi, fix setting of hostStatus in
pvscsi_request_cancelled - Paolo ]
Signed-off-by: Paolo Bonzini <>

ef8489d4 04/19/2013 10:59 am Paolo Bonzini

scsi: avoid assertion failure on VERIFY command

A verify command is not an actual read (we do not implement
compare mode) and thus does not have an AIOCB attached. Do
not crash in scsi_dma_complete.

Signed-off-by: Paolo Bonzini <>

47b43a1f 04/08/2013 07:13 pm Paolo Bonzini

hw: move private headers to hw/ subdirectories.

Many headers are used only in a single directory. These can be
kept in hw/.

Signed-off-by: Paolo Bonzini <>

53a55002 04/08/2013 07:13 pm Paolo Bonzini

hw: move SCSI controllers to hw/scsi/, configure via default-configs/

Signed-off-by: Paolo Bonzini <>

49ab747f 04/08/2013 07:13 pm Paolo Bonzini

hw: move target-independent files to subdirectories

This patch tackles all files that are compiled once, moving
them to subdirectories of hw/.

Signed-off-by: Paolo Bonzini <>

6e790746 04/08/2013 07:13 pm Paolo Bonzini

hw: move virtio devices to hw/ subdirectories

Signed-off-by: Paolo Bonzini <>

1fd6bb44 04/08/2013 07:13 pm Paolo Bonzini

hw: make subdirectories for devices

Prepare the new directory structure.

Signed-off-by: Paolo Bonzini <>