Skip to content

hw: Deprecate unwanted use -drive if=scsi

Markus Armbruster qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 8 repliesIn review
  2. v13 patches 1 replySuperseded

Changes in v2 from the cover letter

* Trivially rebased
* PATCH 2: Suppress warning for default drives
* PATCH 3: Update user manual and qemu-iotests/051.pc.out

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3hw/scsi: Concentrate -drive if=scsi auto-create in one placehw/scsi/esp-pci.c hw/scsi/esp.c hw/scsi/lsi53c895a.c +7 more+44 -390 replies
2/3hw: Deprecate -drive if=scsi with non-onboard HBAshw/arm/realview.c hw/arm/versatilepb.c hw/i386/pc.c +6 more+35 -70 replies
3/3hw/i386: Deprecate -drive if=scsi with PC machine typeshw/i386/pc.c qemu-options.hx tests/qemu-iotests/051.pc.out+15 -100 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/3] hw: Deprecate unwanted use -drive if=scsi

Drives defined with if=scsi get connected to buses created with -device, unlike other interface types. Deprecate this usage.

There is no good default SCSI HBA for PC machines. Deprecate if=scsi there entirely.

Before this series, frontends for -drive if=scsi get created by SCSI HBAs. Frontends for other interface types get created by machine initialization.

After this series, they get created by machine initialization, except for deprecated cases, which get created by new function scsi_legacy_handle_cmdline().

Based on "[PATCH v3 0/8] More sensible default for -drive interface type".

v2:
* Trivially rebased
* PATCH 2: Suppress warning for default drives
* PATCH 3: Update user manual and qemu-iotests/051.pc.out

Markus Armbruster (3):
hw/scsi: Concentrate -drive if=scsi auto-create in one place
hw: Deprecate -drive if=scsi with non-onboard HBAs hw/i386: Deprecate -drive if=scsi with PC machine types

 hw/arm/realview.c             |  2 +-
 hw/arm/versatilepb.c          |  2 +-
 hw/i386/pc.c                  |  6 +++++
 hw/scsi/esp-pci.c             |  3 ---
 hw/scsi/esp.c                 |  6 -----
 hw/scsi/lsi53c895a.c          | 10 +++++---
 hw/scsi/megasas.c             |  4 ----
 hw/scsi/mptsas.c              |  4 ----
 hw/scsi/scsi-bus.c            | 56 +++++++++++++++++++++++++++++++++++++------
 hw/scsi/spapr_vscsi.c         |  5 ++--
 hw/scsi/virtio-scsi.c         |  8 -------
 include/hw/pci/pci.h          |  2 ++
 include/hw/scsi/scsi.h        |  3 ++-
 qemu-options.hx               |  5 ----
 tests/qemu-iotests/051.pc.out | 12 ++++++----
 vl.c                          | 10 ++++++++
 16 files changed, 88 insertions(+), 50 deletions(-)
Signature · 1 line
2.7.4