net: add -netdev option

Patchworks-ID: 35506
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
Mark McLoughlin 2009-10-08 19:58:26 +01:00 committed by Anthony Liguori
parent 7f161aaea6
commit a1ea458fdf
4 changed files with 29 additions and 0 deletions

5
vl.c
View file

@ -5087,6 +5087,11 @@ int main(int argc, char **argv, char **envp)
fd_bootchk = 0;
break;
#endif
case QEMU_OPTION_netdev:
if (net_client_parse(&qemu_netdev_opts, optarg) == -1) {
exit(1);
}
break;
case QEMU_OPTION_net:
if (net_client_parse(&qemu_net_opts, optarg) == -1) {
exit(1);