From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: Alexander Graf <agraf@suse.de>,
qemu-devel@nongnu.org, kvm-ppc@vger.kernel.org,
David Gibson <dwg@au1.ibm.com>
Subject: Re: [Qemu-devel] [PATCH] spapr: Add support for -vga option
Date: Thu, 15 Dec 2011 07:04:42 +1100 [thread overview]
Message-ID: <1323893082.21839.20.camel@pasglop> (raw)
In-Reply-To: <4EE8C123.2090902@redhat.com>
On Wed, 2011-12-14 at 16:30 +0100, Paolo Bonzini wrote:
> On 12/14/2011 10:22 AM, Benjamin Herrenschmidt wrote:
> > of course you can use -device
> > to manually instanciate individual devices.
>
> That's true, however...
>
> > @@ -563,7 +568,9 @@ static void spapr_finalize_fdt(sPAPREnvironment *spapr,
> > }
> > }
> >
> > - spapr_populate_chosen_stdout(fdt, spapr->vio_bus);
> > + if (!spapr_has_graphics) {
> > + spapr_populate_chosen_stdout(fdt, spapr->vio_bus);
> > + }
> >
> > _FDT((fdt_pack(fdt)));
> >
>
> ... the stdout-path would still point to the serial console. Can that
> be fixed somehow?
That's hard. We don't want to change it unless there is both a video
card and a keyboard and even then...
Ideally we'd want a way to specifiy what the stdout path is to qemu but
I don't see any clean way to do so.
Another option would be to remove setting of stdout path from qemu
completely and instead set it entirely in SLOF.
The problem with that is that we also have this thing where SLOF (and
the kenrel low level debug when enabled) output to hvterm 0, which we
"magically" route to the same hvterm that we chose for stdout-path in
qemu so things remain consistent.
I suppose a way to solve that would be to not set stdout path but
instead a different property (qemu,default-hvterm) which SLOF can use as
part of its algorithm to select a default console.
This wouldn't be ideal for non-SLOF boots (-kernel) but then I've been
thinking about getting rid of that feature anyway (always use SLOF, just
pass it the kernel image someway) since we want SLOF to setup the PCI
BARs (and now to initialize the video card) etc...
In any case, I'd like to do those changes as a separate patch on top of
this one which doesn't introduce a regression from what is there today.
At which point I can synchronize the SLOF and qemu updates.
(Note the patch I posted applies on top of David's internal -next
branch, it may not apply on top of what's out there today, David will
sort things out for me I expect :-)
Cheers,
Ben.
next prev parent reply other threads:[~2011-12-14 20:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-14 9:22 [Qemu-devel] [PATCH] spapr: Add support for -vga option Benjamin Herrenschmidt
2011-12-14 15:30 ` Paolo Bonzini
2011-12-14 20:04 ` Benjamin Herrenschmidt [this message]
2011-12-14 21:48 ` Anthony Liguori
2011-12-15 0:00 ` Benjamin Herrenschmidt
2011-12-15 0:10 ` Anthony Liguori
2011-12-23 5:36 ` Benjamin Herrenschmidt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1323893082.21839.20.camel@pasglop \
--to=benh@kernel.crashing.org \
--cc=agraf@suse.de \
--cc=dwg@au1.ibm.com \
--cc=kvm-ppc@vger.kernel.org \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).