Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp550719ybx; Tue, 5 Nov 2019 01:41:08 -0800 (PST) X-Google-Smtp-Source: APXvYqz+hR+3gIEEZaetXhlCKV2R7udLK+LLxPDhGbRiSUqmr5F9xciizHepEsBAynldf3o1gazx X-Received: by 2002:a17:906:5c55:: with SMTP id c21mr22491900ejr.214.1572946867932; Tue, 05 Nov 2019 01:41:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572946867; cv=none; d=google.com; s=arc-20160816; b=e/acK7kJRfOoUOmfyH976edfuqwU3rQABGEtQ3Sce216r7nSs18R8DHgscsvpCL6Q+ Tq82csrRdlsIGypWBdLMboy13yKd3KssOzZv5+Kb+A0NfFPhQ1HpWeYTzwwGqoaFnZBj dZO+P0AiiFQWT7Wz9Y3c0j8CU8HA7lzq+YZeOdLfUDjPph7XQqW+jI9f3XCFXKd1uxzX nyUhP2lboAFAC8lippAP4uIGoyECqc/fQpQI8JDwOkvSvknAkcewDDJXnDRh1oVfkTP4 WjtDULtO76/mOD/DVIbLIKa1cK8sDBYlgEJU9UG47M0yv5yg5MFRIMYEDiY1FGHP45sR ERDw== 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=0t662Z5eTfOp+J1upPeENnVdNlqHDponIUE5hwBMzn8=; b=UFgj9aADushqB6xBzI5k++lApXmExqbbHacs28EswkMkJiAN4AyTvunqa5/ULrZTeC m5Px8xvJyeWMFLRY9xQM7ZEcLKCb50My983uvJ+fjuBD3+KUBawQdw90my7FSaaAbhWJ 48T+DzhxzTty7YsD9WCpqrZ1wrTQOXK++mrdTLzwPL9NXuYcBY+w000WRQFzZpE0UATW XAVktw31XQfLS2JjUT1oXZerzU+kVDcIaFnWMyI1WEHKPf/HBkoozRZ17S3VEf7LvRgr RyKVWfQ++y2JrhT3OWoEYjZE3yh4Gj90TNoIQUNKyuhJAUSpqyufYvbueYVcrdEC5D6M 9a2A== 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 d14si9708302ejc.72.2019.11.05.01.40.44; Tue, 05 Nov 2019 01:41:07 -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 S1730938AbfKEJjv (ORCPT + 99 others); Tue, 5 Nov 2019 04:39:51 -0500 Received: from mga02.intel.com ([134.134.136.20]:24242 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730630AbfKEJjv (ORCPT ); Tue, 5 Nov 2019 04:39:51 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Nov 2019 01:39:50 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,270,1569308400"; d="scan'208";a="200323047" Received: from unknown (HELO localhost.localdomain.bj.intel.com) ([10.240.193.79]) by fmsmga008.fm.intel.com with ESMTP; 05 Nov 2019 01:39:47 -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, Zhu Lingshan Subject: [PATCH 0/2] Intel IFC VF driver for VDPA Date: Tue, 5 Nov 2019 17:37:38 +0800 Message-Id: <1572946660-26265-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 introduce Intel IFC VF NIC driver for Vhost Data Plane Acceleration(VDPA). Here comes two main parts, one is ifcvf_base layer, which handles hardware operations. The other is ifcvf_main layer handles VF initialization, configuration and removal, which depends on and complys to: virtio_mdev https://lkml.org/lkml/2019/10/30/62 vhost_mdev https://lkml.org/lkml/2019/10/31/440 This patchset passed netperf tests. This is RFC V2, plese help review. Changes from V1: using le32_to_cpu() to convert PCI capabilities. some set /get operations will sync with the hardware, eg get_status and get_generation. remove feature bit VHOST_F_LOG_ALL, add VIRTIO_F_ORDERED_PLATFORM add get/set_config functions. split mdev type group into mdev_type_group_virtio and mdev_type_group_vhost add ifcvf_mdev_get_mdev_features() coding stype changes. Zhu Lingshan (2): IFC hardware operation layer IFC VDPA layer drivers/vhost/ifcvf/ifcvf_base.c | 344 ++++++++++++++++++++++ drivers/vhost/ifcvf/ifcvf_base.h | 132 +++++++++ drivers/vhost/ifcvf/ifcvf_main.c | 605 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 1081 insertions(+) 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