qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Eduardo Habkost <ehabkost@redhat.com>
To: qemu-devel@nongnu.org
Cc: Paolo Bonzini <pbonzini@redhat.com>,
	"Michael S. Tsirkin" <mst@redhat.com>,
	Marcel Apfelbaum <marcel@redhat.com>
Subject: [Qemu-devel] [PATCH for-2.7 v2 0/3] vl: Simplify vga interface configuration code
Date: Wed, 13 Apr 2016 21:51:55 -0300	[thread overview]
Message-ID: <1460595118-23127-1-git-send-email-ehabkost@redhat.com> (raw)

Instead of duplicating class lookup and strstart() code for each
VGA interface type, use a table to implement select_vgahw().

Changes v1 -> v2:
* Keep assert(vga_interface_type == VGA_NONE) line
  Suggested-by: Eric Blake <eblake@redhat.com>
* Fix spacing on select_vgahw() definition
  Suggested-by: Eric Blake <eblake@redhat.com>
* Include "vl: Use exit(1) when requested VGA interface is
  unavailable" in the series, also

Eduardo Habkost (3):
  vl: Use exit(1) when requested VGA interface is unavailable
  vl: Table-based select_vgahw()
  vl: Replace *_vga_available() functions with class_names field

 include/sysemu/sysemu.h |   1 +
 vl.c                    | 157 ++++++++++++++++++++++--------------------------
 2 files changed, 73 insertions(+), 85 deletions(-)

-- 
2.1.0

             reply	other threads:[~2016-04-14  0:52 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-14  0:51 Eduardo Habkost [this message]
2016-04-14  0:51 ` [Qemu-devel] [PATCH for-2.7 v2 1/3] vl: Use exit(1) when requested VGA interface is unavailable Eduardo Habkost
2016-04-14  7:23   ` Marcel Apfelbaum
2016-04-14  0:51 ` [Qemu-devel] [PATCH for-2.7 v2 2/3] vl: Table-based select_vgahw() Eduardo Habkost
2016-04-14  7:28   ` Marcel Apfelbaum
2016-04-14  0:51 ` [Qemu-devel] [PATCH for-2.7 v2 3/3] vl: Replace *_vga_available() functions with class_names field Eduardo Habkost
2016-04-14  7:40   ` Marcel Apfelbaum

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=1460595118-23127-1-git-send-email-ehabkost@redhat.com \
    --to=ehabkost@redhat.com \
    --cc=marcel@redhat.com \
    --cc=mst@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).