]> git.proxmox.com Git - mirror_qemu.git/blobdiff - vl.c
net: add -netdev option
[mirror_qemu.git] / vl.c
diff --git a/vl.c b/vl.c
index a4f7edfbb46db6a7c814d899fd24163f5cf05cd7..534a63e821d2499946704e166e49bc76ea7bf108 100644 (file)
--- a/vl.c
+++ b/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);