From: Peter Maydell <peter.maydell@linaro.org>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: QEMU Developers <qemu-devel@nongnu.org>,
Kevin Wolf <kwolf@redhat.com>,
Markus Armbruster <armbru@redhat.com>,
"Dr. David Alan Gilbert" <dgilbert@redhat.com>,
Stefan Hajnoczi <stefanha@redhat.com>
Subject: Re: [Qemu-devel] [PULL 13/14] spice: add cursor_dmabuf support
Date: Fri, 27 Apr 2018 14:12:41 +0100 [thread overview]
Message-ID: <CAFEAcA-_SdGVKt_a9AWB1BQt569m2mvPopdTJeDJdgXn_JEN8A@mail.gmail.com> (raw)
In-Reply-To: <20180312091405.19610-14-kraxel@redhat.com>
On 12 March 2018 at 09:14, Gerd Hoffmann <kraxel@redhat.com> wrote:
> Add support for cursor dmabufs. qemu has to render the cursor for
> that, so in case a cursor is present qemu allocates a new dmabuf, blits
> the scanout, blends in the pointer and passes on the new dmabuf to
> spice-server. Without cursor qemu continues to simply pass on the
> scanout dmabuf as-is.
> + } else {
> + trace_qemu_spice_gl_forward_dmabuf(ssd->qxl.id,
> + dmabuf->width, dmabuf->height);
> + /* note: spice server will close the fd, so hand over a dup */
> + spice_qxl_gl_scanout(&ssd->qxl, dup(dmabuf->fd),
> + dmabuf->width, dmabuf->height,
> + dmabuf->stride, dmabuf->fourcc, false);
> + }
Coverity complains about this, because it doesn't know that
spice_qxl_gl_scanout() closes the fd it's passed. Is it
worth adding something to our coverity model to indicate this?
(Coverity complained in CID 1390616, which I have marked as a
false-positive for now.)
thanks
-- PMM
next prev parent reply other threads:[~2018-04-27 13:13 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-12 9:13 [Qemu-devel] [PULL 00/14] Ui 20180312 patches Gerd Hoffmann
2018-03-12 9:13 ` [Qemu-devel] [PULL 01/14] build: try improve handling of clang warnings Gerd Hoffmann
2018-03-12 9:13 ` [Qemu-devel] [PULL 02/14] make: switch language file build to be gtk module aware Gerd Hoffmann
2018-03-12 9:13 ` [Qemu-devel] [PULL 03/14] sdl: workaround bug in sdl 2.0.8 headers Gerd Hoffmann
2018-03-12 9:13 ` [Qemu-devel] [PULL 04/14] ui/gtk: make GtkGlArea usage a runtime option Gerd Hoffmann
2018-03-12 9:13 ` [Qemu-devel] [PULL 05/14] ui/gtk: group gtk.mo declarations in Makefile Gerd Hoffmann
2018-03-12 9:13 ` [Qemu-devel] [PULL 06/14] ui/opengl: Makefile cleanup Gerd Hoffmann
2018-03-12 9:13 ` [Qemu-devel] [PULL 07/14] ui/gtk: use GtkGlArea on wayland only Gerd Hoffmann
2018-03-12 9:13 ` [Qemu-devel] [PULL 08/14] ui/gtk-egl: add scanout_dmabuf support Gerd Hoffmann
2018-03-12 9:14 ` [Qemu-devel] [PULL 09/14] ui/gtk-egl: add cursor_dmabuf support Gerd Hoffmann
2018-03-12 9:14 ` [Qemu-devel] [PULL 10/14] vnc: deal with surface NULL pointers Gerd Hoffmann
2018-03-12 9:14 ` [Qemu-devel] [PULL 11/14] spice: drop dprint() debug logging Gerd Hoffmann
2018-03-12 9:14 ` [Qemu-devel] [PULL 12/14] spice: add scanout_dmabuf support Gerd Hoffmann
2018-03-12 9:14 ` [Qemu-devel] [PULL 13/14] spice: add cursor_dmabuf support Gerd Hoffmann
2018-04-27 13:12 ` Peter Maydell [this message]
2018-04-27 13:16 ` Peter Maydell
2018-07-06 11:54 ` Peter Maydell
2018-07-19 10:54 ` Peter Maydell
2018-03-12 9:14 ` [Qemu-devel] [PULL 14/14] qapi: Add device ID and head parameters to screendump Gerd Hoffmann
2018-03-12 16:14 ` [Qemu-devel] [PULL 00/14] Ui 20180312 patches Peter Maydell
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=CAFEAcA-_SdGVKt_a9AWB1BQt569m2mvPopdTJeDJdgXn_JEN8A@mail.gmail.com \
--to=peter.maydell@linaro.org \
--cc=armbru@redhat.com \
--cc=dgilbert@redhat.com \
--cc=kraxel@redhat.com \
--cc=kwolf@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@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 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).