From patchwork Thu Jan 31 13:08:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yuval Shaia X-Patchwork-Id: 10790477 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 416271390 for ; Thu, 31 Jan 2019 13:12:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 321FC30A85 for ; Thu, 31 Jan 2019 13:12:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2540530D20; Thu, 31 Jan 2019 13:12:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C4F7230A85 for ; Thu, 31 Jan 2019 13:12:38 +0000 (UTC) Received: from localhost ([127.0.0.1]:54566 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gpC90-0001f9-2f for patchwork-qemu-devel@patchwork.kernel.org; Thu, 31 Jan 2019 08:12:38 -0500 Received: from eggs.gnu.org ([209.51.188.92]:48055) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gpC5X-00075D-MW for qemu-devel@nongnu.org; Thu, 31 Jan 2019 08:09:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gpC5W-0000Fr-Pv for qemu-devel@nongnu.org; Thu, 31 Jan 2019 08:09:03 -0500 Received: from aserp2130.oracle.com ([141.146.126.79]:60708) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gpC5W-0000EH-Fz for qemu-devel@nongnu.org; Thu, 31 Jan 2019 08:09:02 -0500 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id x0VD4BIv110360; Thu, 31 Jan 2019 13:08:58 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id; s=corp-2018-07-02; bh=cW+CcL1HflApVIZvFeSwJuVoIkLaTFlw3s1WUIxHUXU=; b=d4/9xOOAN3ocdW+xFPE4CfDxHDmHcD0thgaR3KfEhcOBFK7bEkROpUeeX30XDnwfyXpv DfB8QBXKkVSR1+nJVLMe+yLUNUjDIRzjwm+A1tzMdc3Wd6XounCOM05Ncjr9uAPOBF1C Xsz71IKDcsEmVJm352sua1NkTwgfvRyOYLcUCRsbq8K995qLJaigQ299tFrUbbPz24BM UnF4twAW0qwh9ZknWlLUT8UOk7yFrTxajwKVstgiEnH/WzStWNUGoJEwabPcjH7r0Pyy j5ZkN612Tft1+P/ZXCt89HqjKOfE/Jc/Fus7/GDev8sMZ+iGca31K96OHJLCAw6LtAb0 2w== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp2130.oracle.com with ESMTP id 2q8d2egu3e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 31 Jan 2019 13:08:58 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id x0VD8wex028612 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 31 Jan 2019 13:08:58 GMT Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x0VD8wYr015178; Thu, 31 Jan 2019 13:08:58 GMT Received: from localhost.localdomain (/77.138.186.148) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 31 Jan 2019 05:08:57 -0800 From: Yuval Shaia To: dgilbert@redhat.com, yuval.shaia@oracle.com, marcel.apfelbaum@gmail.com, armbru@redhat.com, qemu-devel@nongnu.org Date: Thu, 31 Jan 2019 15:08:40 +0200 Message-Id: <20190131130850.6850-1-yuval.shaia@oracle.com> X-Mailer: git-send-email 2.17.2 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9152 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=2 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1901310103 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 141.146.126.79 Subject: [Qemu-devel] [PATCH 00/10] Misc fixes to pvrdma device X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Hi, Please review the following patch-set which consist of cosmetics fixes to device's user interface (traces, error_report and monitor) and some bug fixes. Thanks, Yuval Yuval Shaia (10): hw/rdma: Switch to generic error reporting way hw/rdma: Introduce locked qlist hw/rdma: Warn when too many consecutive poll CQ triggered on an empty CQ hw/rdma: Protect against concurrent execution of poll_cq hw/pvrdma: Add device statistics counters hw/pvrdma: Dump device statistics counters to file monitor: Expose pvrdma device statistics counters hw/rdma: Free all MAD receive buffers when device is closed hw/rdma: Free all receive buffers when QP is destroyed hw/pvrdma: Delete unneeded function argument hmp-commands-info.hx | 14 + hw/rdma/rdma_backend.c | 474 +++++++++++++++++----------------- hw/rdma/rdma_backend.h | 6 +- hw/rdma/rdma_backend_defs.h | 9 +- hw/rdma/rdma_rm.c | 134 +++++----- hw/rdma/rdma_rm_defs.h | 28 +- hw/rdma/rdma_utils.c | 50 +++- hw/rdma/rdma_utils.h | 52 ++-- hw/rdma/trace-events | 32 ++- hw/rdma/vmw/pvrdma.h | 8 +- hw/rdma/vmw/pvrdma_cmd.c | 113 +++----- hw/rdma/vmw/pvrdma_dev_ring.c | 26 +- hw/rdma/vmw/pvrdma_main.c | 207 +++++++++------ hw/rdma/vmw/pvrdma_qp_ops.c | 76 +++--- hw/rdma/vmw/trace-events | 16 +- monitor.c | 6 + 16 files changed, 655 insertions(+), 596 deletions(-)