From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43389) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zwcw0-0007ZS-8C for qemu-devel@nongnu.org; Wed, 11 Nov 2015 16:28:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zwcvw-0008Tc-A3 for qemu-devel@nongnu.org; Wed, 11 Nov 2015 16:28:04 -0500 Received: from mx1.redhat.com ([209.132.183.28]:53943) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zwcvw-0008TX-4v for qemu-devel@nongnu.org; Wed, 11 Nov 2015 16:28:00 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id CE87C80081 for ; Wed, 11 Nov 2015 21:27:59 +0000 (UTC) From: Eduardo Habkost Date: Wed, 11 Nov 2015 19:27:51 -0200 Message-Id: <1447277273-26151-1-git-send-email-ehabkost@redhat.com> Subject: [Qemu-devel] [PATCH 0/2] 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 Instead of duplicating class lookup and strstart() code for each VGA interface type, use a table to implement select_vgahw(). This series needs the following patch to be applied first: From: Eduardo Habkost Date: Wed, 11 Nov 2015 18:39:18 -0200 Message-Id: <1447274358-2772-1-git-send-email-ehabkost@redhat.com> Subject: [PATCH] vl: Use exit(1) when requested VGA interface is unavailable Eduardo Habkost (2): vl: Table-based select_vgahw() vl: Replace *_vga_available() functions with class_names field include/sysemu/sysemu.h | 1 + vl.c | 156 ++++++++++++++++++++++-------------------------- 2 files changed, 72 insertions(+), 85 deletions(-) -- 2.1.0