All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Jeff Cody <jcody@redhat.com>
Cc: qemu-devel@nongnu.org, pbonzini@redhat.com, aik@ozlabs.ru,
	alex.williamson@redhat.com
Subject: Re: [Qemu-devel] PCI regression in 2.9
Date: Tue, 4 Apr 2017 18:31:55 +0300	[thread overview]
Message-ID: <20170404183125-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <20170404153013.GQ15423@localhost.localdomain>

On Tue, Apr 04, 2017 at 11:30:13AM -0400, Jeff Cody wrote:
> 
> I ran into this while running qemu iotests, and it looks like it is a
> regression from 2.8.
> 
> Here is the reproducer:
> 
> $ ./x86_64-softmmu/qemu-system-x86_64 -drive if=virtio
> qemu-system-x86_64: qemu-kvm/memory.c:2078: memory_region_del_subregion: Assertion `subregion->container == mr' failed
> Aborted (core dumped)
> 
> The proper output is (with no abort):
> qemu-system-x86_64: -drive if=virtio: Device needs media, but drive is empty
> 
> I bisected it down to this commit:
> 
> commit c53598ed18e40a9609573b21f2a361221ca0f806
> Author: Alexey Kardashevskiy <aik@ozlabs.ru>
> Date:   Mon Mar 27 15:40:30 2017 +1100
> 
>     pci: Add missing drop of bus master AS reference
>     
>     The recent introduction of a bus master container added
>     memory_region_add_subregion() into the PCI device registering path but
>     missed memory_region_del_subregion() in the unregistering path leaving
>     a reference to the root memory region of the new container.
>     
>     This adds missing memory_region_del_subregion().
>     
>     Fixes: 3716d5902d743 ("pci: introduce a bus master container")
>     Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
>     Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
>     Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
>     Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>


Thanks for the report. I'm preparing a pull request with a fix,
will copy you so you can test.

Thanks!

-- 
MST

      reply	other threads:[~2017-04-04 15:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-04 15:30 [Qemu-devel] PCI regression in 2.9 Jeff Cody
2017-04-04 15:31 ` Michael S. Tsirkin [this message]

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=20170404183125-mutt-send-email-mst@kernel.org \
    --to=mst@redhat.com \
    --cc=aik@ozlabs.ru \
    --cc=alex.williamson@redhat.com \
    --cc=jcody@redhat.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.