qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: marcel.a@redhat.com
Cc: qemu-devel@nongnu.org, Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
Subject: Re: [Qemu-devel] [Question] memory: AddressSpace backed by single IO MemoryRegion
Date: Mon, 16 Sep 2013 16:52:53 +0200	[thread overview]
Message-ID: <52371B45.8000508@redhat.com> (raw)
In-Reply-To: <1379342904.17705.69.camel@localhost.localdomain>

Il 16/09/2013 16:48, Marcel Apfelbaum ha scritto:
> Hi all,
> 
> I have an AddressSpace backed by a single MemoryRegion which is
> initiated using memory_region_init_io (has ops).
> Once I enable it, I get an assertion:
>     exec.c:806: register_subpage: Assertion `existing->mr->subpage || existing->mr == &io_mem_unassigned' failed.
> 
> 
> Here is the pseudo-code:
>     memory_region_init_io(my_reg, owner, my_ops, my_obj, "my region", INT64_MAX);
>     memory_region_set_enabled(my_reg, false);
>     address_space_init(my_as, my_reg, name);
>     memory_region_set_enabled(my_reg, true);
> Receives:
>     exec.c:806: register_subpage: Assertion `existing->mr->subpage || existing->mr == &io_mem_unassigned' failed.
> 
> Any idea why? Any suggestion would be appreciated.

Backtrace, and print of local variables in mem_add?

Paolo

  reply	other threads:[~2013-09-16 14:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-16 14:48 [Qemu-devel] [Question] memory: AddressSpace backed by single IO MemoryRegion Marcel Apfelbaum
2013-09-16 14:52 ` Paolo Bonzini [this message]
2013-09-16 15:27   ` Marcel Apfelbaum
2013-09-16 17:11   ` Marcel Apfelbaum
2013-09-16 17:18     ` Paolo Bonzini
2013-09-16 17:26       ` Marcel Apfelbaum
2013-09-17  8:29       ` Peter Maydell
2013-09-18 15:43         ` Paolo Bonzini

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=52371B45.8000508@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=marcel.a@redhat.com \
    --cc=marcel.apfelbaum@gmail.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).