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 <mich...@walle.cc> > > Cc: Blue Swirl <blauwir...@gmail.com> > > Cc: Mark Cave-Ayland <mark.cave-ayl...@ilande.co.uk> > > Signed-off-by: Eduardo Habkost <ehabk...@redhat.com> > > 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