From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40719) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLaiY-0000d3-Ol for qemu-devel@nongnu.org; Mon, 16 Sep 2013 11:28:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VLaiW-0002VC-Uk for qemu-devel@nongnu.org; Mon, 16 Sep 2013 11:28:02 -0400 Received: from mail-lb0-x22b.google.com ([2a00:1450:4010:c04::22b]:46554) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLaiW-0002V5-Lg for qemu-devel@nongnu.org; Mon, 16 Sep 2013 11:28:00 -0400 Received: by mail-lb0-f171.google.com with SMTP id u14so4316364lbd.16 for ; Mon, 16 Sep 2013 08:27:59 -0700 (PDT) MIME-Version: 1.0 Sender: marcel.apfelbaum@gmail.com In-Reply-To: <52371B45.8000508@redhat.com> References: <1379342904.17705.69.camel@localhost.localdomain> <52371B45.8000508@redhat.com> Date: Mon, 16 Sep 2013 18:27:59 +0300 Message-ID: From: Marcel Apfelbaum Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [Question] memory: AddressSpace backed by single IO MemoryRegion List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: "qemu-devel@nongnu.org" , "marcel.a@redhat.com" On Monday, September 16, 2013, Paolo Bonzini 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: >> =A0 =A0 exec.c:806: register_subpage: Assertion `existing->mr->subpage |= | existing->mr =3D=3D &io_mem_unassigned' failed. >> >> >> Here is the pseudo-code: >> =A0 =A0 memory_region_init_io(my_reg, owner, my_ops, my_obj, "my region"= , INT64_MAX); >> =A0 =A0 memory_region_set_enabled(my_reg, false); >> =A0 =A0 address_space_init(my_as, my_reg, name); >> =A0 =A0 memory_region_set_enabled(my_reg, true); >> Receives: >> =A0 =A0 exec.c:806: register_subpage: Assertion `existing->mr->subpage |= | existing->mr =3D=3D &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 >