From: Gerd Hoffmann <kraxel@redhat.com>
To: Yonit Halperin <yhalperi@redhat.com>
Cc: alevy@redhat.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] qxl: upon reset, if spice worker is stopped, the command rings can be not empty
Date: Thu, 14 Jul 2011 10:31:24 +0200 [thread overview]
Message-ID: <4E1EA95C.5040002@redhat.com> (raw)
In-Reply-To: <1310460718-19184-1-git-send-email-yhalperi@redhat.com>
On 07/12/11 10:51, Yonit Halperin wrote:
> Spice worker does no longer process commands when it is stopped.
> Otherwise, it might crash during migration when attempting to process
> commands while the guest is not completely loaded.
>
> Cc: Alon Levy<alevy@redhat.com>
> ---
> hw/qxl.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/hw/qxl.c b/hw/qxl.c
> index 0b9a4c7..a6fb7f0 100644
> --- a/hw/qxl.c
> +++ b/hw/qxl.c
> @@ -656,8 +656,8 @@ static void qxl_reset_state(PCIQXLDevice *d)
> QXLRam *ram = d->ram;
> QXLRom *rom = d->rom;
>
> - assert(SPICE_RING_IS_EMPTY(&ram->cmd_ring));
> - assert(SPICE_RING_IS_EMPTY(&ram->cursor_ring));
> + assert(!d->ssd.running || SPICE_RING_IS_EMPTY(&ram->cmd_ring));
> + assert(!d->ssd.running || SPICE_RING_IS_EMPTY(&ram->cursor_ring));
> d->shadow_rom.update_id = cpu_to_le32(0);
> *rom = d->shadow_rom;
> qxl_rom_set_dirty(d);
Patch added to spice patch queue.
thanks,
Gerd
prev parent reply other threads:[~2011-07-14 8:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-12 8:51 [Qemu-devel] [PATCH] qxl: upon reset, if spice worker is stopped, the command rings can be not empty Yonit Halperin
2011-07-14 8:31 ` Gerd Hoffmann [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=4E1EA95C.5040002@redhat.com \
--to=kraxel@redhat.com \
--cc=alevy@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=yhalperi@redhat.com \
/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.