All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [Question] memory: AddressSpace backed by single IO MemoryRegion
Date: Mon, 16 Sep 2013 17:48:24 +0300	[thread overview]
Message-ID: <1379342904.17705.69.camel@localhost.localdomain> (raw)

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.
Thanks,
Marcel

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

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-16 14:48 Marcel Apfelbaum [this message]
2013-09-16 14:52 ` [Qemu-devel] [Question] memory: AddressSpace backed by single IO MemoryRegion Paolo Bonzini
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=1379342904.17705.69.camel@localhost.localdomain \
    --to=marcel.apfelbaum@gmail.com \
    --cc=marcel.a@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.