From patchwork Tue Aug 24 14:11:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 12455163 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 64C47C4338F for ; Tue, 24 Aug 2021 14:13:22 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1492B60F58 for ; Tue, 24 Aug 2021 14:13:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 1492B60F58 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:58054 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mIXB3-0007g0-4F for qemu-devel@archiver.kernel.org; Tue, 24 Aug 2021 10:13:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50668) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mIX9d-0004wr-Pr for qemu-devel@nongnu.org; Tue, 24 Aug 2021 10:11:53 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:54800) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mIX9Z-00058I-PV for qemu-devel@nongnu.org; Tue, 24 Aug 2021 10:11:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1629814307; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=78sUjXfLGjMldcm4Aare9BAwd/4qYSy5kHBV7wzaDrs=; b=GJgk/lB3HalQXCT8jVohHZRxgi84xxz8W0ZJtV06IjQOaPO8ItkgSLNI43drAEkoqhxwOo g6U2Z6g3k+Q8Hkv4wtTtrnPpHLRPPFIWO+LBfMYk6TLBAdy9qWO7vvtReLoVmxMVz53TWh im95mRGWF70kajHs2fuUMI//vMOjzpE= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-545-Y7lAC4XpNQazI1FsYSmolA-1; Tue, 24 Aug 2021 10:11:46 -0400 X-MC-Unique: Y7lAC4XpNQazI1FsYSmolA-1 Received: by mail-wr1-f72.google.com with SMTP id h6-20020a5d4fc6000000b00157503046afso1715667wrw.3 for ; Tue, 24 Aug 2021 07:11:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Ofa9XrpQSVtFF9DQsbbU5OFDxNbpgMsOuA/ajhT4pog=; b=OQJi3n1KjzMzU9NbTOdihX1dRU68BdttW5w7tNf3CmGBkfdN+oNnH5leVH5xTrsk5t ly1l9PwHP0UOhJrA5vfeAWTfBd8o6JO61RQQxHoTOefZlhox/nArIzax+6z89VEoMbVa POLA0seOBWOkSv5VjDs+RJzj0paFjW/VJRETPScRWDz/S4HyA9YEmBvU7CY2Yjn25ZWi H3cnNHiPZqlEXu52+CrBjD131LtvLwtgOPCRxx22wP4P5nx3tuNFBpdIkMf5yvyRzh9C oQFXoWMToXLef+Q5zmndpmSe4c1CloA7IFXJiTb6mpEq8e25x/HDV50ohKw6mHRUrPZ7 Pamg== X-Gm-Message-State: AOAM53004NEdoQQmk61th+l3UHlNd2XI2BNvNDgWTL0ksNlxsca0WpDi 2FGdAuKKPNHLz9cJltRi61THXUtYUyV1QIw1a2cfYFt3gkTtp4+3QENoaMrA3lAricu9UeWIHzu ibgcPyd7jeNx9aTU9CtnJBB4rVWnywLaiWgAXyxMJwohf/Y5SnSvnE0bXfjNmcyrs X-Received: by 2002:adf:e74a:: with SMTP id c10mr19514079wrn.350.1629814304801; Tue, 24 Aug 2021 07:11:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxzRYMou/E0KpJjq++SkpHynkat2te2KROpP5ielMJ+x/RAVdrNGf/79J3yXxWKaTGQAPvTA== X-Received: by 2002:adf:e74a:: with SMTP id c10mr19514047wrn.350.1629814304552; Tue, 24 Aug 2021 07:11:44 -0700 (PDT) Received: from x1w.. (163.red-83-52-55.dynamicip.rima-tde.net. [83.52.55.163]) by smtp.gmail.com with ESMTPSA id t14sm2730099wmj.2.2021.08.24.07.11.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Aug 2021 07:11:44 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH 0/9] block/nvme: Rework error reporting Date: Tue, 24 Aug 2021 16:11:33 +0200 Message-Id: <20210824141142.1165291-1-philmd@redhat.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Received-SPF: pass client-ip=216.205.24.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -34 X-Spam_score: -3.5 X-Spam_bar: --- X-Spam_report: (-3.5 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.747, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kevin Wolf , Fam Zheng , qemu-block@nongnu.org, Auger Eric , Hanna Reitz , Stefan Hajnoczi , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Hi, This series contains various patches sent last year with review comments addressed, few more cleanups, and a new patch which remove the spurious "VFIO_MAP_DMA failed: No space left on device" now poping up since commit 15a730e7a. (it is the expected behavior, which is why we retry the same call after flushing the DMA mappings). Regards, Phil. Philippe Mathieu-Daudé (9): block/nvme: Use safer trace format string block/nvme: Have nvme_create_queue_pair() report errors consistently util/vfio-helpers: Let qemu_vfio_verify_mappings() use error_report() util/vfio-helpers: Replace qemu_mutex_lock() calls with QEMU_LOCK_GUARD util/vfio-helpers: Remove unreachable code in qemu_vfio_dma_map() util/vfio-helpers: Pass Error handle to qemu_vfio_dma_map() util/vfio-helpers: Have qemu_vfio_dma_map() propagate Error util/vfio-helpers: Let qemu_vfio_do_mapping() propagate Error block/nvme: Only report VFIO error on failed retry include/qemu/vfio-helpers.h | 2 +- block/nvme.c | 29 +++++++++++------ util/vfio-helpers.c | 63 +++++++++++++++++-------------------- block/trace-events | 2 +- 4 files changed, 50 insertions(+), 46 deletions(-)