Received: by 2002:adf:ef42:0:0:0:0:0 with SMTP id c2csp3223432wrp; Mon, 23 Sep 2019 16:11:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqyf5dEtF8wJZgltQd57TUo84ebS9bbMR03IzelMmtQvqOFAQM06r9x5pUOdNU+wQ9boPt9t X-Received: by 2002:a50:87ca:: with SMTP id 10mr2670324edz.77.1569280273600; Mon, 23 Sep 2019 16:11:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569280273; cv=none; d=google.com; s=arc-20160816; b=sgVOjc+3vxu2Ucudjmr6EQ0AyBDgnaK9h+ANrzcdelC+xI1d0UU4GADF+83zFO6/Tq ykedifwsV0SyRwxKOa13qC9K40Koklv68JRuo1HlYrnd+r8lVuIM5dzIkDkpW7OKN86w ypVnxuFlqZ/SnnV086G8S6m00YfCASuUGntMn+hdtTH5krdM11Wxumpwa1QblHD/XVA/ artVsdifsD2GZiSBs6EbJJE7tC7uDnEfAzuowZaunYTS9DCNoi2zXv969t46/TbB8kjr nkZEhu281uZsVJWLULdRPrwpW31T9h2GfCjMx63MXXsi/opHsauIQp1Dlr8ziXAGRCRJ QSAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:organization:references:in-reply-to:message-id:subject :to:from:date; bh=fX2dvrqUG1S//cKfepbCfrTcwppUl/RqhYa89ovf26U=; b=p2l+Yt+Tza6cGfJkmPk/L6rC9hN3Ww8Gmdjs86p4UAOuVmgbLfaUTt59a1mjfJIsTm Fb5NDphVer89blApJPkOsHc690BkKGf6BUo6EfA6YUh7N6Rhgt0QXZBtKDMbWt4GG0zz ijLkHHncij3Vk9ielSka4PeNmYNeVRtEOkkK64+YuYBfnrNqPh46q3WRasE6wG/VrRK2 xfYSsfmw4MyVynHop6jnua2gsrldFdmx/qoSVwMSxqRExReFEPbgqB5s/U+740qHUAzs e6Y/r7nFrULw4WFzqmgyeIHa6SbkJCkdTOOKBz2sML+7hNwOtVJ/K0V6ni65+UMsQkCf mMjA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id c31si7754311edb.309.2019.09.23.16.11.13 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 23 Sep 2019 16:11:13 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from localhost ([::1]:37174 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iCXU8-0006eM-27 for alex.bennee@linaro.org; Mon, 23 Sep 2019 19:11:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37227) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iCXTr-0006a8-KP for qemu-arm@nongnu.org; Mon, 23 Sep 2019 19:10:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iCXTq-0006vI-FB for qemu-arm@nongnu.org; Mon, 23 Sep 2019 19:10:55 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34226) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iCXTq-0006ux-9V; Mon, 23 Sep 2019 19:10:54 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7D46918C8902; Mon, 23 Sep 2019 23:10:53 +0000 (UTC) Received: from x1.home (ovpn-118-102.phx2.redhat.com [10.3.118.102]) by smtp.corp.redhat.com (Postfix) with ESMTP id 882135C1B5; Mon, 23 Sep 2019 23:10:44 +0000 (UTC) Date: Mon, 23 Sep 2019 17:10:43 -0600 From: Alex Williamson To: Auger Eric Subject: Re: [PATCH v3 1/2] vfio: Turn the container error into an Error handle Message-ID: <20190923171043.4de13820@x1.home> In-Reply-To: <765755f6-4447-9322-d276-567d844ed50c@redhat.com> References: <20190923065552.10602-1-eric.auger@redhat.com> <20190923065552.10602-2-eric.auger@redhat.com> <20190923075145.GA12806@xz-x1> <765755f6-4447-9322-d276-567d844ed50c@redhat.com> Organization: Red Hat MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.70]); Mon, 23 Sep 2019 23:10:53 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, mst@redhat.com, aik@ozlabs.ru, qemu-devel@nongnu.org, Peter Xu , qemu-arm@nongnu.org, pbonzini@redhat.com, david@gibson.dropbear.id.au, eric.auger.pro@gmail.com Errors-To: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: "Qemu-arm" X-TUID: SfUG201/whpJ On Mon, 23 Sep 2019 13:43:08 +0200 Auger Eric wrote: > On 9/23/19 9:51 AM, Peter Xu wrote: > > On Mon, Sep 23, 2019 at 08:55:51AM +0200, Eric Auger wrote: > >> @@ -1308,9 +1319,9 @@ static int vfio_connect_container(VFIOGroup *group, AddressSpace *as, > >> &address_space_memory); > >> if (container->error) { > >> memory_listener_unregister(&container->prereg_listener); > >> - ret = container->error; > >> - error_setg(errp, > >> - "RAM memory listener initialization failed for container"); > >> + ret = -1; > >> + error_propagate_prepend(errp, container->error, > >> + "RAM memory listener initialization failed: "); > > > > (I saw that we've got plenty of prepended prefixes for an error > > messages. For me I'll disgard quite a few of them because the errors > > will directly be delivered to the top level user, but this might be > > too personal as a comment) > That's true we have a lot of prefix messages. > > The output message now is: > > "vfio 0000:89:00.0: failed > to setup container for group 2: memory listener initialization failed: > Region smmuv3-iommu-memory-region-0-6: device 01.00.0 requires iommu MAP > notifier which is not currently supported" > > Alex, any opinion? Peter, I don't really understand what the comment is here. Is it the number of prepends on the error message? I don't really have an opinion on that so long as the end message makes sense. Seems like if we're familiar with the error generation it helps to unwind the context. Thanks, Alex