render / rpms / qemu

Forked from rpms/qemu 9 months ago
Clone

Blame 0192-net-add-netdev-options-to-man-page.patch

5544c1
From 773b0a456b236ccdcf1e5329992c0d4669f0af26 Mon Sep 17 00:00:00 2001
5544c1
From: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
5544c1
Date: Tue, 14 Aug 2012 14:14:27 +0100
5544c1
Subject: [PATCH] net: add -netdev options to man page
5544c1
5544c1
Document the -netdev syntax which supercedes the older -net syntax.
5544c1
This patch is a first step to making -netdev prominent in the QEMU
5544c1
manual.
5544c1
5544c1
Reported-by: Anatoly Techtonik <techtonik@gmail.com>
5544c1
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
5544c1
(cherry picked from commit 08d12022c7f1aba6acccc75150659c6e4c9dff23)
5544c1
5544c1
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
5544c1
---
5544c1
 qemu-options.hx | 7 +++++++
5544c1
 1 file changed, 7 insertions(+)
5544c1
5544c1
diff --git a/qemu-options.hx b/qemu-options.hx
5544c1
index 1af4fec..1021ab7 100644
5544c1
--- a/qemu-options.hx
5544c1
+++ b/qemu-options.hx
5544c1
@@ -1357,6 +1357,7 @@ Valid values for @var{type} are
5544c1
 Not all devices are supported on all targets.  Use -net nic,model=?
5544c1
 for a list of available devices for your target.
5544c1
 
5544c1
+@item -netdev user,id=@var{id}[,@var{option}][,@var{option}][,...]
5544c1
 @item -net user[,@var{option}][,@var{option}][,...]
5544c1
 Use the user mode network stack which requires no administrator
5544c1
 privilege to run. Valid options are:
5544c1
@@ -1365,6 +1366,7 @@ privilege to run. Valid options are:
5544c1
 @item vlan=@var{n}
5544c1
 Connect user mode stack to VLAN @var{n} (@var{n} = 0 is the default).
5544c1
 
5544c1
+@item id=@var{id}
5544c1
 @item name=@var{name}
5544c1
 Assign symbolic name for use in monitor commands.
5544c1
 
5544c1
@@ -1490,6 +1492,7 @@ processed and applied to -net user. Mixing them with the new configuration
5544c1
 syntax gives undefined results. Their use for new applications is discouraged
5544c1
 as they will be removed from future versions.
5544c1
 
5544c1
+@item -netdev tap,id=@var{id}[,fd=@var{h}][,ifname=@var{name}][,script=@var{file}][,downscript=@var{dfile}][,helper=@var{helper}]
5544c1
 @item -net tap[,vlan=@var{n}][,name=@var{name}][,fd=@var{h}][,ifname=@var{name}][,script=@var{file}][,downscript=@var{dfile}][,helper=@var{helper}]
5544c1
 Connect the host TAP network interface @var{name} to VLAN @var{n}.
5544c1
 
5544c1
@@ -1529,6 +1532,7 @@ qemu-system-i386 linux.img \
5544c1
                  -net nic -net tap,"helper=/usr/local/libexec/qemu-bridge-helper"
5544c1
 @end example
5544c1
 
5544c1
+@item -netdev bridge,id=@var{id}[,br=@var{bridge}][,helper=@var{helper}]
5544c1
 @item -net bridge[,vlan=@var{n}][,name=@var{name}][,br=@var{bridge}][,helper=@var{helper}]
5544c1
 Connect a host TAP network interface to a host bridge device.
5544c1
 
5544c1
@@ -1551,6 +1555,7 @@ qemu-system-i386 linux.img -net bridge -net nic,model=virtio
5544c1
 qemu-system-i386 linux.img -net bridge,br=qemubr0 -net nic,model=virtio
5544c1
 @end example
5544c1
 
5544c1
+@item -netdev socket,id=@var{id}[,fd=@var{h}][,listen=[@var{host}]:@var{port}][,connect=@var{host}:@var{port}]
5544c1
 @item -net socket[,vlan=@var{n}][,name=@var{name}][,fd=@var{h}] [,listen=[@var{host}]:@var{port}][,connect=@var{host}:@var{port}]
5544c1
 
5544c1
 Connect the VLAN @var{n} to a remote VLAN in another QEMU virtual
5544c1
@@ -1573,6 +1578,7 @@ qemu-system-i386 linux.img \
5544c1
                  -net socket,connect=127.0.0.1:1234
5544c1
 @end example
5544c1
 
5544c1
+@item -netdev socket,id=@var{id}[,fd=@var{h}][,mcast=@var{maddr}:@var{port}[,localaddr=@var{addr}]]
5544c1
 @item -net socket[,vlan=@var{n}][,name=@var{name}][,fd=@var{h}][,mcast=@var{maddr}:@var{port}[,localaddr=@var{addr}]]
5544c1
 
5544c1
 Create a VLAN @var{n} shared with another QEMU virtual
5544c1
@@ -1624,6 +1630,7 @@ qemu-system-i386 linux.img \
5544c1
                  -net socket,mcast=239.192.168.1:1102,localaddr=1.2.3.4
5544c1
 @end example
5544c1
 
5544c1
+@item -netdev vde,id=@var{id}[,sock=@var{socketpath}][,port=@var{n}][,group=@var{groupname}][,mode=@var{octalmode}]
5544c1
 @item -net vde[,vlan=@var{n}][,name=@var{name}][,sock=@var{socketpath}] [,port=@var{n}][,group=@var{groupname}][,mode=@var{octalmode}]
5544c1
 Connect VLAN @var{n} to PORT @var{n} of a vde switch running on host and
5544c1
 listening for incoming connections on @var{socketpath}. Use GROUP @var{groupname}
5544c1
-- 
5544c1
1.7.12.1
5544c1