]> git.proxmox.com Git - mirror_qemu.git/commit - vl.c
hw/scsi: Concentrate -drive if=scsi auto-create in one place
authorMarkus Armbruster <armbru@redhat.com>
Wed, 15 Feb 2017 12:18:54 +0000 (13:18 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 21 Feb 2017 12:17:45 +0000 (13:17 +0100)
commitfb8b660e1718aaa77cccbda67af5727bb4a6250f
tree0a0ac20d15f1ec4836cfc91142a5a07841958021
parent8f2d75e81d5eb2715be653010258ce9d57549de7
hw/scsi: Concentrate -drive if=scsi auto-create in one place

The logic to create frontends for -drive if=scsi is in SCSI HBAs.  For
all other interface types, it's in machine initialization code.

A few machine types create the SCSI HBAs necessary for that.  That's
also not done for other interface types.

I'm going to deprecate these SCSI eccentricities.  In preparation for
that, create the frontends in main() instead of the SCSI HBAs, by
calling new function scsi_legacy_handle_cmdline() there.

Note that not all SCSI HBAs create frontends.  Take care not to change
that.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <1487161136-9018-2-git-send-email-armbru@redhat.com>
Acked-By: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi/esp-pci.c
hw/scsi/esp.c
hw/scsi/lsi53c895a.c
hw/scsi/megasas.c
hw/scsi/mptsas.c
hw/scsi/scsi-bus.c
hw/scsi/spapr_vscsi.c
hw/scsi/virtio-scsi.c
include/hw/scsi/scsi.h
vl.c