From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57358) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLa6H-0007O1-Ey for qemu-devel@nongnu.org; Mon, 16 Sep 2013 10:48:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VLa65-0005vJ-Mo for qemu-devel@nongnu.org; Mon, 16 Sep 2013 10:48:29 -0400 Received: from mail-ea0-x22f.google.com ([2a00:1450:4013:c01::22f]:41217) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLa65-0005vC-Fn for qemu-devel@nongnu.org; Mon, 16 Sep 2013 10:48:17 -0400 Received: by mail-ea0-f175.google.com with SMTP id m14so2083895eaj.34 for ; Mon, 16 Sep 2013 07:48:16 -0700 (PDT) Message-ID: <1379342904.17705.69.camel@localhost.localdomain> From: Marcel Apfelbaum Date: Mon, 16 Sep 2013 17:48:24 +0300 Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [Question] memory: AddressSpace backed by single IO MemoryRegion Reply-To: marcel.a@redhat.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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