Received: from eggs.gnu.org ([2001:4830:134:3::10]:46568) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNT8q-0004G9-VV for qemu-devel@nongnu.org; Mon, 16 Feb 2015 16:23:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YNT8m-00088B-0C for qemu-devel@nongnu.org; Mon, 16 Feb 2015 16:23:44 -0500 Received: from mx1.redhat.com ([209.132.183.28]:47355) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNT8l-000882-PN for qemu-devel@nongnu.org; Mon, 16 Feb 2015 16:23:39 -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 (8.14.4/8.14.4) with ESMTP id t1GLNcok009763 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Mon, 16 Feb 2015 16:23:38 -0500 From: =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= Date: Mon, 16 Feb 2015 22:23:06 +0100 Message-Id: <1424121788-24560-1-git-send-email-rkrcmar@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 0/2] vga: assert to "solve" qxl bug List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann This is a first step in untangling the vga initialization. [1/2] turns a runtime bug into a misconfiguration. [2/2] will catch the same bug. What would be nice to do, for starters: 1) propagate recoverable errors (we might want some kind of fallback, but never without notifying the highest relevant level.) 2) emit human-friendly messages 3) add setters to do (4)-(7) in a sane way 4) respect invalid user configurations (and abort) 5) remove duplicate variables 6) check numeric range of parameters 7) couple dependent variables by invariants (or, better, just don't mess with them everywhere) (Disclaimer: not on my TODO.) Radim Kr=C4=8Dm=C3=A1=C5=99 (2): vga: abort instead of shrinking memory qxl: surface0 and ram_header should fit into vram hw/display/qxl.c | 2 ++ hw/display/vga.c | 10 +++------- 2 files changed, 5 insertions(+), 7 deletions(-) --=20 2.3.0