From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43312) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLcZC-00024y-BZ for qemu-devel@nongnu.org; Mon, 16 Sep 2013 13:26:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VLcZ5-0007FK-Tx for qemu-devel@nongnu.org; Mon, 16 Sep 2013 13:26:30 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55485) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLcZ5-0007FF-LG for qemu-devel@nongnu.org; Mon, 16 Sep 2013 13:26:23 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r8GHQN78025882 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 16 Sep 2013 13:26:23 -0400 Message-ID: <1379352391.17705.79.camel@localhost.localdomain> From: Marcel Apfelbaum Date: Mon, 16 Sep 2013 20:26:31 +0300 In-Reply-To: <52373D5A.2050004@redhat.com> References: <1379342904.17705.69.camel@localhost.localdomain> <52371B45.8000508@redhat.com> <1379351503.17705.77.camel@localhost.localdomain> <52373D5A.2050004@redhat.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit 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 On Mon, 2013-09-16 at 19:18 +0200, Paolo Bonzini wrote: > Il 16/09/2013 19:11, Marcel Apfelbaum ha scritto: > >> > memory_region_init_io(my_reg, owner, my_ops, my_obj, "my region", INT64_MAX); > > This is 2^63-1, not 2^64-1. You need UINT64_MAX here. Ooops! Thanks a lot and sorry for the trouble! Marcel > > Paolo > > >> > memory_region_set_enabled(my_reg, false); > >> > address_space_init(my_as, my_reg, name); > >> > memory_region_set_enabled(my_reg, true); > >