virtio-scsi: fix with -M pc-i440fx-2.0
commit1f4e6a069b07869eb5fd3ab711b703b95d363652
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 14 Jul 2014 10:03:09 +0000 (14 12:03 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 14 Jul 2014 14:14:15 +0000 (14 16:14 +0200)
tree8c5ff21190b5fe161dcdb7d383fc73bda5dfe451
parentf702e62a193e9ddb41cef95068717e5582b39a64
virtio-scsi: fix with -M pc-i440fx-2.0

Right now starting a machine with virtio-scsi and a <= 2.0 machine type
fails with:

    qemu-system-x86_64: -device virtio-scsi-pci: Property .any_layout not found

This is because the any_layout bit was actually never set after
virtio-scsi was changed to support arbitrary layout for virtio buffers.

(This was just a cleanup and a preparation for virtio 1.0; no guest
actually checks the bit, but the new request parsing algorithms are
tested even with old guest).

Reported-by: David Gilbert <dgilbert@redhat.com>
Reviewed-by: David Gilbert <dgilbert@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/hw/virtio/virtio-scsi.h