]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
qemu: fix guestfwd chardev option back how it was
authorMartin Kletzander <mkletzan@redhat.com>
Thu, 26 Jun 2014 14:09:46 +0000 (16:09 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Thu, 26 Jun 2014 14:56:09 +0000 (16:56 +0200)
Since commit d86c876a66e320b55220d00113027c9ad6199cff we are using
guestfwd=tcp:IP:PORT,chardev=ID for guestfwd specification, however,
that has not changed in qemu, so guestfwd does not work since.

Apart from that, guestfwd is not working with older qemu that doesn't
have QEMU_CAPS_DEVICE.

Both regressions exist since late 2009 and nobody found that (until
now), so I'm only fixing the first one.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1112066

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
src/qemu/qemu_command.c
tests/qemuxml2argvdata/qemuxml2argv-channel-guestfwd.args

index d53315a3d5591ce5c85190b16725c93753f8d425..63f322a41265a1f6cb1345e34c22ebe19d79d05f 100644 (file)
@@ -9186,7 +9186,7 @@ qemuBuildChannelChrDeviceStr(char **deviceStr,
         port = virSocketAddrGetPort(chr->target.addr);
 
         if (virAsprintf(deviceStr,
-                        "user,guestfwd=tcp:%s:%i,chardev=char%s,id=user-%s",
+                        "user,guestfwd=tcp:%s:%i-chardev:char%s,id=user-%s",
                         addr, port, chr->info.alias, chr->info.alias) < 0) {
             virReportOOMError();
             goto cleanup;
index 7a153693aefef75f92e069e63f07dc93d5ec26e6..eb1343071cdd88262002b585b02b5ed9a127af90 100644 (file)
@@ -4,5 +4,5 @@ pc -m 214 -smp 1 -nographic -nodefconfig -nodefaults -chardev socket,\
 id=charmonitor,path=/tmp/test-monitor,server,nowait -mon chardev=charmonitor,\
 id=monitor,mode=readline -no-acpi -boot c -usb -hda /dev/HostVG/QEMUGuest1 -chardev \
 pipe,id=charchannel0,path=/tmp/guestfwd -netdev user,\
-guestfwd=tcp:10.0.2.1:4600,chardev=charchannel0,id=user-channel0 -device \
+guestfwd=tcp:10.0.2.1:4600-chardev:charchannel0,id=user-channel0 -device \
 virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3