Paolo Bonzini <pbonz...@redhat.com> writes: >> > 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.
Like usb=, this is a request to board code to enable/disable an optional component. >> Is that correct? > > Yes. In the case of PC, it might also add "-device sga" unless -nodefaults > (or "-device sga") is specified. But that's left for later. I figure -nographic should then set -machine graphic=no to do its hardware emulation part.