qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Fiona Ebner <f.ebner@proxmox.com>
To: marcandre.lureau@redhat.com, qemu-devel@nongnu.org
Cc: lucas.kornicki@nutanix.com, qemu-stable@nongnu.org
Subject: Re: [PATCH] ui/vdagent: fix windows agent regression
Date: Mon, 17 Nov 2025 13:00:38 +0100	[thread overview]
Message-ID: <78b26e48-15a9-424b-a2d5-6ec900661c68@proxmox.com> (raw)
In-Reply-To: <20251027130744.2714610-1-marcandre.lureau@redhat.com>

Am 27.10.25 um 2:09 PM schrieb marcandre.lureau@redhat.com:
> From: Marc-André Lureau <marcandre.lureau@redhat.com>
> 
> Since commit f626116f ("ui/vdagent: factor out clipboard peer
> registration"), the QEMU clipboard serial is reset whenever the vdagent
> chardev receives the guest caps. This triggers a CHR_EVENT_CLOSED which
> is handled by virtio_serial_close() to notify the guest.
> 
> The "reconnection logic" is there to reset the agent when a
> client (dbus, spice etc) reconnects, or the agent is restarted.
> It is required to sync the clipboard serials and to prevent races or
> loops due to clipboard managers on both ends (but this is not
> implemented by windows vdagent).
> 
> The Unix agent has been reconnecting without resending caps, thus
> working with this approach.
> 
> However, the Windows agent does not seem to have a way to handle
> VIRTIO_CONSOLE_PORT_OPEN=0 event and do not receive further data...
> 
> Let's not trigger this disconnection/reset logic if the agent does not
> support VD_AGENT_CAP_CLIPBOARD_GRAB_SERIAL.
> 
> Fixes: f626116f ("ui/vdagent: factor out clipboard peer registration")
> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> Reported-by: Lucas Kornicki <lucas.kornicki@nutanix.com>

Thank you for the fix!

Tested-by: Fiona Ebner <f.ebner@proxmox.com>

and with my very limited knowledge in the area:

Reviewed-by: Fiona Ebner <f.ebner@proxmox.com>

CC: qemu-stable, because it affects 10.1



      parent reply	other threads:[~2025-11-17 12:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-27 13:07 [PATCH] ui/vdagent: fix windows agent regression marcandre.lureau
2025-10-29 13:50 ` Lucas Kornicki
2025-11-17 12:00 ` Fiona Ebner [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=78b26e48-15a9-424b-a2d5-6ec900661c68@proxmox.com \
    --to=f.ebner@proxmox.com \
    --cc=lucas.kornicki@nutanix.com \
    --cc=marcandre.lureau@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-stable@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).