[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] -vga std vs. -device VGA

From: Alexey Kardashevskiy
Subject: [Qemu-devel] -vga std vs. -device VGA
Date: Thu, 14 Nov 2013 16:01:09 +1100
User-agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0

Hi everyone.

Here is a problem with the SPAPR machine and a libvirt's habit to use

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?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]