Paolo Bonzini a6c5c84ae2 virtio-blk: always enable VIRTIO_BLK_F_SCSI
VIRTIO_BLK_F_SCSI is supposed to mean whether the host can *parse*
SCSI requests, not *execute* them.  You could run QEMU with scsi=on
and a file-backed disk, and QEMU would fail all SCSI requests even
though it advertises VIRTIO_BLK_F_SCSI.

Because we need to do this to fix a migration compatibility problem
related to how QEMU is invoked by management, we must do this
unconditionally even on older machine types.  This more or less assumes
that no one ever invoked QEMU with scsi=off.

Here is how testing goes:

- old QEMU, scsi=on -> new QEMU, scsi=on
- new QEMU, scsi=on -> old QEMU, scsi=on
- old QEMU, scsi=off -> new QEMU, scsi=on
- new QEMU, scsi=off -> old QEMU, scsi=on
        ok (new QEMU has VIRTIO_BLK_F_SCSI, adding host features is fine)

- old QEMU, scsi=off -> new QEMU, scsi=off
        ok (new QEMU has VIRTIO_BLK_F_SCSI, adding host features is fine)

- old QEMU, scsi=on -> new QEMU, scsi=off
        ok, bug fixed

- new QEMU, scsi=on -> old QEMU, scsi=off
        doesn't work (same as: old QEMU, scsi=on -> old QEMU, scsi=off)

- new QEMU, scsi=off -> old QEMU, scsi=off
        broken by the patch

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2012-05-21 15:40:50 -05:00
2012-05-01 00:17:27 +02:00
2012-05-02 18:39:39 +02:00
2012-05-01 19:08:44 -03:00
2012-05-01 10:58:04 +00:00
2012-04-26 13:14:58 -05:00
2012-05-12 14:17:52 +02:00
2012-05-15 00:53:31 +04:00
2012-04-19 16:51:47 +02:00
2012-04-27 11:44:50 -03:00
2012-05-14 07:27:24 +02:00
2012-05-14 07:27:24 +02:00
2012-05-01 10:45:02 +00:00
2012-05-12 09:14:38 +00:00
2012-05-14 07:27:24 +02:00
2012-05-19 15:49:40 +00:00
2012-05-10 11:01:59 +02:00
2012-05-08 14:30:09 -03:00
2012-05-10 08:33:34 -05:00
2012-04-26 13:14:58 -05:00
2012-05-14 17:02:19 +02:00
2012-05-10 10:32:13 +02:00
2012-04-19 17:19:37 +02:00
2012-05-01 00:17:27 +02:00
2012-04-26 13:14:58 -05:00
2012-05-10 12:37:57 -05:00
2012-05-10 12:37:57 -05:00
2012-05-08 14:30:09 -03:00
2012-04-24 09:50:31 -05:00
2012-05-08 11:15:18 -05:00
2012-05-14 17:56:50 -05:00

Read the documentation in qemu-doc.html or on http://wiki.qemu.org

- QEMU team
Description
No description provided
Readme 404 MiB
Languages
C 82.6%
C++ 6.5%
Python 3.4%
Dylan 2.9%
Shell 1.6%
Other 2.8%