Re: [Qemu-devel] [PATCH 13/25] vnc: add error propagation to vnc_display_open

2012-10-19 Thread Paolo Bonzini
> > I tried to split this one into many commits, but I wasn't sure it > > was worth to make a mini-series out of one function. In retrospect > > it was. > > Review of a long series is unrewarding when the patches are all > perfect ;) LOL, will split the patch anyway. Paolo

Re: [Qemu-devel] [PATCH 13/25] vnc: add error propagation to vnc_display_open

2012-10-19 Thread Markus Armbruster
Paolo Bonzini writes: > Il 17/10/2012 17:17, Markus Armbruster ha scritto: >>> > +fail: >>> > +if (!error_is_set(errp)) { >>> > +error_set(errp, QERR_VNC_SERVER_FAILED, display); >> How can we get here with no error set? >> >> 1. !vnc_display (first goto fail). > > This can be fixed

Re: [Qemu-devel] [PATCH 13/25] vnc: add error propagation to vnc_display_open

2012-10-17 Thread Paolo Bonzini
Il 17/10/2012 17:17, Markus Armbruster ha scritto: >> > +fail: >> > +if (!error_is_set(errp)) { >> > +error_set(errp, QERR_VNC_SERVER_FAILED, display); > How can we get here with no error set? > > 1. !vnc_display (first goto fail). This can be fixed up to give a separate error. > 2.

Re: [Qemu-devel] [PATCH 13/25] vnc: add error propagation to vnc_display_open

2012-10-17 Thread Markus Armbruster
Paolo Bonzini writes: > Before: > > $ qemu-system-x86_64 -vnc foo.bar:12345 > getaddrinfo(foo.bar,18245): Name or service not known > Failed to start VNC server on `foo.bar:12345' > > $ qemu-system-x86_64 -vnc localhost:12345,reverse=on > inet_connect_opts: connect(ipv4,yakj.u

[Qemu-devel] [PATCH 13/25] vnc: add error propagation to vnc_display_open

2012-10-10 Thread Paolo Bonzini
Before: $ qemu-system-x86_64 -vnc foo.bar:12345 getaddrinfo(foo.bar,18245): Name or service not known Failed to start VNC server on `foo.bar:12345' $ qemu-system-x86_64 -vnc localhost:12345,reverse=on inet_connect_opts: connect(ipv4,yakj.usersys.redhat.com,127.0.0.1,12345): C