From: Marcel Apfelbaum <marcel.a@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
"marcel.a@redhat.com" <marcel.a@redhat.com>
Subject: Re: [Qemu-devel] [Question] memory: AddressSpace backed by single IO MemoryRegion
Date: Mon, 16 Sep 2013 18:27:59 +0300 [thread overview]
Message-ID: <CAC_L=vUQTQBrYXjPWN8XZKgPy2k56G6a91KKKNfa0H31HLDdhA@mail.gmail.com> (raw)
In-Reply-To: <52371B45.8000508@redhat.com>
On Monday, September 16, 2013, Paolo Bonzini <pbonzini@redhat.com> wrote:
> Il 16/09/2013 16:48, Marcel Apfelbaum ha scritto:
>> Hi all,
>>
>> I have an AddressSpace backed by a single MemoryRegion which yis
>> initiated using memoy_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?
>
Sure! I will send tonight!
Thanks,
Marcel
> Paolo
>
next prev parent reply other threads:[~2013-09-16 15:28 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
2013-09-16 15:27 ` Marcel Apfelbaum [this message]
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='CAC_L=vUQTQBrYXjPWN8XZKgPy2k56G6a91KKKNfa0H31HLDdhA@mail.gmail.com' \
--to=marcel.a@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 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).