From patchwork Wed Dec 12 11:47:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Prasad Pandit X-Patchwork-Id: 10726185 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 918AF6C5 for ; Wed, 12 Dec 2018 11:54:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 81211286C6 for ; Wed, 12 Dec 2018 11:54:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 740AB2AD16; Wed, 12 Dec 2018 11:54:34 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 16FE5286C6 for ; Wed, 12 Dec 2018 11:54:34 +0000 (UTC) Received: from localhost ([::1]:44035 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gX361-0006q5-0x for patchwork-qemu-devel@patchwork.kernel.org; Wed, 12 Dec 2018 06:54:33 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43893) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gX31I-0003bt-MX for qemu-devel@nongnu.org; Wed, 12 Dec 2018 06:49:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gX31E-000448-Jg for qemu-devel@nongnu.org; Wed, 12 Dec 2018 06:49:40 -0500 Received: from mx1.redhat.com ([209.132.183.28]:54664) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gX31D-0003yP-6d for qemu-devel@nongnu.org; Wed, 12 Dec 2018 06:49:36 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 02750811D9; Wed, 12 Dec 2018 11:49:32 +0000 (UTC) Received: from localhost.localdomain (ovpn-116-138.sin2.redhat.com [10.67.116.138]) by smtp.corp.redhat.com (Postfix) with ESMTPS id ABEB5608C5; Wed, 12 Dec 2018 11:49:29 +0000 (UTC) From: P J P To: Yuval Shaia Date: Wed, 12 Dec 2018 17:17:20 +0530 Message-Id: <20181212114726.24060-1-ppandit@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Wed, 12 Dec 2018 11:49:32 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH v1 0/6] rdma: various issues in rdma/pvrdma backend 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: , Cc: Prasad J Pandit , Li Qiang , Qemu Developers , Saar Amar Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Prasad J Pandit Hello, This is a revised version v1 of the earlier patch set to fix issues in the rdma/pvrdma backend. Update to include review comments -> https://lists.gnu.org/archive/html/qemu-devel/2018-12/msg02196.html Please note, this patch is created after merging another patch-set from -> https://patchwork.kernel.org/patch/10705439/ -> https://lists.gnu.org/archive/html/qemu-devel/2018-12/msg02344.html And local update to create qapi/qapi-events-rdma.h, to fix compiler errors. Thank you. --- Prasad J Pandit (6): rdma: check num_sge does not exceed MAX_SGE pvrdma: add uar_read routine pvrdma: check number of pages when creating rings pvrdma: release ring object in case of an error pvrdma: check return value from pvrdma_idx_ring_has_ routines rdma: remove unused VENDOR_ERR_NO_SGE macro hw/rdma/rdma_backend.c | 15 ++++++----- hw/rdma/vmw/pvrdma_cmd.c | 47 +++++++++++++++++++++++++++-------- hw/rdma/vmw/pvrdma_dev_ring.c | 37 ++++++++++++++------------- hw/rdma/vmw/pvrdma_main.c | 6 +++++ 4 files changed, 67 insertions(+), 38 deletions(-)