Received: from eggs.gnu.org ([2001:4830:134:3::10]:44362) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZxG2s-0005Px-PX for qemu-devel@nongnu.org; Fri, 13 Nov 2015 10:13:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZxG2o-00020Y-Oc for qemu-devel@nongnu.org; Fri, 13 Nov 2015 10:13:46 -0500 Received: from mx1.redhat.com ([209.132.183.28]:56369) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZxG2o-00020P-Iz for qemu-devel@nongnu.org; Fri, 13 Nov 2015 10:13:42 -0500 Date: Fri, 13 Nov 2015 13:13:31 -0200 From: Eduardo Habkost Message-ID: <20151113151331.GR4180@thinpad.lan.raisama.net> References: <1447268956-27500-1-git-send-email-ehabkost@redhat.com> <1447268956-27500-10-git-send-email-ehabkost@redhat.com> <5644605C.2070802@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH 09/12] vl: Replace DT_NOGRAPHIC with MachineState field List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Blue Swirl , Paolo Bonzini , Michael Walle , Mark Cave-Ayland , QEMU Developers On Fri, Nov 13, 2015 at 11:49:33AM +0000, Peter Maydell wrote: > On 12 November 2015 at 09:48, Paolo Bonzini wrote: > > > > > > On 11/11/2015 20:09, Eduardo Habkost wrote: > >> All DisplayType values are just UI options that don't affect any > >> hardware emulation code, except for DT_NOGRAPHIC. Replace > >> DT_NOGRAPHIC with DT_NONE plus a new MachineState.nographic > >> field, so hardware emulation code don't need to use the > >> display_type variable. > >> > >> Cc: Michael Walle > >> Cc: Blue Swirl > >> Cc: Mark Cave-Ayland > >> Signed-off-by: Eduardo Habkost > > > > Can you add a QOM property too, so that "-machine graphics=yes|no" can > > be used? > > We already have both '-nographic' and '-display none'. -display none is not a way to turn off graphics hardware emulation, it is just a way to control QEMU's GUI. > I think adding yet another way to turn off graphics which isn't > the same as either of our existing command line options would > worsen this confusion... I blame the confusion on the fact that "-nographic" does too much (it affects hardware emulation, QEMU's GUI, and device output redirection at the same time). -- Eduardo