From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id BA465A034C;
	Sun, 27 Mar 2022 17:35:48 +0200 (CEST)
Received: from [217.70.189.124] (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id 618F4410DD;
	Sun, 27 Mar 2022 17:35:48 +0200 (CEST)
Received: from mga14.intel.com (mga14.intel.com [192.55.52.115])
 by mails.dpdk.org (Postfix) with ESMTP id 67C8540151
 for <dev@dpdk.org>; Sun, 27 Mar 2022 17:35:46 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple;
 d=intel.com; i=@intel.com; q=dns/txt; s=Intel;
 t=1648395346; x=1679931346;
 h=from:to:cc:subject:date:message-id:in-reply-to: references;
 bh=IXCxVU5VhkhxKDzb/MHcsznBxC/yF4SL/dM9nZ+GY38=;
 b=d0gNzAMjH/7Aq6jvUobSTRD+sfquXLAf7QxbIjcp2YQ23dVQn6TJVClK
 9clVmDR9NJdHG+BE/7xWiH+Z/RH4mW0BHDA8Ij/ciqaL23VVzce0Bw/RN
 wykeIVR9NNdNQDWKTuC85CCwHEW/UfaPn7HL6+3FBBUzJDzGzHpbuKTpE
 EtV9aFIm5gsxvQxpit4nDtzJPavoCzXb4I/ZqHEk187FBaGIeTD0WfEu8
 1zPGmflWolcFTeWNLHsxqac1rBH8H3SRRsodnBfAW74CUvZ1fuKVDKfgU
 dOXJZGVZrwnlqxBHmmFiRhEmEIvM1bTsRy3U/ek5w+qAvi1gmnPZCfdGm w==;
X-IronPort-AV: E=McAfee;i="6200,9189,10299"; a="259045626"
X-IronPort-AV: E=Sophos;i="5.90,215,1643702400"; d="scan'208";a="259045626"
Received: from orsmga008.jf.intel.com ([10.7.209.65])
 by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;
 27 Mar 2022 08:35:45 -0700
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="5.90,215,1643702400"; d="scan'208";a="562421439"
Received: from dpdk-dipei.sh.intel.com ([10.67.110.238])
 by orsmga008.jf.intel.com with ESMTP; 27 Mar 2022 08:35:43 -0700
From: Andy Pei <andy.pei@intel.com>
To: dev@dpdk.org
Cc: chenbo.xia@intel.com, maxime.coquelin@redhat.com, gang.cao@intel.com,
 changpeng.liu@intel.com
Subject: [PATCH v4 00/16] add virtio_blk device support to vdpa/ifc
Date: Sun, 27 Mar 2022 22:51:23 +0800
Message-Id: <1648392699-60113-1-git-send-email-andy.pei@intel.com>
X-Mailer: git-send-email 1.8.3.1
In-Reply-To: <1643093258-47258-2-git-send-email-andy.pei@intel.com>
References: <1643093258-47258-2-git-send-email-andy.pei@intel.com>
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org

This patch set add virtio_blk device support to vdpa/ifc driver.
With a lot of similarities, I re-use part of vdpa/ifc driver.
Distinguish the virtio net and blk device by device id, and implement 
specific features and ops.
Add example to vdpa to support virtio_blk device.
To support blk device live migration, some modification to vhost lib.
Perform dev_conf op only under VHOST_USER_SET_VRING_CALL msg.

v4:
 add args "isblk" to vdpa example to specify a block device, fix some
 issue in example.
 Make sure code specify for block device does not affect net device.
v3:
 Fix some compile issues.
v2:
  Fix some coding style issues.

Andy Pei (16):
  vdpa/ifc: add support for virtio blk device
  vhost: add vdpa ops for blk device
  vhost: add support for VHOST_USER_GET_CONFIG and VHOST_USER_SET_CONFIG
  vdpa/ifc: add blk ops for ifc device
  vdpa/ifc: add vdpa interrupt for blk device
  vdpa/ifc: add block device SW live-migration
  example/vdpa:add vdpa blk support in example
  usertools: add support for virtio blk device
  vdpa/ifc: set_vring_state op is mandatory, add set_vring_state for blk
    device
  vdpa/ifc: add some log at VDPA lauch before qemu connect
  vdpa/ifc: read virtio max_queues from hardware
  vdpa: add config space change interrupt register and handle for
    virtio_blk
  vdpa/ifc: add is_blk flag to ifcvf_hw, and init is_blk during probe
  vdpa/ifc/base: for blk device, live migration register is different
    from net device
  vdpa/ifc: make sure hardware last_avail_idx and last_used_idx is the
    same when blk device pause
  vhost: make sure each queue callfd is configured

 drivers/vdpa/ifc/base/ifcvf.c    |  42 +++-
 drivers/vdpa/ifc/base/ifcvf.h    |  29 ++-
 drivers/vdpa/ifc/ifcvf_vdpa.c    | 523 ++++++++++++++++++++++++++++++++++++---
 examples/vdpa/main.c             |  61 ++++-
 examples/vdpa/vdpa_blk_compact.h |  72 ++++++
 examples/vdpa/vhost_user.h       | 169 +++++++++++++
 lib/vhost/vdpa_driver.h          |   8 +-
 lib/vhost/vhost_user.c           |  65 +++++
 lib/vhost/vhost_user.h           |  15 ++
 usertools/dpdk-devbind.py        |   8 +
 10 files changed, 937 insertions(+), 55 deletions(-)
 create mode 100644 examples/vdpa/vdpa_blk_compact.h
 create mode 100644 examples/vdpa/vhost_user.h

-- 
1.8.3.1