|
Pablo Greco |
40546a |
From 582d5e7db59ec7897dc0a2a78823860963be9855 Mon Sep 17 00:00:00 2001
|
|
Pablo Greco |
40546a |
Message-Id: <582d5e7db59ec7897dc0a2a78823860963be9855@dist-git>
|
|
Pablo Greco |
40546a |
From: Michal Privoznik <mprivozn@redhat.com>
|
|
Pablo Greco |
40546a |
Date: Thu, 27 Jun 2019 14:44:45 +0200
|
|
Pablo Greco |
40546a |
Subject: [PATCH] qemu: Drop "user-" prefix for guestfwd netdev
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
Introduced by d86c876a66e3.
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
There is no real need to have "user-" prefix for chardev.
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
|
|
Pablo Greco |
40546a |
Reviewed-by: John Ferlan <jferlan@redhat.com>
|
|
Pablo Greco |
40546a |
(cherry picked from commit 18b8f677456714f04b87525602fa2b62cd4224e1)
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
https://bugzilla.redhat.com/show_bug.cgi?id=1624204
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
|
|
Pablo Greco |
40546a |
Message-Id: <f9a2801659530438c1253c63a9d754bf46825bfe.1561639408.git.mprivozn@redhat.com>
|
|
Pablo Greco |
40546a |
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
|
|
Pablo Greco |
40546a |
---
|
|
Pablo Greco |
40546a |
src/qemu/qemu_command.c | 2 +-
|
|
Pablo Greco |
40546a |
tests/qemuxml2argvdata/channel-guestfwd.args | 2 +-
|
|
Pablo Greco |
40546a |
tests/qemuxml2argvdata/name-escape.args | 2 +-
|
|
Pablo Greco |
40546a |
3 files changed, 3 insertions(+), 3 deletions(-)
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c
|
|
Pablo Greco |
40546a |
index b5c0588e3c..2b885e98dd 100644
|
|
Pablo Greco |
40546a |
--- a/src/qemu/qemu_command.c
|
|
Pablo Greco |
40546a |
+++ b/src/qemu/qemu_command.c
|
|
Pablo Greco |
40546a |
@@ -10737,7 +10737,7 @@ qemuBuildChannelChrDeviceStr(char **deviceStr,
|
|
Pablo Greco |
40546a |
port = virSocketAddrGetPort(chr->target.addr);
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
if (virAsprintf(deviceStr,
|
|
Pablo Greco |
40546a |
- "user,guestfwd=tcp:%s:%i-chardev:char%s,id=user-%s",
|
|
Pablo Greco |
40546a |
+ "user,guestfwd=tcp:%s:%i-chardev:char%s,id=%s",
|
|
Pablo Greco |
40546a |
addr, port, chr->info.alias, chr->info.alias) < 0)
|
|
Pablo Greco |
40546a |
goto cleanup;
|
|
Pablo Greco |
40546a |
break;
|
|
Pablo Greco |
40546a |
diff --git a/tests/qemuxml2argvdata/channel-guestfwd.args b/tests/qemuxml2argvdata/channel-guestfwd.args
|
|
Pablo Greco |
40546a |
index 6a660f7796..b4c857a6d7 100644
|
|
Pablo Greco |
40546a |
--- a/tests/qemuxml2argvdata/channel-guestfwd.args
|
|
Pablo Greco |
40546a |
+++ b/tests/qemuxml2argvdata/channel-guestfwd.args
|
|
Pablo Greco |
40546a |
@@ -25,5 +25,5 @@ server,nowait \
|
|
Pablo Greco |
40546a |
-drive file=/dev/HostVG/QEMUGuest1,format=raw,if=none,id=drive-ide0-0-0 \
|
|
Pablo Greco |
40546a |
-device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 \
|
|
Pablo Greco |
40546a |
-chardev pipe,id=charchannel0,path=/tmp/guestfwd \
|
|
Pablo Greco |
40546a |
--netdev user,guestfwd=tcp:10.0.2.1:4600-chardev:charchannel0,id=user-channel0 \
|
|
Pablo Greco |
40546a |
+-netdev user,guestfwd=tcp:10.0.2.1:4600-chardev:charchannel0,id=channel0 \
|
|
Pablo Greco |
40546a |
-device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3
|
|
Pablo Greco |
40546a |
diff --git a/tests/qemuxml2argvdata/name-escape.args b/tests/qemuxml2argvdata/name-escape.args
|
|
Pablo Greco |
40546a |
index 382b8a1a9e..cbf594e808 100644
|
|
Pablo Greco |
40546a |
--- a/tests/qemuxml2argvdata/name-escape.args
|
|
Pablo Greco |
40546a |
+++ b/tests/qemuxml2argvdata/name-escape.args
|
|
Pablo Greco |
40546a |
@@ -37,7 +37,7 @@ cert3=cert3,db=/etc/pki/nssdb,,foo,id=smartcard0,bus=ccid0.0 \
|
|
Pablo Greco |
40546a |
-chardev file,id=charserial1,path=/tmp/serial.log,,foo,append=on \
|
|
Pablo Greco |
40546a |
-device isa-serial,chardev=charserial1,id=serial1 \
|
|
Pablo Greco |
40546a |
-chardev pipe,id=charchannel0,path=/tmp/guestfwd,,foo \
|
|
Pablo Greco |
40546a |
--netdev user,guestfwd=tcp:10.0.2.1:4600-chardev:charchannel0,id=user-channel0 \
|
|
Pablo Greco |
40546a |
+-netdev user,guestfwd=tcp:10.0.2.1:4600-chardev:charchannel0,id=channel0 \
|
|
Pablo Greco |
40546a |
-vnc unix:/tmp/lib/domain--1-foo=1,,bar=2/vnc.sock \
|
|
Pablo Greco |
40546a |
-spice unix,addr=/tmp/lib/domain--1-foo=1,,bar=2/spice.sock,gl=on,\
|
|
Pablo Greco |
40546a |
rendernode=/dev/dri/foo,,bar \
|
|
Pablo Greco |
40546a |
--
|
|
Pablo Greco |
40546a |
2.22.0
|
|
Pablo Greco |
40546a |
|