[Spice-devel] [PATCH 0.8 9/9] server: make sure we clear vdagent and update mouse mode on agent disconnect
alevy at redhat.com
Sat Apr 2 09:40:08 PDT 2011
On Sat, Apr 02, 2011 at 07:16:55PM +0300, Alon Levy wrote:
> On Sat, Apr 02, 2011 at 03:21:49PM +0200, Hans de Goede wrote:
> > Hi,
> > On 04/02/2011 11:24 AM, Alon Levy wrote:
> > >On Fri, Apr 01, 2011 at 05:13:09PM +0200, Hans de Goede wrote:
> > >>The check this patch removes causes us to not set vdagent to NULL, nor
> > >>update the mouse mode when the guest agent disconnects when no client is
> > >>attached. Which leads to a non working mouse, and on agent reconnect a
> > >>"spice_server_char_device_add_interface: vdagent already attached" message
> > >>instead of a successful re-add of the agent interface .
> > >
> > >Well, that's my patch. So the ASSERT gets turned to an if and then dropped.
> > >I like you explanation better then mine. At least now I know who to blame for
> > >my non working agent - me!
> > Does that mean your "windows agent woes" are fixed with this patch ?
> No, just that that seemed like a candidate. Couldn't apply it to upstream
> easily (because of the main split), giving up and testing 0.8.
ok, I'm not sure if these patches fixed my problem or not, because when I was rebasing qemu I noticed I dropped the chr_closed and chr_open callbacks accidentally, so maybe that had something to do with it. I also tested (again aciidentally) the old windows agent (before clipboard became on demand), and I can report unsuprisingly that clipboard doesn't work with it, but surprisingly that it crashes when restarted (but does end up working if you ignore the crash, not sure how that plays). didn't have debug symbols (used old builds from spice-space) so didn't debug.
Anyway windows with the newer (0.6.3 from spice-space) agent works fine, stopping goes back to server mouse, starting gets client moues again, clipboard works (only tested text, but not specifically affected by your patches anyway). So
> > >ACK.
> > Thanks, any chance you could also review:
> > [Spice-devel] [PATCH 0.8 5/9] server: filter all data from client Hans de Goede
> > [Spice-devel] [PATCH 0.8 6/9] server: add discard all option to agent message filter Hans de Goede
> > [Spice-devel] [PATCH 0.8 7/9] server: hookup agent-msg-filter discard-all functionality Hans de Goede
> > [Spice-devel] [PATCH 0.8 8/9] server: ignore SPICE_MSGC_MAIN_AGENT_START messages when there is no agent Hans de Goede
> > ?
> > Regards,
> > Hans
> > _______________________________________________
> > Spice-devel mailing list
> > Spice-devel at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/spice-devel
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
More information about the Spice-devel