]> git.proxmox.com Git - mirror_qemu.git/commit - vl.c
hw: Deprecate -drive if=scsi with non-onboard HBAs
authorMarkus Armbruster <armbru@redhat.com>
Wed, 15 Feb 2017 12:18:55 +0000 (13:18 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 21 Feb 2017 12:17:45 +0000 (13:17 +0100)
commita64aa5785d5d26878d0a80ce64625b61be8fde60
treee321f5c6429caeceef212428fb6760cca171e1fd
parentfb8b660e1718aaa77cccbda67af5727bb4a6250f
hw: Deprecate -drive if=scsi with non-onboard HBAs

Block backends defined with "-drive if=T" with T other than "none" are
meant to be picked up by machine initialization code: a suitable
frontend gets created and wired up automatically.

Drives defined with if=scsi are also picked up by SCSI HBAs added with
-device, unlike other interface types.  Deprecate this usage, as follows.

Create the frontends for onboard HBAs in machine initialization code,
exactly like we do for if=ide and other interface types.  Change
scsi_legacy_handle_cmdline() to create a frontend only when it's still
missing, and warn that this usage is deprecated.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <1487161136-9018-3-git-send-email-armbru@redhat.com>
hw/arm/realview.c
hw/arm/versatilepb.c
hw/i386/pc.c
hw/scsi/lsi53c895a.c
hw/scsi/scsi-bus.c
hw/scsi/spapr_vscsi.c
include/hw/pci/pci.h
include/hw/scsi/scsi.h
vl.c