qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Anthoine Bourgeois <anthoine.bourgeois@gmail.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>, qemu-devel@nongnu.org
Subject: Re: [PATCH v2 1/2] virtio-vga: fix virtio-vga bar ordering
Date: Thu, 23 Apr 2020 08:52:58 -0400	[thread overview]
Message-ID: <20200423085202-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <20200422215455.10244-1-anthoine.bourgeois@gmail.com>

On Wed, Apr 22, 2020 at 11:54:54PM +0200, Anthoine Bourgeois wrote:
> With virtio-vga, pci bar are reordered. Bar #2 is used for compatibility
> with stdvga. By default, bar #2 is used by virtio modern io bar.
> This bar is the last one introduce in the virtio pci bar layout and it's
> crushed by the virtio-vga reordering. So virtio-vga and
> modern-pio-notify are incompatible because virtio-vga failed to
> initialize with this option.
> 
> This fix sets the modern io bar to the bar #5 to avoid conflict.
> 
> Signed-off-by: Anthoine Bourgeois <anthoine.bourgeois@gmail.com>

Gerd, would you say it's required for 5.0?

> ---
>  hw/display/virtio-vga.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/hw/display/virtio-vga.c b/hw/display/virtio-vga.c
> index 2b4c2aa126..95757a6619 100644
> --- a/hw/display/virtio-vga.c
> +++ b/hw/display/virtio-vga.c
> @@ -114,6 +114,7 @@ static void virtio_vga_base_realize(VirtIOPCIProxy *vpci_dev, Error **errp)
>       */
>      vpci_dev->modern_mem_bar_idx = 2;
>      vpci_dev->msix_bar_idx = 4;
> +    vpci_dev->modern_io_bar_idx = 5;
>  
>      if (!(vpci_dev->flags & VIRTIO_PCI_FLAG_PAGE_PER_VQ)) {
>          /*
> -- 
> 2.20.1



  parent reply	other threads:[~2020-04-23 12:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-22 21:54 [PATCH v2 1/2] virtio-vga: fix virtio-vga bar ordering Anthoine Bourgeois
2020-04-22 21:54 ` [PATCH v2 2/2] virtio-pci: update virtio pci bar layout documentation Anthoine Bourgeois
2020-04-23 11:32   ` Gerd Hoffmann
2020-04-23 11:31 ` [PATCH v2 1/2] virtio-vga: fix virtio-vga bar ordering Gerd Hoffmann
2020-04-23 12:52 ` Michael S. Tsirkin [this message]
2020-04-23 14:03   ` Gerd Hoffmann

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=20200423085202-mutt-send-email-mst@kernel.org \
    --to=mst@redhat.com \
    --cc=anthoine.bourgeois@gmail.com \
    --cc=kraxel@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).