0a122b
From 4df441f7a38bf7bdbc625cfd7b79c7b9f0780adc Mon Sep 17 00:00:00 2001
0a122b
From: Amos Kong <akong@redhat.com>
0a122b
Date: Thu, 21 Nov 2013 04:58:50 +0100
0a122b
Subject: [PATCH 06/14] doc: fix hardcoded helper path
0a122b
0a122b
RH-Author: Amos Kong <akong@redhat.com>
0a122b
Message-id: <1385009930-5005-1-git-send-email-akong@redhat.com>
0a122b
Patchwork-id: 55827
0a122b
O-Subject: [RHEL-7.0 qemu-kvm PATCH v2] doc: fix hardcoded helper path
0a122b
Bugzilla: 1016952
0a122b
RH-Acked-by: Michael S. Tsirkin <mst@redhat.com>
0a122b
RH-Acked-by: Vlad Yasevich <vyasevic@redhat.com>
0a122b
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
0a122b
0a122b
Bugzilla: 1016952
0a122b
Brew: http://brewweb.devel.redhat.com/brew/taskinfo?taskID=6621357
0a122b
Upstream: merged, we should parse C macros in texi mode in future
0a122b
0a122b
The install directory of qemu-bridge-helper is configurable,
0a122b
but we use a fixed path in the documentation.
0a122b
0a122b
DEFAULT_BRIDGE_HELPER macro isn't available in texi mode,
0a122b
we should always use "/path/to/" prefix for dynamic paths
0a122b
(e.g.: /path/to/image, /path/to/linux, etc).
0a122b
0a122b
Signed-off-by: Amos Kong <akong@redhat.com>
0a122b
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
0a122b
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
0a122b
(cherry picked from commit 420508fbba2a6e8eaff008715b5f7eff83f8e865)
0a122b
---
0a122b
v2: replace hardcode path prefix by '/path/to/'
0a122b
---
0a122b
 qemu-options.hx |    6 +++---
0a122b
 1 files changed, 3 insertions(+), 3 deletions(-)
0a122b
0a122b
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
0a122b
---
0a122b
 qemu-options.hx |    6 +++---
0a122b
 1 files changed, 3 insertions(+), 3 deletions(-)
0a122b
0a122b
diff --git a/qemu-options.hx b/qemu-options.hx
0a122b
index 3c60140..e3c5d67 100644
0a122b
--- a/qemu-options.hx
0a122b
+++ b/qemu-options.hx
0a122b
@@ -1593,7 +1593,7 @@ to disable script execution.
0a122b
 
0a122b
 If running QEMU as an unprivileged user, use the network helper
0a122b
 @var{helper} to configure the TAP interface. The default network
0a122b
-helper executable is @file{/usr/local/libexec/qemu-bridge-helper}.
0a122b
+helper executable is @file{/path/to/qemu-bridge-helper}.
0a122b
 
0a122b
 @option{fd}=@var{h} can be used to specify the handle of an already
0a122b
 opened host TAP interface.
0a122b
@@ -1617,7 +1617,7 @@ qemu-system-i386 linux.img \
0a122b
 #launch a QEMU instance with the default network helper to
0a122b
 #connect a TAP device to bridge br0
0a122b
 qemu-system-i386 linux.img \
0a122b
-                 -net nic -net tap,"helper=/usr/local/libexec/qemu-bridge-helper"
0a122b
+                 -net nic -net tap,"helper=/path/to/qemu-bridge-helper"
0a122b
 @end example
0a122b
 
0a122b
 @item -netdev bridge,id=@var{id}[,br=@var{bridge}][,helper=@var{helper}]
0a122b
@@ -1626,7 +1626,7 @@ Connect a host TAP network interface to a host bridge device.
0a122b
 
0a122b
 Use the network helper @var{helper} to configure the TAP interface and
0a122b
 attach it to the bridge. The default network helper executable is
0a122b
-@file{/usr/local/libexec/qemu-bridge-helper} and the default bridge
0a122b
+@file{/path/to/qemu-bridge-helper} and the default bridge
0a122b
 device is @file{br0}.
0a122b
 
0a122b
 Examples:
0a122b
-- 
0a122b
1.7.1
0a122b