All of lore.kernel.org
 help / color / mirror / Atom feed
From: Uri Lublin <uril@redhat.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] qxl+vnc: register a vm state change handler for dummy spice_server
Date: Wed, 12 Dec 2012 16:45:41 +0200	[thread overview]
Message-ID: <50C89895.8080704@redhat.com> (raw)
In-Reply-To: <d4583279e4bc44c95a0bab5121657602d8e41da9.1355135715.git.uril@redhat.com>

On 12/10/2012 12:36 PM, Uri Lublin wrote:
> When qxl + vnc are used, a dummy spice_server is initialized.
> The spice_server has to be told when the VM runstate changes,
> which is what this patch does.
>
> Without it, from qxl_send_events(), the following error message is shown:
>    qxl_send_events: spice-server bug: guest stopped, ignoring

Signed-off-by: Uri Lublin <uril@redhat.com>

> ---
>   ui/spice-core.c |    1 +
>   1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/ui/spice-core.c b/ui/spice-core.c
> index 261c6f2..6a6ab12 100644
> --- a/ui/spice-core.c
> +++ b/ui/spice-core.c
> @@ -732,6 +732,7 @@ int qemu_spice_add_interface(SpiceBaseInstance *sin)
>            */
>           spice_server = spice_server_new();
>           spice_server_init(spice_server,&core_interface);
> +        qemu_add_vm_change_state_handler(vm_change_state_handler,&spice_server);
>       }
>
>       return spice_server_add_interface(spice_server, sin);

  reply	other threads:[~2012-12-12 14:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-10 10:36 [Qemu-devel] [PATCH] qxl+vnc: register a vm state change handler for dummy spice_server Uri Lublin
2012-12-12 14:45 ` Uri Lublin [this message]
2012-12-12 15:31   ` Gerd Hoffmann

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=50C89895.8080704@redhat.com \
    --to=uril@redhat.com \
    --cc=qemu-devel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.