From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44845) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Utkxb-00046F-8X for qemu-devel@nongnu.org; Mon, 01 Jul 2013 16:44:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UtkxV-0003JJ-Ik for qemu-devel@nongnu.org; Mon, 01 Jul 2013 16:44:31 -0400 Received: from mx1.redhat.com ([209.132.183.28]:25936) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UtkxV-0003Iu-89 for qemu-devel@nongnu.org; Mon, 01 Jul 2013 16:44:25 -0400 Message-ID: <51D1EA22.2020609@redhat.com> Date: Mon, 01 Jul 2013 22:44:18 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1372438702-20491-1-git-send-email-pbonzini@redhat.com> <1372438702-20491-11-git-send-email-pbonzini@redhat.com> <51D1CBC4.70903@siemens.com> In-Reply-To: <51D1CBC4.70903@siemens.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 10/11] exec: reorganize address_space_map List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: "peter.maydell@linaro.org" , "qemu-devel@nongnu.org" Il 01/07/2013 20:34, Jan Kiszka ha scritto: > The transformation looks correct, but I'm currently not understanding in > which cases we still need the loop. address_space_translate should > return as much of the target mr as the region can contiguously provide, no? You could have separate sections if, for example, two consecutive ranges map to contiguous sections but one is read-only and one is read-write. Paolo