qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Elie Tournier <tournier.elie@gmail.com>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: Eric Blake <eblake@redhat.com>,
	qemu-devel@nongnu.org, pbonzini@redhat.com,
	Elie Tournier <elie.tournier@collabora.com>
Subject: Re: [Qemu-devel] [PATCH v2 1/2 for-2.12?] qapi: Parameter gl of DisplayType now accept an enum
Date: Thu, 12 Apr 2018 15:11:53 +0100	[thread overview]
Message-ID: <20180412141153.GA16814@Nikki.localdomain> (raw)
In-Reply-To: <20180410133335.zzvgg7lqe2lb2zdx@sirius.home.kraxel.org>

Hello,

On Tue, Apr 10, 2018 at 03:33:35PM +0200, Gerd Hoffmann wrote:
> > # @off: Disable OpenGL (default).

Just to be sure, I have to add @ in front of all parameter, right?

> > 
> > > + # 'on'    Use OpenGL, pick context type automatically.
> > > + #         Would better be named 'auto' but is called 'on' for backward
> > > + #         compatibility with bool type.
> > 
> > See below...
> 
> > DisplayOptions was added in 2.12.  This is a backwards-incompatible
> > change in QMP (you CANNOT change 'bool' to 'DisplayGLMode' across
> > releases, because the on-the-wire representation differs; pre-patch it
> > would be "gl":true, post-patch it is "gl":"on").  So if it affects QMP,
> > and we want it, this patch either HAS to go in 2.12, or we have to have
> > more finesse (perhaps by using an 'alternate' type in the QAPI) so that
> > it remains backwards-compatible.
> > 
> > /me goes and looks at introspection output...
> > 
> > You may be in luck - there is no instance of 'window-close' in the
> > introspection output, which means 'DisplayType' exists only for ease of
> > command-line parsing and is not currently used by QMP, so tweaks here
> > are not affecting the command line.
> 
> Yes, right now the struct is only used to store the parsed command line
> opts, so no effect on QMP.
> 
> Plan for the future is to also parse command line options with generic
> qapi/json code instead of the home-grown parser, but that switch didn't
> happen yet.
> 
> > That said, you can STILL name the enum value something smarter than 'on'
> > IF you make the change now, for 2.12, given that the QAPI type was only
> > introduced in 2.12 (you only have to worry about backwards compatibility
> > if 2.11 already parsed gl=on).
> 
> gl=on is older, so that must continue to work.  Making both "on" and
> "auto" work isn't a problem for our home-grown parser (aka
> parse_display() in vl.c).  But having quirks like this makes the switch
> to generic parser code more difficuilt, so I'd prefer to avoid that ...

Is it possible to upstream this change before 2.12 release?

> 
> cheers,
>   Gerd
> 

  reply	other threads:[~2018-04-12 14:17 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-10 12:02 [Qemu-devel] [PATCH v2 0/2] Use SDL to create an OpenGL ES context for virglrenderer Elie Tournier
2018-04-10 12:02 ` [Qemu-devel] [PATCH v2 1/2] qapi: Parameter gl of DisplayType now accept an enum Elie Tournier
2018-04-10 12:38   ` Gerd Hoffmann
2018-04-10 13:13   ` [Qemu-devel] [PATCH v2 1/2 for-2.12?] " Eric Blake
2018-04-10 13:33     ` Gerd Hoffmann
2018-04-12 14:11       ` Elie Tournier [this message]
2018-04-12 15:17         ` Eric Blake
2018-04-13  6:15         ` Gerd Hoffmann
2018-04-13 10:16           ` Elie Tournier
2018-04-13 13:08             ` Gerd Hoffmann
2018-04-10 13:49     ` Elie Tournier
2018-04-10 12:02 ` [Qemu-devel] [PATCH v2 2/2] sdl: Allow OpenGL ES context creation Elie Tournier
2018-04-10 12:46   ` Gerd Hoffmann
2018-04-10 12:13 ` [Qemu-devel] [PATCH v2 0/2] Use SDL to create an OpenGL ES context for virglrenderer no-reply

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=20180412141153.GA16814@Nikki.localdomain \
    --to=tournier.elie@gmail.com \
    --cc=eblake@redhat.com \
    --cc=elie.tournier@collabora.com \
    --cc=kraxel@redhat.com \
    --cc=pbonzini@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).