From: Gerd Hoffmann <kraxel@redhat.com>
To: Alon Levy <alevy@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] hw/qxl: another missing unlock
Date: Thu, 27 Jan 2011 09:17:49 +0100 [thread overview]
Message-ID: <4D412A2D.8050605@redhat.com> (raw)
In-Reply-To: <1295966534-13121-1-git-send-email-alevy@redhat.com>
On 01/25/11 15:42, Alon Levy wrote:
> We need to unlock the mutex before waiting on read via
> the worker call since the worker will try to lock and hang
> otherwise.
>
> Signed-off-by: Alon Levy<alevy@redhat.com>
> ---
> hw/qxl.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/hw/qxl.c b/hw/qxl.c
> index 117f7c8..00c31c7 100644
> --- a/hw/qxl.c
> +++ b/hw/qxl.c
> @@ -791,7 +791,9 @@ static void qxl_add_memslot(PCIQXLDevice *d, uint32_t slot_id, uint64_t delta)
> __FUNCTION__, memslot.slot_id,
> memslot.virt_start, memslot.virt_end);
>
> + qxl_unlock_iothread(&d->ssd);
> d->ssd.worker->add_memslot(d->ssd.worker,&memslot);
> + qxl_lock_iothread(&d->ssd);
> d->guest_slots[slot_id].ptr = (void*)memslot.virt_start;
> d->guest_slots[slot_id].size = memslot.virt_end - memslot.virt_start;
> d->guest_slots[slot_id].delta = delta;
added to spice patch queue
thanks,
Gerd
prev parent reply other threads:[~2011-01-27 8:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-25 14:42 [Qemu-devel] [PATCH] hw/qxl: another missing unlock Alon Levy
2011-01-27 8:17 ` 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=4D412A2D.8050605@redhat.com \
--to=kraxel@redhat.com \
--cc=alevy@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 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).