Skip to content

hw/boards: Try to make sense of MachineClass::no_sdcard flag

Philippe Mathieu-Daudé qemu-arm qemu-devel qemu-riscv 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest7 patches 3 repliesIn review
  2. v37 patches 2 repliesSuperseded
  3. v28 patches 18 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches6 repliesSuperseded

Changes in v4 from the cover letter

- Do not remove machines with multiple sd-bus Since v2:
- Fixed mis-rebase catched by Thomas

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7hw/boards: Convert no_sdcard flag to OnOffAuto tri-statehw/arm/xilinx_zynq.c hw/core/null-machine.c hw/s390x/s390-virtio-ccw.c +2 more+5 -50 replies
2/7hw/boards: Explicit no_sdcard=false as ON_OFF_AUTO_OFFhw/alpha/dp264.c hw/arm/aspeed.c hw/arm/b-l475e-iot01a.c +95 more+152 -00 replies
3/7hw/boards: Rename no_sdcard -> auto_create_sdcardhw/alpha/dp264.c hw/arm/aspeed.c hw/arm/b-l475e-iot01a.c +99 more+156 -1601 reply
4/7hw/boards: Remove all invalid uses of auto_create_sdcard=truehw/alpha/dp264.c hw/avr/arduino.c hw/hppa/machine.c +47 more+0 -600 replies
5/7hw/arm: Remove all invalid uses of auto_create_sdcard=truehw/arm/aspeed.c hw/arm/b-l475e-iot01a.c hw/arm/collie.c +18 more+0 -291 reply
6/7hw/riscv: Remove all invalid uses of auto_create_sdcard=truehw/riscv/opentitan.c hw/riscv/shakti_c.c hw/riscv/sifive_e.c +2 more+0 -50 replies
7/7hw/boards: Ensure machine setting auto_create_sdcard expose a SD Bussystem/vl.c+16 -00 replies

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchThomas Huth
1/7R-b
2/7R-b
3/7R-b
4/7R-b
5/7R-b
6/7R-b
7/7R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/7] hw/boards: Try to make sense of MachineClass::no_sdcard flag

Invert MachineClass 'no_sdcard' flag logic and rename it to 'create_default_sdcard_drive' to make sense of this default value applied to all machines.
We use the OnOffAuto tri-state to catch implicit default values. Then we toggle the logic and remove invalid uses. No logical change intended (except the assertion added).

The list of machines using this feature is:

  $ git grep -l 'auto_create_sdcard = true'
  hw/arm/aspeed.c
  hw/arm/bananapi_m2u.c
  hw/arm/cubieboard.c
  hw/arm/exynos4_boards.c
  hw/arm/fby35.c
  hw/arm/imx25_pdk.c
  hw/arm/integratorcp.c
  hw/arm/mcimx6ul-evk.c
  hw/arm/mcimx7d-sabre.c
  hw/arm/npcm7xx_boards.c
  hw/arm/omap_sx1.c
  hw/arm/orangepi.c
  hw/arm/raspi.c
  hw/arm/raspi4b.c
  hw/arm/realview.c
  hw/arm/sabrelite.c
  hw/arm/stellaris.c
  hw/arm/versatilepb.c
  hw/arm/vexpress.c
  hw/arm/xlnx-versal-virt.c
  hw/arm/xlnx-zcu102.c
  hw/riscv/microchip_pfsoc.c
  hw/riscv/sifive_u.c

Since v3:
- Do not remove machines with multiple sd-bus Since v2:
- Fixed mis-rebase catched by Thomas

Philippe Mathieu-Daudé (7):
hw/boards: Convert no_sdcard flag to OnOffAuto tri-state hw/boards: Explicit no_sdcard=false as ON_OFF_AUTO_OFF hw/boards: Rename no_sdcard -> auto_create_sdcard hw/boards: Remove all invalid uses of auto_create_sdcard=true hw/arm: Remove all invalid uses of auto_create_sdcard=true hw/riscv: Remove all invalid uses of auto_create_sdcard=true hw/boards: Ensure machine setting auto_create_sdcard expose a SD Bus

 include/hw/boards.h        |  2 +-
 hw/arm/aspeed.c            | 20 ++++++++++++++++++++
 hw/arm/bananapi_m2u.c      |  1 +
 hw/arm/cubieboard.c        |  1 +
 hw/arm/exynos4_boards.c    |  2 ++
 hw/arm/fby35.c             |  1 +
 hw/arm/imx25_pdk.c         |  1 +
 hw/arm/integratorcp.c      |  1 +
 hw/arm/mcimx6ul-evk.c      |  1 +
 hw/arm/mcimx7d-sabre.c     |  1 +
 hw/arm/npcm7xx_boards.c    |  5 +++++
 hw/arm/omap_sx1.c          |  2 ++
 hw/arm/orangepi.c          |  1 +
 hw/arm/raspi.c             |  5 +++++
 hw/arm/raspi4b.c           |  1 +
 hw/arm/realview.c          |  4 ++++
 hw/arm/sabrelite.c         |  1 +
 hw/arm/stellaris.c         |  1 +
 hw/arm/versatilepb.c       |  2 ++
 hw/arm/vexpress.c          |  2 ++
 hw/arm/xilinx_zynq.c       |  1 -
 hw/arm/xlnx-versal-virt.c  |  1 +
 hw/arm/xlnx-zcu102.c       |  1 +
 hw/core/null-machine.c     |  1 -
 hw/riscv/microchip_pfsoc.c |  1 +
 hw/riscv/sifive_u.c        |  1 +
 hw/s390x/s390-virtio-ccw.c |  1 -
 system/vl.c                | 24 ++++++++++++++++++++----
 28 files changed, 78 insertions(+), 8 deletions(-)
Signature · 1 line
2.47.1