Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3247546ybc; Thu, 21 Nov 2019 05:40:22 -0800 (PST) X-Google-Smtp-Source: APXvYqwLGBBkvfexq84uNoIpYxwfBOG6+sZFbO+vN/xifVMuFTO6SlyFIykiwSs2sNYlEBH+f+Ed X-Received: by 2002:adf:e50e:: with SMTP id j14mr9941869wrm.179.1574343621893; Thu, 21 Nov 2019 05:40:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574343621; cv=none; d=google.com; s=arc-20160816; b=opfbf+foQNf7dhtyQeb2sdEh1fIx04ZLsqI4T8uWpHGBrCJyadienSPhrwi+hZCxUe S2r42tQZ9xC02cvjomuCFYHk0MnrLqdSSNet6n3iyWg9aZpoLpoQ5v9YY//23F4lici5 aznKioMo62oSRymVwSbcqCzLZKZ/Sd9xhKD1yv9nxHVJVu2B3NbHDHzwQTqefi6C+1hH GrknO7IBr7ZNeYYl9qQ44y0RIK4d1+4y8bULyonUs1SXukHEfdmp+zVHHlqMYDPp+ykQ YkX8iSP2ul/wwnclhvzq1QiyNS9vFFMxFgS9+p3f3koKctvQycs5uol2Q2etssxSUSEY L6Pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=gv2RzNEi0PJkzmJM94YFYm+BM3Q5rX01yiltyVd0eck=; b=yu5QRf6STww4z+I+xj5Z9y+vxrSuAqdTZfeYZ7qmZCintcXHGuF7ChAVTqUM/59T44 Xv/iPZWKu8qTNIoS4gJGH49Pee9nsxl3oJTp+2dJWuKDEDTQNlo5a+XF25cr9GYspBXI ObjR2G9f0ZUI8PUPJ2D6R9EZ8QTljTMTk5Tf6aCXRmuPBX0W74McYp7G4MkF0ZOCyp69 hCY8txepb0x6wgboZRrjjPicacKO05S9sx/+suZn37SDcN8IQ6WhkaZHoiJkmHmVgryi 1rW5Pk/cqbJSHhygZXEvu5mZ5khe31WPpk+DruDXyWw6hO8Ly0ZfOQvsLrBq/F+EWfMY 6L0A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ce11si2265878edb.391.2019.11.21.05.39.56; Thu, 21 Nov 2019 05:40:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726912AbfKUNgy (ORCPT + 99 others); Thu, 21 Nov 2019 08:36:54 -0500 Received: from mga12.intel.com ([192.55.52.136]:28493 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726574AbfKUNgx (ORCPT ); Thu, 21 Nov 2019 08:36:53 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Nov 2019 05:36:53 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,226,1571727600"; d="scan'208";a="238178517" Received: from unknown (HELO localhost.localdomain.bj.intel.com) ([10.240.193.79]) by fmsmga002.fm.intel.com with ESMTP; 21 Nov 2019 05:36:50 -0800 From: Zhu Lingshan To: mst@redhat.com, jasowang@redhat.com, alex.williamson@redhat.com Cc: linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, kvm@vger.kernel.org, netdev@vger.kernel.org, dan.daly@intel.com, cunming.liang@intel.com, tiwei.bie@intel.com, jason.zeng@intel.com, zhiyuan.lv@intel.com, Zhu Lingshan Subject: [PATCH V1 0/2] Intel IFC VF driver for VDPA Date: Thu, 21 Nov 2019 21:34:35 +0800 Message-Id: <1574343277-8835-1-git-send-email-lingshan.zhu@intel.com> X-Mailer: git-send-email 1.8.3.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, This series intends to implement driver module for Intel IFC VF NIC, which can do Vhost Data Plane Acceleration(VDPA) by offloading dataplane traffic to hardware. This series depends on and complies to: virtio_mdev V13 https://lkml.org/lkml/2019/11/18/261 vhost_mdev V7 https://lkml.org/lkml/2019/11/18/1068 There comes mainly two parts of the code: (1) ifcvf_main layer handles probe / remove / mdev operations, implemented struct mdev_virtio_ops to support virtio_mdev and vhost_mdev, and other supportive functions. (2) ifcvf_base layer talks directly to the hardware, which support the ifcvf_main layer. Zhu Lingshan (2): IFC VF initialization functions This commit adds functions to support virtio_mdev and vhost_mdev drivers/vhost/Kconfig | 12 + drivers/vhost/Makefile | 3 +- drivers/vhost/ifcvf/Makefile | 2 + drivers/vhost/ifcvf/ifcvf_base.c | 328 +++++++++++++++++++++++ drivers/vhost/ifcvf/ifcvf_base.h | 126 +++++++++ drivers/vhost/ifcvf/ifcvf_main.c | 557 +++++++++++++++++++++++++++++++++++++++ 6 files changed, 1027 insertions(+), 1 deletion(-) create mode 100644 drivers/vhost/ifcvf/Makefile create mode 100644 drivers/vhost/ifcvf/ifcvf_base.c create mode 100644 drivers/vhost/ifcvf/ifcvf_base.h create mode 100644 drivers/vhost/ifcvf/ifcvf_main.c -- 1.8.3.1