qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Aurelien Jarno <aurelien@aurel32.net>
To: Alexander Graf <agraf@suse.de>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
	Richard Henderson <rth@twiddle.net>
Subject: Re: [Qemu-devel] [PATCH 05/12] alpha: use the new pci_vga_init() function
Date: Sat, 8 Sep 2012 16:57:03 +0200	[thread overview]
Message-ID: <20120908145703.GG6024@ohm.aurel32.net> (raw)
In-Reply-To: <E382B2E6-39DF-4A4F-B6AB-B908F2E156D7@suse.de>

On Sat, Sep 08, 2012 at 04:47:43PM +0200, Alexander Graf wrote:
> 
> 
> On 08.09.2012, at 13:26, Aurelien Jarno <aurelien@aurel32.net> wrote:
> 
> > This remove the fallback to std-vga in case, as availability of the
> > requested vga device is now tested in vl.c, and returns an error message
> > to the user.
> > 
> > Cc: Richard Henderson <rth@twiddle.net>
> > Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
> > ---
> > hw/alpha_dp264.c |    2 +-
> > hw/alpha_pci.c   |   24 ------------------------
> > hw/alpha_sys.h   |    2 --
> > 3 files changed, 1 insertion(+), 27 deletions(-)
> > 
> > diff --git a/hw/alpha_dp264.c b/hw/alpha_dp264.c
> > index 9eb939f..5ea04c7 100644
> > --- a/hw/alpha_dp264.c
> > +++ b/hw/alpha_dp264.c
> > @@ -77,7 +77,7 @@ static void clipper_init(ram_addr_t ram_size,
> >     isa_create_simple(isa_bus, "i8042");
> > 
> >     /* VGA setup.  Don't bother loading the bios.  */
> > -    alpha_pci_vga_setup(pci_bus);
> > +    pci_vga_init(pci_bus);
> > 
> >     /* Serial code setup.  */
> >     for (i = 0; i < MAX_SERIAL_PORTS; ++i) {
> > diff --git a/hw/alpha_pci.c b/hw/alpha_pci.c
> > index 0352e72..8079a46 100644
> > --- a/hw/alpha_pci.c
> > +++ b/hw/alpha_pci.c
> > @@ -10,8 +10,6 @@
> > #include "alpha_sys.h"
> > #include "qemu-log.h"
> > #include "sysemu.h"
> > -#include "vmware_vga.h"
> > -#include "vga-pci.h"
> > 
> > 
> > /* PCI IO reads/writes, to byte-word addressable memory.  */
> > @@ -109,25 +107,3 @@ const MemoryRegionOps alpha_pci_iack_ops = {
> >         .max_access_size = 4,
> >     },
> > };
> > -\f

> > -void alpha_pci_vga_setup(PCIBus *pci_bus)
> > -{
> > -    switch (vga_interface_type) {
> > -#ifdef CONFIG_SPICE
> > -    case VGA_QXL:
> > -        pci_create_simple(pci_bus, -1, "qxl-vga");
> > -        return;
> > -#endif
> > -    case VGA_CIRRUS:
> > -        pci_cirrus_vga_init(pci_bus);
> > -        return;
> > -    case VGA_VMWARE:
> > -        pci_vmsvga_init(pci_bus);
> > -        return;
> > -    }
> > -    /* If VGA is enabled at all, and one of the above didn't work, then
> > -       fallback to Standard VGA.  */
> > -    if (vga_interface_type != VGA_NONE) {
> > -        pci_std_vga_init(pci_bus);
> > -    }
> 
> You're removing the fallback logic here, no?
> 

Yes, because the availability of the other type is now checked in vl.c
so that pci_vga_init() is able to create the requested card. That way
the users get an error message instead of having a card different to what
they request.

-- 
Aurelien Jarno                          GPG: 1024D/F1BCDB73
aurelien@aurel32.net                 http://www.aurel32.net

  reply	other threads:[~2012-09-08 14:57 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-08 11:26 [Qemu-devel] [PATCH 00/12] Rework PCI video card initialization Aurelien Jarno
2012-09-08 11:26 ` [Qemu-devel] [PATCH 01/12] vga: rename pci_vga_init() into pci_std_vga_init() Aurelien Jarno
2012-09-08 12:33   ` Blue Swirl
2012-09-08 12:35   ` Andreas Färber
2012-09-08 11:26 ` [Qemu-devel] [PATCH 02/12] vl.c: check for qxl availability Aurelien Jarno
2012-09-08 12:40   ` Andreas Färber
2012-09-08 11:26 ` [Qemu-devel] [PATCH 03/12] pci: add a pci_vga_init() function Aurelien Jarno
2012-09-08 11:26 ` [Qemu-devel] [PATCH 04/12] mips/malta: use the new " Aurelien Jarno
2012-09-08 11:26 ` [Qemu-devel] [PATCH 05/12] alpha: " Aurelien Jarno
2012-09-08 14:47   ` Alexander Graf
2012-09-08 14:57     ` Aurelien Jarno [this message]
2012-09-08 15:00       ` Alexander Graf
2012-09-08 15:04         ` Alexander Graf
2012-09-10 15:56   ` Richard Henderson
2012-09-08 11:26 ` [Qemu-devel] [PATCH 06/12] ppc/newworld: " Aurelien Jarno
2012-09-08 11:26 ` [Qemu-devel] [PATCH 07/12] ppc/oldworld: " Aurelien Jarno
2012-09-08 11:26 ` [Qemu-devel] [PATCH 08/12] ppc/prep: " Aurelien Jarno
2012-09-08 12:50   ` Andreas Färber
2012-09-08 11:26 ` [Qemu-devel] [PATCH 09/12] ppc/pSeries: " Aurelien Jarno
2012-09-08 11:26 ` [Qemu-devel] [PATCH 10/12] sun/sun4u: " Aurelien Jarno
2012-09-08 12:32   ` Blue Swirl
2012-09-08 11:26 ` [Qemu-devel] [PATCH 11/12] pc: " Aurelien Jarno
2012-09-08 12:35   ` Blue Swirl
2012-09-08 11:26 ` [Qemu-devel] [PATCH 12/12] vga: cleanup after pci_vga_init() conversion Aurelien Jarno
2012-09-08 14:53 ` [Qemu-devel] [PATCH 00/12] Rework PCI video card initialization Alexander Graf

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=20120908145703.GG6024@ohm.aurel32.net \
    --to=aurelien@aurel32.net \
    --cc=agraf@suse.de \
    --cc=qemu-devel@nongnu.org \
    --cc=rth@twiddle.net \
    /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).