clean_websocket_port(SIGKILL);
#endif
- check_vm_lock();
- make_vm_lock();
-
- maru_device_hotplug_init();
-
- start_ecs();
-
- start_sdb_noti_server(get_device_serial_number() + SDB_UDP_SENSOR_INDEX);
-
- sdb_setup();
get_host_proxy(http_proxy, https_proxy, ftp_proxy, socks_proxy);
/* using "DNS" provided by default QEMU */
return maru_kernel_cmdline;
}
+void prepare_maru_after_device_init(void)
+{
+ check_vm_lock();
+ make_vm_lock();
+ maru_device_hotplug_init();
+ start_ecs();
+ start_sdb_noti_server(get_device_serial_number() + SDB_UDP_SENSOR_INDEX);
+ sdb_setup();
+}
+
#if defined(CONFIG_SDL) || defined(CONFIG_USE_SHM)
void start_skin(void)
{
#define MAXLEN 512
const char *prepare_maru(const gchar * const kernel_cmdline);
+void prepare_maru_after_device_init(void);
void start_skin(void);
void emulator_add_exit_notifier(Notifier *notify);
if (qemu_opts_foreach(qemu_find_opts("device"), device_init_func, NULL, 1) != 0)
exit(1);
+#if defined(CONFIG_MARU)
+ prepare_maru_after_device_init();
+#endif
+
#ifdef CONFIG_VIGS
// To support legacy VIGS options
if (enable_vigs) {