From patchwork Mon Nov 7 09:33:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhu, Lingshan" X-Patchwork-Id: 13034205 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C4B4AC4332F for ; Mon, 7 Nov 2022 09:42:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231466AbiKGJmU (ORCPT ); Mon, 7 Nov 2022 04:42:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231345AbiKGJmT (ORCPT ); Mon, 7 Nov 2022 04:42:19 -0500 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3E13B87D for ; Mon, 7 Nov 2022 01:42:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1667814138; x=1699350138; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=fiKv0pdnXdluc73wvAqeI7JGHQLm9IbFYrJKBmjYOz4=; b=RR4azR14lU782ioU9tz8Vq5/nafp8Jyu3J/GYSgorxu0OSHn0mL1ESNa 1HUC+2oi2n8wnIb8NBpUSTI7RBWrT+jKq1in69qAqvk93qnP41bmHO3mz nwSnTI2NkzTCH26Kzgh1vcWGkTOghJMc4iRdomdsVJXGUiQq7aIVraPdx l4ndFxgnhKE8t1jaKoLtAmk19BG2ecVgGGDSnFlKvEmBLEbig2Cqhcs3N cFYLraroW1sOWj7ZQ+ukSnL8NfgwMJE5eral5Hn65ROhE9DJmPsLP1nMU JG+sr8uWJafasN0UHdj+k9xrZ9WSMWfM0/AFZYnRB/uZB/O09vyQDaynO A==; X-IronPort-AV: E=McAfee;i="6500,9779,10523"; a="310370498" X-IronPort-AV: E=Sophos;i="5.96,143,1665471600"; d="scan'208";a="310370498" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Nov 2022 01:42:18 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10523"; a="704810795" X-IronPort-AV: E=Sophos;i="5.96,143,1665471600"; d="scan'208";a="704810795" Received: from unknown (HELO localhost.localdomain.bj.intel.com) ([10.240.193.73]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Nov 2022 01:42:16 -0800 From: Zhu Lingshan To: jasowang@redhat.com, mst@redhat.com Cc: virtualization@lists.linux-foundation.org, kvm@vger.kernel.org, hang.yuan@intel.com, piotr.uminski@intel.com, Zhu Lingshan Subject: [PATCH 0/4] ifcvf/vDPA implement features provisioning Date: Mon, 7 Nov 2022 17:33:41 +0800 Message-Id: <20221107093345.121648-1-lingshan.zhu@intel.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org This series implements features provisioning for ifcvf. By applying this series, we allow userspace to create a vDPA device with selected (management device supported) feature bits and mask out others. Please help review Thanks Zhu Lingshan (4): vDPA/ifcvf: ifcvf base layer interfaces work on struct ifcvf_hw vDPA/ifcvf: IRQ interfaces work on ifcvf_hw vDPA/ifcvf: allocate ifcvf_adapter in dev_add() vDPA/ifcvf: implement features provisioning drivers/vdpa/ifcvf/ifcvf_base.c | 32 ++----- drivers/vdpa/ifcvf/ifcvf_base.h | 10 +- drivers/vdpa/ifcvf/ifcvf_main.c | 156 +++++++++++++++----------------- 3 files changed, 89 insertions(+), 109 deletions(-)