qemu/hw/remote
Philippe Mathieu-Daudé 5824fad4e9 hw/boards: Do not create unusable default if=sd drives
A number of machines create an if=sd drive by default even though
they lack an SD bus, and therefore cannot use the drive.

This drive is created when the machine sets flag
@auto_create_sdcard.

See for example running HMP "info block" on the HPPA C3700 machine:

  $ qemu-system-hppa -M C3700 -monitor stdio -S
  (qemu) info block

  floppy0: [not inserted]
      Removable device: not locked, tray closed

  sd0: [not inserted]
      Removable device: not locked, tray closed

  $ qemu-system-hppa -M C3700 -sd /bin/sh
  qemu-system-hppa: -sd /bin/sh: machine type does not support if=sd,bus=0,unit=0

Delete that from machines that lack an SD bus.

Note, only the ARM and RISCV targets use such feature:

 $ git grep -wl IF_SD hw | cut -d/ -f-2 | sort -u
 hw/arm
 hw/riscv
 $

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20250204200934.65279-5-philmd@linaro.org>
2025-02-16 14:25:08 +01:00
..
iohub.c remote: Remove unused remote_iohub_finalize 2024-10-03 17:26:06 +03:00
iommu.c hw/pci: modify pci_setup_iommu() to set PCIIOMMUOps 2023-11-03 09:20:31 +01:00
Kconfig vfio-user: build library 2022-06-15 16:42:33 +01:00
machine.c hw/boards: Do not create unusable default if=sd drives 2025-02-16 14:25:08 +01:00
memory.c Remove qemu-common.h include from most units 2022-04-06 14:31:55 +02:00
meson.build meson: remove CONFIG_ALL 2023-12-31 09:11:28 +01:00
message.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
mpqemu-link.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
proxy-memory-listener.c exec/memory: Add symbol for memory listener priority for device backend 2023-06-28 14:27:59 +02:00
proxy.c Accel & Exec patch queue 2024-12-21 11:07:00 -05:00
remote-obj.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
trace-events hw/remote: Fix vfu_cfg trace offset format 2023-06-09 23:38:16 +03:00
trace.h multi-process: define MPQemuMsg format and transmission functions 2021-02-10 09:23:28 +00:00
vfio-user-obj-stub.c hw/remote: move stub vfu_object_set_bus_irq out of stubs/ 2023-10-18 10:01:01 +02:00
vfio-user-obj.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00