hw/mips/jazz: Fix implicit creation of "-drive if=scsi" devices
authorThomas Huth <thuth@redhat.com>
Wed, 7 Mar 2018 09:24:04 +0000 (10:24 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 12 Mar 2018 15:12:47 +0000 (16:12 +0100)
commit148b2ba1145af29a7afac349b8169790e06d6df4
tree2012d476bace0df6d33a0328110ceb5229473365
parent7e563bfb8a5104ff0eed0fff8d13cbe63a25d17c
hw/mips/jazz: Fix implicit creation of "-drive if=scsi" devices

The global hack for creating SCSI devices has recently been removed,
but this apparently broke SCSI devices on some boards that were not
ready for this change yet. For the pica61 machine you now get:

$ mips64-softmmu/qemu-system-mips64 -M pica61 -cdrom x.iso
qemu-system-mips64: -cdrom x.iso: machine type does not support if=scsi,bus=0,unit=2

Fix it by calling scsi_bus_legacy_handle_cmdline() after creating the
corresponding SCSI controller.

Fixes: 1454509726719e0933c800fad00d6999752688ea
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <1520414644-11535-1-git-send-email-thuth@redhat.com>
Reviewed-by: Hervé Poussineau <hpoussin@reactos.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/mips/mips_jazz.c
hw/scsi/esp.c
include/hw/scsi/esp.h