aspeed: Create sd devices only when defaults are enabled
authorCédric Le Goater <clg@redhat.com>
Wed, 22 Jan 2025 07:09:09 +0000 (08:09 +0100)
committerCédric Le Goater <clg@redhat.com>
Mon, 27 Jan 2025 08:38:15 +0000 (09:38 +0100)
commite90858464ab90e0e6aaede7f3c9d4750232b9755
tree39ff6cdc55eceed169b3838ea608681a3a7b510e
parentf7ae9612fb98d505a44ac24872f6b92e87687813
aspeed: Create sd devices only when defaults are enabled

When the -nodefaults option is set, sd devices should not be
automatically created by the machine. Instead they should be defined
on the command line.

Note that it is not currently possible to define which bus an
"sd-card" device is attached to:

  -blockdev node-name=drive0,driver=file,filename=/path/to/file.img \
  -device sd-card,drive=drive0,id=sd0

and the first bus named "sd-bus" will be used.

Reviewed-by: Jamin Lin <jamin_lin@aspeedtech.com>
Acked-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Link: https://lore.kernel.org/qemu-devel/20250122070909.1138598-10-clg@redhat.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/arm/aspeed.c