diff options
author | Markus Armbruster | 2017-02-15 13:18:55 +0100 |
---|---|---|
committer | Markus Armbruster | 2017-02-21 13:17:45 +0100 |
commit | a64aa5785d5d26878d0a80ce64625b61be8fde60 (patch) | |
tree | e321f5c6429caeceef212428fb6760cca171e1fd /hw/scsi/spapr_vscsi.c | |
parent | hw/scsi: Concentrate -drive if=scsi auto-create in one place (diff) | |
download | qemu-a64aa5785d5d26878d0a80ce64625b61be8fde60.tar.gz qemu-a64aa5785d5d26878d0a80ce64625b61be8fde60.tar.xz qemu-a64aa5785d5d26878d0a80ce64625b61be8fde60.zip |
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>
Diffstat (limited to 'hw/scsi/spapr_vscsi.c')
-rw-r--r-- | hw/scsi/spapr_vscsi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/scsi/spapr_vscsi.c b/hw/scsi/spapr_vscsi.c index 7d447718eb..55ee48c4da 100644 --- a/hw/scsi/spapr_vscsi.c +++ b/hw/scsi/spapr_vscsi.c @@ -1215,6 +1215,8 @@ void spapr_vscsi_create(VIOsPAPRBus *bus) dev = qdev_create(&bus->bus, "spapr-vscsi"); qdev_init_nofail(dev); + scsi_bus_legacy_handle_cmdline(&VIO_SPAPR_VSCSI_DEVICE(dev)->bus, + false); } static int spapr_vscsi_devnode(VIOsPAPRDevice *dev, void *fdt, int node_off) |