Statistics
| Branch: | Revision:

root / hw / virtio-scsi.c @ 71193433

History | View | Annotate | Download (21.6 kB)

# Date Author Comment
07a5298c 08/20/2012 04:58 pm Paolo Bonzini

virtio-scsi: add backwards-compatibility properties for 1.1 and earlier machines

Hotplug and parameter change are new in 1.2, disable them via compat
properties for pc-1.1 and earlier.

Signed-off-by: Paolo Bonzini <>

4dd7c82c 08/09/2012 04:04 pm Paolo Bonzini

virtio-scsi: do not compare 32-bit QEMU tags against 64-bit virtio-scsi tags

This patch fixes a problem in handling task management functions
in virtio-scsi. The cause of the problem is a mismatch between
the size of the tag in QEMU (32-bit) and virtio-scsi (64-bit)....

64f64855 07/27/2012 09:25 am Paolo Bonzini

virtio-scsi: Report missed events

When an event is reported but no buffers are present in the event vq,
we can set a flag and report a dummy event as soon as one is added.

Signed-off-by: Paolo Bonzini <>

2baa1beb 07/27/2012 09:25 am Paolo Bonzini

virtio-scsi: do not report dropped events after reset

Signed-off-by: Paolo Bonzini <>

feda01e4 07/27/2012 09:25 am Paolo Bonzini

virtio-scsi: report parameter change events

Signed-off-by: Paolo Bonzini <>

b6866fee 07/27/2012 09:25 am Cong Meng

virtio-scsi: Implement hotplug support for virtio-scsi

Implement the hotplug() and hot_unplug() interfaces in virtio-scsi, by signal
the virtio_scsi.ko in guest kernel via event virtual queue.

The counterpart patch of virtio_scsi.ko will be sent soon in another thread....

619d7ae9 07/02/2012 12:27 pm Paolo Bonzini

virtio-scsi: do not crash on adding buffers to the event queue

The event queue is not supported yet and the handler does not
have to do much anyway when buffers are added. However, the
handler is called unconditionally by the virtio layer, and this
results in a crash as soon as buffers are added to the event...

0866aca1 06/18/2012 04:14 pm Anthony Liguori

qbus: Make child devices links

Make qbus children show up as link<> properties. There is no stable
addressing for qbus children so we use an unstable naming convention.

This is okay in QOM though because the composition name is expected to
be what's stable....

2a633c46 05/21/2012 11:40 pm Orit Wassermann

virtio: check virtio_load return code

Otherwise we crash on error.

Signed-off-by: Ulrich Obergfell <>
Signed-off-by: Orit Wassermann <>
Signed-off-by: Paolo Bonzini <>
Signed-off-by: Anthony Liguori <>

fcf104a7 04/19/2012 11:31 am Paolo Bonzini

virtio-scsi: prepare migration format for multiqueue

In order to restore requests correctly from a multitude of virtqueues,
we need to store the id of the request queue that each request came
from.

Do this even for single-queue, by storing a hard-coded zero, to...

d2ad7dd4 04/19/2012 11:31 am Paolo Bonzini

virtio-scsi: add multiqueue capability

Adding multiqueue is as simple as creating more than one virtqueues,
and saving the queue number for each request.

Signed-off-by: Paolo Bonzini <>

eb2fa764 03/19/2012 05:35 pm Paolo Bonzini

virtio-scsi: call unregister_savevm properly

This fixes a use-after-free when migrating after hot-unplug.

Signed-off-by: Paolo Bonzini <>

06114d72 02/24/2012 03:54 pm Paolo Bonzini

virtio-scsi: process control queue requests

Reviewed-by: Stefan Hajnoczi <>
Signed-off-by: Paolo Bonzini <>

5db1764c 02/24/2012 03:54 pm Paolo Bonzini

virtio-scsi: add migration support

Reviewed-by: Stefan Hajnoczi <>
Signed-off-by: Paolo Bonzini <>

326799c0 02/22/2012 02:40 pm Stefan Hajnoczi

virtio-scsi: Add basic request processing infrastructure

Signed-off-by: Stefan Hajnoczi <>
Reviewed-by: Stefan Hajnoczi <>
Signed-off-by: Paolo Bonzini <>

2ccdcd8d 02/22/2012 02:40 pm Paolo Bonzini

virtio-scsi: add basic SCSI bus operation

Reviewed-by: Stefan Hajnoczi <>
Signed-off-by: Paolo Bonzini <>

973abc7f 02/22/2012 02:39 pm Stefan Hajnoczi

virtio-scsi: Add virtio-scsi stub device

Add a useless virtio SCSI HBA device:

qemu -device virtio-scsi-pci

Signed-off-by: Stefan Hajnoczi <>
Reviewed-by: Stefan Hajnoczi <>
Signed-off-by: Paolo Bonzini <>