default devices: network

Add a default_net variable which specified whenever a default network
should be created.  It is cleared in case any -net option is specified
and it is also added to the new -nodefaults switch.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
Gerd Hoffmann 2009-12-08 13:11:47 +01:00 committed by Anthony Liguori
parent d8c208dd8a
commit cb4522ccf6
3 changed files with 6 additions and 1 deletions

1
vl.c
View file

@ -5476,6 +5476,7 @@ int main(int argc, char **argv, char **envp)
default_parallel = 0;
default_monitor = 0;
default_vga = 0;
default_net = 0;
break;
#ifndef _WIN32
case QEMU_OPTION_chroot: