From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40838) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLcRC-0008S2-A5 for qemu-devel@nongnu.org; Mon, 16 Sep 2013 13:18:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VLcR6-0004lR-AZ for qemu-devel@nongnu.org; Mon, 16 Sep 2013 13:18:14 -0400 Received: from mx1.redhat.com ([209.132.183.28]:25578) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLcR6-0004lL-2A for qemu-devel@nongnu.org; Mon, 16 Sep 2013 13:18:08 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r8GHI7sD023588 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 16 Sep 2013 13:18:07 -0400 Message-ID: <52373D5A.2050004@redhat.com> Date: Mon, 16 Sep 2013 19:18:18 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1379342904.17705.69.camel@localhost.localdomain> <52371B45.8000508@redhat.com> <1379351503.17705.77.camel@localhost.localdomain> In-Reply-To: <1379351503.17705.77.camel@localhost.localdomain> Content-Type: text/plain; charset=UTF-8 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: Marcel Apfelbaum Cc: qemu-devel@nongnu.org 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. Paolo >> > memory_region_set_enabled(my_reg, false); >> > address_space_init(my_as, my_reg, name); >> > memory_region_set_enabled(my_reg, true);