From: Aurelien Jarno <aurelien@aurel32.net>
To: Alexander Graf <agraf@suse.de>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH 2/3] g3beige: add a video card only when requested
Date: Fri, 7 Sep 2012 22:45:02 +0200 [thread overview]
Message-ID: <20120907204502.GE6024@ohm.aurel32.net> (raw)
In-Reply-To: <852F16CD-A633-4EAD-915F-877CEBF4BCCD@suse.de>
On Fri, Sep 07, 2012 at 08:58:06PM +0200, Alexander Graf wrote:
>
>
> On 07.09.2012, at 17:27, Aurelien Jarno <aurelien@aurel32.net> wrote:
>
> > The g3beige machine always add a video card, even when the "-vga none"
> > is passed. Fix that by checking if it is enabled or not before
> > instanciating it.
> >
> > Cc: Alexander Graf <agraf@suse.de>
> > Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
> > ---
> > hw/ppc_oldworld.c | 4 +++-
> > 1 file changed, 3 insertions(+), 1 deletion(-)
> >
> > diff --git a/hw/ppc_oldworld.c b/hw/ppc_oldworld.c
> > index 1dcd8a6..363b0e5 100644
> > --- a/hw/ppc_oldworld.c
> > +++ b/hw/ppc_oldworld.c
> > @@ -250,7 +250,9 @@ static void ppc_heathrow_init (ram_addr_t ram_size,
> > pci_bus = pci_grackle_init(0xfec00000, pic,
> > get_system_memory(),
> > get_system_io());
> > - pci_vga_init(pci_bus);
> > + if (std_vga_enabled) {
> > + pci_vga_init(pci_bus);
>
> Shouldn't we try to have some generic function that can create any PCI VGA adapter for us? We might want to throw a cirrus or qxl one in a g3beige.
>
Other hardware supporting different videocard are using this kind of
code (a bit more complicated for PC as it allow the card to be on the
ISA or on the PCI bus):
| /* Optional PCI video card */
| if (cirrus_vga_enabled) {
| pci_cirrus_vga_init(pci_bus);
| } else if (vmsvga_enabled) {
| pci_vmsvga_init(pci_bus);
| } else if (std_vga_enabled) {
| pci_vga_init(pci_bus);
| }
--
Aurelien Jarno GPG: 1024D/F1BCDB73
aurelien@aurel32.net http://www.aurel32.net
next prev parent reply other threads:[~2012-09-07 20:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-07 15:27 [Qemu-devel] [PATCH 1/3] sun4u: add a video card only when requested Aurelien Jarno
2012-09-07 15:27 ` [Qemu-devel] [PATCH 2/3] g3beige: " Aurelien Jarno
2012-09-07 18:58 ` Alexander Graf
2012-09-07 20:45 ` Aurelien Jarno [this message]
2012-09-07 20:50 ` Alexander Graf
2012-09-07 20:55 ` Alexander Graf
2012-09-07 15:27 ` [Qemu-devel] [PATCH 3/3] mac99: " Aurelien Jarno
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=20120907204502.GE6024@ohm.aurel32.net \
--to=aurelien@aurel32.net \
--cc=agraf@suse.de \
--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).