From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: "Marc-André Lureau" <marcandre.lureau@redhat.com>, qemu-devel@nongnu.org
Cc: kraxel@redhat.com
Subject: Re: [Qemu-devel] [PATCH 4/4] virtio-gpu: remove useless 'waiting' field
Date: Thu, 21 Feb 2019 18:38:11 +0100 [thread overview]
Message-ID: <0513055b-88f4-296e-e89e-f5e06ff99cea@redhat.com> (raw)
In-Reply-To: <20190221114330.17968-5-marcandre.lureau@redhat.com>
On 2/21/19 12:43 PM, Marc-André Lureau wrote:
> Let's check renderer_blocked instead directly.
>
> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> ---
> include/hw/virtio/virtio-gpu.h | 1 -
> hw/display/virtio-gpu.c | 4 +---
> 2 files changed, 1 insertion(+), 4 deletions(-)
>
> diff --git a/include/hw/virtio/virtio-gpu.h b/include/hw/virtio/virtio-gpu.h
> index f8cd8ee96f..26a6698266 100644
> --- a/include/hw/virtio/virtio-gpu.h
> +++ b/include/hw/virtio/virtio-gpu.h
> @@ -81,7 +81,6 @@ struct virtio_gpu_ctrl_command {
> VirtQueue *vq;
> struct virtio_gpu_ctrl_hdr cmd_hdr;
> uint32_t error;
> - bool waiting;
> bool finished;
> QTAILQ_ENTRY(virtio_gpu_ctrl_command) next;
> };
> diff --git a/hw/display/virtio-gpu.c b/hw/display/virtio-gpu.c
> index 7ada4b83ac..0baa9ac0ad 100644
> --- a/hw/display/virtio-gpu.c
> +++ b/hw/display/virtio-gpu.c
> @@ -889,8 +889,7 @@ void virtio_gpu_process_cmdq(VirtIOGPU *g)
> while (!QTAILQ_EMPTY(&g->cmdq)) {
> cmd = QTAILQ_FIRST(&g->cmdq);
>
> - cmd->waiting = g->renderer_blocked;
> - if (cmd->waiting) {
> + if (g->renderer_blocked) {
> break;
> }
>
> @@ -939,7 +938,6 @@ static void virtio_gpu_handle_ctrl(VirtIODevice *vdev, VirtQueue *vq)
> cmd->vq = vq;
> cmd->error = 0;
> cmd->finished = false;
> - cmd->waiting = false;
> QTAILQ_INSERT_TAIL(&g->cmdq, cmd, next);
> cmd = virtqueue_pop(vq, sizeof(struct virtio_gpu_ctrl_command));
> }
>
prev parent reply other threads:[~2019-02-21 17:38 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-21 11:43 [Qemu-devel] [PATCH 0/4] virtio-gpu fixes (resend) Marc-André Lureau
2019-02-21 11:43 ` [Qemu-devel] [PATCH 1/4] virtio-gpu: remove unused qdev Marc-André Lureau
2019-02-21 16:46 ` Christophe Fergeau
2019-02-21 17:36 ` Philippe Mathieu-Daudé
2019-02-21 11:43 ` [Qemu-devel] [PATCH 2/4] virtio-gpu: remove unused config_size Marc-André Lureau
2019-02-21 16:51 ` Christophe Fergeau
2019-02-21 17:37 ` Philippe Mathieu-Daudé
2019-02-21 11:43 ` [Qemu-devel] [PATCH 3/4] virtio-gpu: block both 2d and 3d rendering Marc-André Lureau
2019-02-21 16:53 ` Christophe Fergeau
2019-02-21 11:43 ` [Qemu-devel] [PATCH 4/4] virtio-gpu: remove useless 'waiting' field Marc-André Lureau
2019-02-21 16:53 ` Christophe Fergeau
2019-02-21 17:38 ` Philippe Mathieu-Daudé [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=0513055b-88f4-296e-e89e-f5e06ff99cea@redhat.com \
--to=philmd@redhat.com \
--cc=kraxel@redhat.com \
--cc=marcandre.lureau@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).