From patchwork Wed Apr 3 11:33:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamal Heib X-Patchwork-Id: 10883499 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 3D597922 for ; Wed, 3 Apr 2019 11:35:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 27D93289AF for ; Wed, 3 Apr 2019 11:35:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1BE0A289C0; Wed, 3 Apr 2019 11:35: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=-2.7 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI 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 8049D289AF for ; Wed, 3 Apr 2019 11:35:33 +0000 (UTC) Received: from localhost ([127.0.0.1]:46091 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hBeB2-0003S2-B3 for patchwork-qemu-devel@patchwork.kernel.org; Wed, 03 Apr 2019 07:35:32 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53683) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hBe9h-0002Y7-IU for qemu-devel@nongnu.org; Wed, 03 Apr 2019 07:34:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hBe9f-0006N8-66 for qemu-devel@nongnu.org; Wed, 03 Apr 2019 07:34:09 -0400 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]:35835) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hBe9Z-0006Ac-Dm for qemu-devel@nongnu.org; Wed, 03 Apr 2019 07:34:03 -0400 Received: by mail-wr1-x444.google.com with SMTP id w1so20885331wrp.2 for ; Wed, 03 Apr 2019 04:33:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=AlK6y52efESRcwJO91Ut3IZn+cwQ/TffBX6ulYbGHn8=; b=ryjmf28bFrH106wYolc72dSenOid65ohjHdN6O0WchzudLZOMvTuzkUooWAte518/D m/bkzGADtXcs6j71oqaRlMpvjFjZy9Jzrt7CSE1QQhmBP8pQCVIEzX0T2XMgyoFd/lBw Uwx+wy6LcY18BxjK18eVv1dbV+nwh9qKriwzlK0ODl1Sa31Ci6JjcuwFryEqdIlQg79K 7i61ZlgVLPQ7aLAyvkNMxu48P5WG1rTBv8zv2ILeBtp+Bk/FHovJe54AatE1qkrZBWU+ zxMYG6q2tvdwQNOkGDO/d5CBu1IFKn/W10zGi6V/GKea9TqAaFoouJt0c9K0isk5cT9R rVNA== 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=AlK6y52efESRcwJO91Ut3IZn+cwQ/TffBX6ulYbGHn8=; b=fvdyg08d6pm6OPqT1XmoC1SQjJNSKVcLKoFm0AtBVruYv9VPkmhPSjkfHUwGtfBUhw hWXdbsk6rCiZXPf+MNKhqN0c3fo01jZj2EKu/nLV3+VFDaJ7o7ZhpN8BeZ2Q4pBEB/D4 fDKGxIjUFtVRuX+ly4+CtiCm8UKPx0bwblmXWqmkIz1nzk/9wocUxUsG/yat/9huB+Ly HPYnHoCku4qutlv5mUGmqj9HIncsurnYC/YynO6t8gOvO5Seb50+XxcxDvKgxszAHYL+ Y9yW+PUeAx/FKk+tZPj8IsIhEFPVn3lg+WaX0aiZVBFiuKLAKDnHqHzk4OvX50FUtROE 53DA== X-Gm-Message-State: APjAAAVhcvdERwqY8BY5XaW/INoggcamSVds6/OdJUYy0TxFdSJbefha t6YH11XxEqQFMHi3oetaZk9C1IaV X-Google-Smtp-Source: APXvYqxGWjGFsUMn8V8c63bsYAEEAuYmSnRjlsoBKez6hqlpcgmPGNVLhtRihR2ndoYiXeLYTa8kIA== X-Received: by 2002:adf:ef91:: with SMTP id d17mr50832961wro.78.1554291236484; Wed, 03 Apr 2019 04:33:56 -0700 (PDT) Received: from kheib-workstation.redhat.com ([192.116.94.220]) by smtp.gmail.com with ESMTPSA id u189sm8946635wme.25.2019.04.03.04.33.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 03 Apr 2019 04:33:55 -0700 (PDT) From: Kamal Heib To: qemu-devel@nongnu.org Date: Wed, 3 Apr 2019 14:33:39 +0300 Message-Id: <20190403113343.26384-1-kamalheib1@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::444 Subject: [Qemu-devel] [PATCH v3 0/4] pvrdma: Add support for SRQ 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: Kamal Heib , Yuval Shaia Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP This series implements the SRQ (Shared Receive Queue) for the pvrdma device, It also includes all the needed functions and definitions for support SRQ in the backend and resource management layers. Changes from v2->3: - Patch #1: -- Fix commit message. -- Remove initialization of backend_qp from rdma_backend_post_srq_recv(). -- Add rx_srq counter. - Patch #2: -- Add checks for srq attrs. - Patch #3: -- Move initialization of recv_cq_handle to be under is_srq. -- Rearrange destroy_qp() to avoid use after free. - Patch #4: -- Avoid use after free. -- Fix indentation. Changes from v1->v2: - Handle checkpatch.pl warnings. Kamal Heib (4): hw/rdma: Add SRQ support to backend layer hw/rdma: Add support for managing SRQ resource hw/rdma: Modify create/destroy QP to support SRQ hw/pvrdma: Add support for SRQ hw/rdma/rdma_backend.c | 125 +++++++++++++++++++++- hw/rdma/rdma_backend.h | 18 +++- hw/rdma/rdma_backend_defs.h | 5 + hw/rdma/rdma_rm.c | 117 +++++++++++++++++++- hw/rdma/rdma_rm.h | 13 ++- hw/rdma/rdma_rm_defs.h | 10 ++ hw/rdma/vmw/pvrdma_cmd.c | 206 ++++++++++++++++++++++++++++++++---- hw/rdma/vmw/pvrdma_main.c | 16 +++ hw/rdma/vmw/pvrdma_qp_ops.c | 46 +++++++- hw/rdma/vmw/pvrdma_qp_ops.h | 1 + 10 files changed, 521 insertions(+), 36 deletions(-)