]> git.proxmox.com Git - mirror_qemu.git/commit
pseries: allow setting stdout-path even on machines with a VGA
authorPaolo Bonzini <pbonzini@redhat.com>
Sat, 7 May 2022 05:48:26 +0000 (07:48 +0200)
committerDaniel Henrique Barboza <danielhb413@gmail.com>
Thu, 26 May 2022 20:11:32 +0000 (17:11 -0300)
commitf73eb9484bf07812db21de985cb9c1e4ad3c82a9
treec5f2d3f3b78c48d712b65ef1a512252be084ef6d
parent2417cbd5916d043e0c56408221fbe9935d0bc8da
pseries: allow setting stdout-path even on machines with a VGA

-machine graphics=off is the usual way to tell the firmware or the OS that the
user wants a serial console.  The pseries machine however does not support
this, and never adds the stdout-path node to the device tree if a VGA device
is provided.  This is in addition to the other magic behavior of VGA devices,
which is to add a keyboard and mouse to the default USB bus.

Split spapr->has_graphics in two variables so that the two behaviors can be
separated: the USB devices remains the same, but the stdout-path is added
even with "-device VGA -machine graphics=off".

Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20220507054826.124936-1-pbonzini@redhat.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
hw/ppc/spapr.c
include/hw/ppc/spapr.h