You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/hw/xen
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>
6 days ago
..
Kconfig xen: add CONFIG_XEN_BUS and CONFIG_XEN_EMU options for Xen emulation 2 years ago
meson.build hw/arm: xenpvh: Break out a common PVH machine 6 months ago
trace-events hw/xen: Use xs_node_read() from xs_node_vscanf() 1 month ago
trace.h trace: switch position of headers to what Meson requires 5 years ago
xen-backend.c hw/xen: do not repeatedly try to create a failing backend device 1 year ago
xen-bus-helper.c hw/xen: Use xs_node_read() from xs_node_vscanf() 1 month ago
xen-bus.c qapi: Move include/qapi/qmp/ to include/qobject/ 2 weeks ago
xen-host-pci-device.c xen: fix stubdom PCI addr 8 months ago
xen-host-pci-device.h xen: fix stubdom PCI addr 8 months ago
xen-hvm-common.c hw/xen: Avoid use of uninitialized bufioreq_evtchn 4 months ago
xen-legacy-backend.c hw/xen: Have legacy Xen backend inherit from DYNAMIC_SYS_BUS_DEVICE 6 days ago
xen-mapcache.c include: Rename sysemu/ -> system/ 2 months ago
xen-operations.c xen: Drop support for Xen versions below 4.7.1 2 years ago
xen-pvh-common.c hw/boards: Do not create unusable default if=sd drives 6 days ago
xen_devconfig.c include: Rename sysemu/ -> system/ 2 months ago
xen_pt.c include/hw/qdev-properties: Remove DEFINE_PROP_END_OF_LIST 2 months ago
xen_pt.h hw/xen: Extract 'xen_igd.h' from 'xen_pt.h' 12 months ago
xen_pt_config_init.c xen/pt: Emulate multifunction bit in header type 12 months ago
xen_pt_graphics.c hw/xen: Extract 'xen_igd.h' from 'xen_pt.h' 12 months ago
xen_pt_load_rom.c hw/pci: Replace -1 with UINT32_MAX for romsize 8 months ago
xen_pt_msi.c hw/xen: Rename xen_common.h to xen_native.h 2 years ago
xen_pt_stub.c hw/xen: Extract 'xen_igd.h' from 'xen_pt.h' 12 months ago
xen_pvdev.c hw/xen: Prefer QOM cast for XenLegacyDevice 6 days ago