summary refs log tree commit diff stats
path: root/hw/xen
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2024-11-25 15:26:15 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2025-02-16 14:25:08 +0100
commit8a2f1f921cc84cae3aa54c29e24e8c1defc9ef34 (patch)
treee224ba84a8a17cfd29913bca6c4e9c0bb2918efc /hw/xen
parente3660f60dca85de599c913fda1d156f20495b45a (diff)
downloadfocaccia-qemu-8a2f1f921cc84cae3aa54c29e24e8c1defc9ef34.tar.gz
focaccia-qemu-8a2f1f921cc84cae3aa54c29e24e8c1defc9ef34.zip
hw/boards: Explicit no_sdcard=false as ON_OFF_AUTO_OFF
Update MachineClass::no_sdcard default implicit AUTO
initialization to explicit OFF. This flag is consumed
in system/vl.c::qemu_disable_default_devices(). Use
this place to assert we don't have anymore AUTO state.

In hw/ppc/e500.c we add the ppce500_machine_class_init()
method to initialize once all the inherited classes.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20250204200934.65279-3-philmd@linaro.org>
Diffstat (limited to 'hw/xen')
-rw-r--r--hw/xen/xen-pvh-common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/xen/xen-pvh-common.c b/hw/xen/xen-pvh-common.c
index 9c21fa858d..ed42e4b624 100644
--- a/hw/xen/xen-pvh-common.c
+++ b/hw/xen/xen-pvh-common.c
@@ -381,6 +381,7 @@ static void xen_pvh_class_init(ObjectClass *oc, void *data)
     mc->default_machine_opts = "accel=xen";
     /* Set to zero to make sure that the real ram size is passed. */
     mc->default_ram_size = 0;
+    mc->no_sdcard = ON_OFF_AUTO_OFF;
 }
 
 static const TypeInfo xen_pvh_info = {