mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
vl: Bring up xemu network later, and down if disabled
This commit is contained in:
committed by
mborgerson
parent
cd8529919f
commit
9108ccf40c
+9
-6
@@ -2046,12 +2046,6 @@ static void qemu_create_late_backends(void)
|
||||
|
||||
net_init_clients();
|
||||
|
||||
#ifdef XBOX
|
||||
if (g_config.net.enable) {
|
||||
xemu_net_enable();
|
||||
}
|
||||
#endif
|
||||
|
||||
object_option_foreach_add(object_create_late);
|
||||
|
||||
/*
|
||||
@@ -2776,6 +2770,15 @@ void qmp_x_exit_preconfig(Error **errp)
|
||||
|
||||
qemu_init_board();
|
||||
qemu_create_cli_devices();
|
||||
|
||||
#ifdef XBOX
|
||||
if (g_config.net.enable) {
|
||||
xemu_net_enable();
|
||||
} else {
|
||||
xemu_net_disable();
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!qemu_machine_creation_done(errp)) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user