qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Huth <huth@tuxfamily.org>
To: BALATON Zoltan <balaton@eik.bme.hu>
Cc: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] hw/sparc64: Create VGA device only if it has really been requested
Date: Tue, 18 Dec 2018 21:26:14 +0100	[thread overview]
Message-ID: <20181218212614.385f4b5b@thl530> (raw)
In-Reply-To: <alpine.BSF.2.21.9999.1812171247380.61996@zero.eik.bme.hu>

Am Mon, 17 Dec 2018 12:48:31 +0100 (CET)
schrieb BALATON Zoltan <balaton@eik.bme.hu>:

> On Sun, 16 Dec 2018, Thomas Huth wrote:
> > The sun4u/sun4v machine currently always creates a VGA device, even
> > if the user started QEMU with "-nodefaults" or "-vga none". That's
> > likely not what the users expect in this case, so add a check
> > whether the VGA adapter has really been requested.
> >
> > Signed-off-by: Thomas Huth <huth@tuxfamily.org>
> > ---
> > hw/sparc64/sun4u.c | 10 +++++++++-
> > 1 file changed, 9 insertions(+), 1 deletion(-)
> >
> > diff --git a/hw/sparc64/sun4u.c b/hw/sparc64/sun4u.c
> > index f76b19e4e9..ce7236c322 100644
> > --- a/hw/sparc64/sun4u.c
> > +++ b/hw/sparc64/sun4u.c
> > @@ -596,7 +596,15 @@ static void sun4uv_init(MemoryRegion
> > *address_space_mem, qdev_connect_gpio_out_named(DEVICE(ebus),
> > "isa-irq", 4, qdev_get_gpio_in_named(DEVICE(sabre), "pbm-irq",
> > OBIO_SER_IRQ));
> >
> > -    pci_dev = pci_create_simple(pci_busA, PCI_DEVFN(2, 0), "VGA");
> > +    switch (vga_interface_type) {
> > +    case VGA_STD:
> > +        pci_create_simple(pci_busA, PCI_DEVFN(2, 0), "VGA");
> > +        break;
> > +    case VGA_NONE:
> > +        break;
> > +    default:
> > +       abort();   /* Should not happen - types are checked in vl.c
> > already */  
> 
> Can't comment on the actual patch but looks like a whitespace is
> missing here.

Oops. Mark, can you fix it up when applying the patch (if you don't
object it)? Or shall I resend?

By the way, would it make sense to enable virtio-vga for the sun4u
machines, too?

 Thomas

  reply	other threads:[~2018-12-18 20:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-16 21:52 [Qemu-devel] [PATCH] hw/sparc64: Create VGA device only if it has really been requested Thomas Huth
2018-12-17 11:48 ` BALATON Zoltan
2018-12-18 20:26   ` Thomas Huth [this message]
2018-12-19 12:23     ` Mark Cave-Ayland
2018-12-19 18:36       ` Thomas Huth

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=20181218212614.385f4b5b@thl530 \
    --to=huth@tuxfamily.org \
    --cc=balaton@eik.bme.hu \
    --cc=mark.cave-ayland@ilande.co.uk \
    --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).