From patchwork Mon May 31 07:33:14 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhu Lingshan X-Patchwork-Id: 450753 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.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable 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 B0833C47095 for ; Mon, 31 May 2021 07:39:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9A1A761249 for ; Mon, 31 May 2021 07:39:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230443AbhEaHlT (ORCPT ); Mon, 31 May 2021 03:41:19 -0400 Received: from mga07.intel.com ([134.134.136.100]:63237 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230355AbhEaHlD (ORCPT ); Mon, 31 May 2021 03:41:03 -0400 IronPort-SDR: wZm79MtOxrQVH0Ry9qPFC4j/K/uwy5XrvKrsDavYUIDEzG776XjnhAiHzY7u2lYHDCNH+xsVuj r9qtyiTYN5dA== X-IronPort-AV: E=McAfee;i="6200,9189,10000"; a="267194628" X-IronPort-AV: E=Sophos;i="5.83,236,1616482800"; d="scan'208";a="267194628" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 May 2021 00:39:22 -0700 IronPort-SDR: 8mzKjbSk3zBRRTTG/FCo+6jedjy0RykXOVWJfJd3eOxed+w9zvOh3PQ5Li0RtfssqKaPY6Fkl4 l0bolLC04t1w== X-IronPort-AV: E=Sophos;i="5.83,236,1616482800"; d="scan'208";a="478811507" Received: from unknown (HELO localhost.localdomain.bj.intel.com) ([10.240.192.107]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 May 2021 00:39:19 -0700 From: Zhu Lingshan To: jasowang@redhat.com, mst@redhat.com Cc: virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, kvm@vger.kernel.org, Zhu Lingshan Subject: [PATCH V2 RESEND 0/2] vDPA/ifcvf: implement doorbell mapping feature Date: Mon, 31 May 2021 15:33:14 +0800 Message-Id: <20210531073316.363655-1-lingshan.zhu@intel.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This series implements doorbell mapping feature for ifcvf. Please help review Thanks! Chagnes from V1: calculate the doorbell address per vq than per device(Jason) let upper layer driver decide how to use the non page_size aligned doorbell(Jason) Zhu Lingshan (2): vDPA/ifcvf: record virtio notify base vDPA/ifcvf: implement doorbell mapping for ifcvf drivers/vdpa/ifcvf/ifcvf_base.c | 4 ++++ drivers/vdpa/ifcvf/ifcvf_base.h | 2 ++ drivers/vdpa/ifcvf/ifcvf_main.c | 17 +++++++++++++++++ 3 files changed, 23 insertions(+)