All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <aliguori@us.ibm.com>
To: Gerd Hoffmann <kraxel@redhat.com>, qemu-devel@nongnu.org
Cc: alevy@redhat.com, lcapitulino@redhat.com
Subject: Re: [Qemu-devel] [RfC PATCH 1/2] display update with notification
Date: Mon, 17 Jun 2013 09:39:02 -0500	[thread overview]
Message-ID: <87d2rk4xa1.fsf@codemonkey.ws> (raw)
In-Reply-To: <1371477707-7039-2-git-send-email-kraxel@redhat.com>


Little more context please.

Regards,

Anthony Liguori

Gerd Hoffmann <kraxel@redhat.com> writes:

> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
> ---
>  include/ui/console.h |    2 ++
>  ui/console.c         |   15 +++++++++++++++
>  2 files changed, 17 insertions(+)
>
> diff --git a/include/ui/console.h b/include/ui/console.h
> index 092b9be..4860687 100644
> --- a/include/ui/console.h
> +++ b/include/ui/console.h
> @@ -273,6 +273,7 @@ static inline void console_write_ch(console_ch_t *dest, uint32_t ch)
>  typedef struct GraphicHwOps {
>      void (*invalidate)(void *opaque);
>      void (*gfx_update)(void *opaque);
> +    void (*gfx_update_notify)(void *opaque, QEMUBH *notify);
>      void (*text_update)(void *opaque, console_ch_t *text);
>      void (*update_interval)(void *opaque, uint64_t interval);
>  } GraphicHwOps;
> @@ -282,6 +283,7 @@ QemuConsole *graphic_console_init(DeviceState *dev,
>                                    void *opaque);
>  
>  void graphic_hw_update(QemuConsole *con);
> +void graphic_hw_update_notify(QemuConsole *con, QEMUBH *notify);
>  void graphic_hw_invalidate(QemuConsole *con);
>  void graphic_hw_text_update(QemuConsole *con, console_ch_t *chardata);
>  
> diff --git a/ui/console.c b/ui/console.c
> index 07d4d63..020805c 100644
> --- a/ui/console.c
> +++ b/ui/console.c
> @@ -255,6 +255,21 @@ void graphic_hw_update(QemuConsole *con)
>      }
>  }
>  
> +void graphic_hw_update_notify(QemuConsole *con, QEMUBH *notify)
> +{
> +    assert(con != NULL);
> +
> +    if (con->hw_ops->gfx_update_notify) {
> +        con->hw_ops->gfx_update_notify(con->hw, notify);
> +        return;
> +    }
> +
> +    if (con->hw_ops->gfx_update) {
> +        con->hw_ops->gfx_update(con->hw);
> +    }
> +    qemu_bh_schedule(notify);
> +}
> +
>  void graphic_hw_invalidate(QemuConsole *con)
>  {
>      if (!con) {
> -- 
> 1.7.9.7

  reply	other threads:[~2013-06-17 14:40 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-17 14:01 [Qemu-devel] [RfC PATCH 0/2] new screendump qmp command Gerd Hoffmann
2013-06-17 14:01 ` [Qemu-devel] [RfC PATCH 1/2] display update with notification Gerd Hoffmann
2013-06-17 14:39   ` Anthony Liguori [this message]
2013-06-17 14:01 ` [Qemu-devel] [RfC PATCH 2/2] console: add screendump-device qmp cmd Gerd Hoffmann
2013-06-17 14:43   ` Anthony Liguori
2013-06-17 14:50     ` Luiz Capitulino
2013-06-18  9:24       ` Gerd Hoffmann
2013-06-18 13:13         ` Luiz Capitulino
2013-06-18 13:24           ` Gerd Hoffmann
2013-06-18 14:47             ` Stefan Hajnoczi
2013-06-25 10:28               ` Gerd Hoffmann
2013-07-12 17:01         ` Eric Blake
2013-07-12 17:06   ` Eric Blake

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=87d2rk4xa1.fsf@codemonkey.ws \
    --to=aliguori@us.ibm.com \
    --cc=alevy@redhat.com \
    --cc=kraxel@redhat.com \
    --cc=lcapitulino@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.