Received: from eggs.gnu.org ([2001:4830:134:3::10]:44579) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zwxn3-0007sB-DZ for qemu-devel@nongnu.org; Thu, 12 Nov 2015 14:44:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zwxn0-0000Ik-ME for qemu-devel@nongnu.org; Thu, 12 Nov 2015 14:44:13 -0500 Received: from mx1.redhat.com ([209.132.183.28]:60121) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zwxn0-0000Ie-Gr for qemu-devel@nongnu.org; Thu, 12 Nov 2015 14:44:10 -0500 Date: Thu, 12 Nov 2015 17:44:02 -0200 From: Eduardo Habkost Message-ID: <20151112194402.GP4180@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: <5644605C.2070802@redhat.com> 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: Paolo Bonzini Cc: Blue Swirl , Michael Walle , Mark Cave-Ayland , qemu-devel@nongnu.org On Thu, Nov 12, 2015 at 10:48:12AM +0100, 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? I can, but I would like to clarify the expected semantics. With the -machine option, we would have: * -display, which affects only the display UI. * -nographic, which affects: * The display UI; * Hardware emulation; * serial/paralllel/virtioconsole output redirection. * -machine graphics=no, which would affect only hardware emulation. Is that correct? -- Eduardo