From patchwork Tue Jun 1 06:28:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhu, Lingshan" X-Patchwork-Id: 12290477 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=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 55E6EC4708F for ; Tue, 1 Jun 2021 06:34:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2A75D610C9 for ; Tue, 1 Jun 2021 06:34:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233061AbhFAGgL (ORCPT ); Tue, 1 Jun 2021 02:36:11 -0400 Received: from mga07.intel.com ([134.134.136.100]:35631 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233019AbhFAGgK (ORCPT ); Tue, 1 Jun 2021 02:36:10 -0400 IronPort-SDR: ypPe3nG26+eddRDQsAqNymBTTp6YVEFRFzReBfhD+R8uqWPIutAQ1qiIwgoNWQBMoQb5jofQcv LeogC7cBkv4g== X-IronPort-AV: E=McAfee;i="6200,9189,10001"; a="267361140" X-IronPort-AV: E=Sophos;i="5.83,239,1616482800"; d="scan'208";a="267361140" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 May 2021 23:34:29 -0700 IronPort-SDR: HuKn10lOFx+Yrc1kbdT/aYbN6H2JbvJYxSw/dQAl40Wkx1gSFC3rBOieSfXkNwIk9WL8gwfWhs DnY8sQ4kVLRg== X-IronPort-AV: E=Sophos;i="5.83,239,1616482800"; d="scan'208";a="446839303" Received: from unknown (HELO localhost.localdomain.bj.intel.com) ([10.240.192.107]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 May 2021 23:34:26 -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 V3 0/2] vDPA/ifcvf: implement doorbell mapping feature Date: Tue, 1 Jun 2021 14:28:48 +0800 Message-Id: <20210601062850.4547-1-lingshan.zhu@intel.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org This series implements doorbell mapping feature for ifcvf. Please help review Thanks! Changes from V2: assign notify_off_multiplier to notification.size first than use PAGE_SIZE directly(Jason) 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 | 21 +++++++++++++++++++++ 3 files changed, 27 insertions(+)