qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] -vga std vs. -device VGA
@ 2013-11-14  5:01 Alexey Kardashevskiy
  2013-11-14  6:01 ` Benjamin Herrenschmidt
  2013-11-14 13:11 ` Eric Blake
  0 siblings, 2 replies; 20+ messages in thread
From: Alexey Kardashevskiy @ 2013-11-14  5:01 UTC (permalink / raw)
  To: qemu-devel@nongnu.org, qemu-ppc@nongnu.org
  Cc: Paul Mackerras, Alex Graf, Nikunj A Dadhania, Avik Sil

Hi everyone.

Here is a problem with the SPAPR machine and a libvirt's habit to use
"-nodefaults".

When we run QEMU with "-vga std", a VGA device is created from the
machine_init callback and if VGA is added, then we automatically add a PCI
USB OHCI adapter with a keyboard and everybody (SLOF, yaboot, guest kernel)
is happy - there are both input and output devices.

However libvirt uses "-device VGA" to create a VGA device. In this case the
actual VGA device is created in vl.c and we (SPAPR) do not have control
over this process so we do not automatically create anything in addition to
VGA. As a result, yaboot fails as there is no input device.

x86 creates a whole bunch of various devices including a keyboard
controller (i8042) even with "-nodefaults" but this is not true for SPAPR.

Since we (POWERPC folks) want everything to work as close to x86 as
possible, we need to do something about it :)

So the question is - is there any proper (i. e. qemu-upstreamable) way to
detect a VGA device presence and create additional devices (OHCI, keyboard,
mouse) as "-vga" does it now? The machine reset callback is too late for that.

Or we should just print an error (in QEMU or SLOF) and do nothing and let
the user configure all required devices in libvirt?


-- 
Alexey

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2013-11-15 16:44 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-14  5:01 [Qemu-devel] -vga std vs. -device VGA Alexey Kardashevskiy
2013-11-14  6:01 ` Benjamin Herrenschmidt
2013-11-14  9:37   ` Alexey Kardashevskiy
2013-11-14 13:04     ` Alexander Graf
2013-11-14 20:28       ` Benjamin Herrenschmidt
2013-11-14 20:49         ` Peter Maydell
2013-11-14 22:23         ` Alexander Graf
2013-11-14 22:32           ` Benjamin Herrenschmidt
2013-11-14 22:41             ` Alexander Graf
2013-11-14 22:45               ` Anthony Liguori
2013-11-15 12:04                 ` Paolo Bonzini
2013-11-15 16:43                   ` Alexey Kardashevskiy
2013-11-14 22:46             ` Anthony Liguori
2013-11-14 23:03             ` Peter Maydell
2013-11-14 23:31               ` Benjamin Herrenschmidt
2013-11-15  1:25               ` Alexey Kardashevskiy
2013-11-15  4:28                 ` Alexander Graf
2013-11-15  9:23                   ` Markus Armbruster
2013-11-14 13:11 ` Eric Blake
2013-11-15 12:08   ` Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).