Received: from eggs.gnu.org ([2001:4830:134:3::10]:42482) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCqoA-0003kf-3v for qemu-devel@nongnu.org; Wed, 08 Jul 2015 10:58:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZCqo9-0005hh-6G for qemu-devel@nongnu.org; Wed, 08 Jul 2015 10:58:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48452) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCqo9-0005hM-14 for qemu-devel@nongnu.org; Wed, 08 Jul 2015 10:58:45 -0400 Date: Wed, 8 Jul 2015 16:58:37 +0200 From: Igor Mammedov Message-ID: <20150708165837.62857513@igors-macbook-pro.local> In-Reply-To: References: <1436348808-223033-1-git-send-email-imammedo@redhat.com> <1436348808-223033-8-git-send-email-imammedo@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC v3 7/8] memory: extend memory_region_add_subregion() to support error reporting List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Paolo Bonzini , QEMU Developers , "Michael S. Tsirkin" On Wed, 8 Jul 2015 12:09:10 +0100 Peter Maydell wrote: > On 8 July 2015 at 10:46, Igor Mammedov wrote: > > extends memory_region_add_subregion() by adding Error** > > argument to allow t fail and return a error from it. > > > > Signed-off-by: Igor Mammedov > > 156 files changed, 619 insertions(+), 420 deletions(-) > > This is a seriously invasive API change and I don't > really like it -- reconfiguring the memory region > hierarchy should not be an operation which can fail > (especially not just adding a subregion!) > > -- PMM > I'll drop this patch in favor of dedicated memory_region_add_subregion_to_hva() API that can fail and return error.