From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59649) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z58U7-0001s4-GD for qemu-devel@nongnu.org; Wed, 17 Jun 2015 04:14:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z58U3-0002se-BZ for qemu-devel@nongnu.org; Wed, 17 Jun 2015 04:14:11 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40777) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z58U3-0002sW-6m for qemu-devel@nongnu.org; Wed, 17 Jun 2015 04:14:07 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id EACDEB8BB8 for ; Wed, 17 Jun 2015 08:14:06 +0000 (UTC) Message-ID: <55812C48.50607@redhat.com> Date: Wed, 17 Jun 2015 10:14:00 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1433776757-61958-1-git-send-email-imammedo@redhat.com> <1433776757-61958-4-git-send-email-imammedo@redhat.com> <5575B58B.50105@redhat.com> <20150608181314.3ab8fc80@nial.brq.redhat.com> <20150608182206-mutt-send-email-mst@redhat.com> <5575CB9F.4060807@redhat.com> <20150609120855.7e19c588@nial.brq.redhat.com> In-Reply-To: <20150609120855.7e19c588@nial.brq.redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC v2 3/6] memory: support unmapping of MemoryRegion mapped into HVA parent List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Mammedov Cc: qemu-devel@nongnu.org, "Michael S. Tsirkin" On 09/06/2015 12:08, Igor Mammedov wrote: > > 3. until #2 is done we can't allow to map another memory region in > current flatview at the same range, hence need to keep list of > still active HVA ranges so we could check at memory_region_add_subregion() > time that new mapping is allowed. => adding "Error **errp" > to memory_region_add_subregion() for reporting fail. No, we cannot do that. memory_region_add_subregion cannot fail. The RCU mechanism is transparent. Paolo