Received: from eggs.gnu.org ([2001:4830:134:3::10]:60938) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqVWR-0002Cb-4Q for qemu-devel@nongnu.org; Wed, 13 Apr 2016 20:52:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aqVWN-0006dC-VM for qemu-devel@nongnu.org; Wed, 13 Apr 2016 20:52:39 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45611) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqVWN-0006d8-Ph for qemu-devel@nongnu.org; Wed, 13 Apr 2016 20:52:35 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 12C9964060 for ; Thu, 14 Apr 2016 00:52:35 +0000 (UTC) From: Eduardo Habkost Date: Wed, 13 Apr 2016 21:51:55 -0300 Message-Id: <1460595118-23127-1-git-send-email-ehabkost@redhat.com> Subject: [Qemu-devel] [PATCH for-2.7 v2 0/3] vl: Simplify vga interface configuration code List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , "Michael S. Tsirkin" , Marcel Apfelbaum 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 * Fix spacing on select_vgahw() definition Suggested-by: Eric Blake * 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