mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
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:
parent
7f161aaea6
commit
a1ea458fdf
4 changed files with 29 additions and 0 deletions
5
vl.c
5
vl.c
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue