From: Eli Cohen <eli@mellanox.com>
To: mst@redhat.com, jasowang@redhat.com,
virtualization@lists.linux-foundation.org,
linux-kernel@vger.kernel.org
Cc: shahafs@mellanox.com, saeedm@mellanox.com, parav@mellanox.com
Subject: [PATCH V3 vhost next 02/10] vdpa_sim: use the batching API
Date: Tue, 28 Jul 2020 09:05:31 +0300 [thread overview]
Message-ID: <20200728060539.4163-3-eli@mellanox.com> (raw)
In-Reply-To: <20200728060539.4163-1-eli@mellanox.com>
From: Jason Wang <jasowang@redhat.com>
Change-Id: I3751f1aecce285e0f61530c69616852d49e5f547
Signed-off-by: Jason Wang <jasowang@redhat.com>
---
drivers/vdpa/vdpa_sim/vdpa_sim.c | 20 --------------------
drivers/vhost/vdpa.c | 1 -
2 files changed, 21 deletions(-)
diff --git a/drivers/vdpa/vdpa_sim/vdpa_sim.c b/drivers/vdpa/vdpa_sim/vdpa_sim.c
index c7334cc65bb2..82d1068af3ef 100644
--- a/drivers/vdpa/vdpa_sim/vdpa_sim.c
+++ b/drivers/vdpa/vdpa_sim/vdpa_sim.c
@@ -548,24 +548,6 @@ static int vdpasim_set_map(struct vdpa_device *vdpa,
return ret;
}
-static int vdpasim_dma_map(struct vdpa_device *vdpa, u64 iova, u64 size,
- u64 pa, u32 perm)
-{
- struct vdpasim *vdpasim = vdpa_to_sim(vdpa);
-
- return vhost_iotlb_add_range(vdpasim->iommu, iova,
- iova + size - 1, pa, perm);
-}
-
-static int vdpasim_dma_unmap(struct vdpa_device *vdpa, u64 iova, u64 size)
-{
- struct vdpasim *vdpasim = vdpa_to_sim(vdpa);
-
- vhost_iotlb_del_range(vdpasim->iommu, iova, iova + size - 1);
-
- return 0;
-}
-
static void vdpasim_free(struct vdpa_device *vdpa)
{
struct vdpasim *vdpasim = vdpa_to_sim(vdpa);
@@ -598,8 +580,6 @@ static const struct vdpa_config_ops vdpasim_net_config_ops = {
.set_config = vdpasim_set_config,
.get_generation = vdpasim_get_generation,
.set_map = vdpasim_set_map,
- .dma_map = vdpasim_dma_map,
- .dma_unmap = vdpasim_dma_unmap,
.free = vdpasim_free,
};
diff --git a/drivers/vhost/vdpa.c b/drivers/vhost/vdpa.c
index 8827ae31f96d..65195b30133b 100644
--- a/drivers/vhost/vdpa.c
+++ b/drivers/vhost/vdpa.c
@@ -533,7 +533,6 @@ static int vhost_vdpa_map(struct vhost_vdpa *v,
static void vhost_vdpa_unmap(struct vhost_vdpa *v, u64 iova, u64 size)
{
- struct vhost_dev *dev = &v->vdev;
struct vdpa_device *vdpa = v->vdpa;
const struct vdpa_config_ops *ops = vdpa->config;
--
2.26.0
next prev parent reply other threads:[~2020-07-28 6:06 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-28 6:05 [PATCH V3 vhost next 00/10] VDPA support for Mellanox ConnectX devices Eli Cohen
2020-07-28 6:05 ` [PATCH V3 vhost next 01/10] vhost-vdpa: support batch updating Eli Cohen
2020-07-28 6:05 ` Eli Cohen [this message]
2020-07-28 6:05 ` [PATCH V3 vhost next 03/10] vdpa: remove hard coded virtq num Eli Cohen
2020-07-28 6:05 ` [PATCH V3 vhost next 04/10] net/vdpa: Use struct for set/get vq state Eli Cohen
2020-07-28 6:05 ` [PATCH V3 vhost next 05/10] vhost: Fix documentation Eli Cohen
2020-07-28 6:05 ` [PATCH V3 vhost next 06/10] vdpa: Modify get_vq_state() to return error code Eli Cohen
2020-07-28 6:05 ` [PATCH V3 vhost next 07/10] vdpa/mlx5: Add hardware descriptive header file Eli Cohen
2020-07-28 6:05 ` [PATCH V3 vhost next 08/10] vdpa/mlx5: Add support library for mlx5 VDPA implementation Eli Cohen
2020-07-28 6:05 ` [PATCH V3 vhost next 09/10] vdpa/mlx5: Add shared memory registration code Eli Cohen
2020-07-28 6:05 ` [PATCH V3 vhost next 10/10] vdpa/mlx5: Add VDPA driver for supported mlx5 devices Eli Cohen
2020-07-28 13:43 ` kernel test robot
2020-08-04 11:54 ` Eli Cohen
2020-08-04 12:22 ` Michael S. Tsirkin
2020-07-28 6:18 ` [PATCH V3 vhost next 00/10] VDPA support for Mellanox ConnectX devices Jason Wang
2020-07-28 6:32 ` Eli Cohen
2020-07-28 6:40 ` Jason Wang
2020-07-28 6:53 ` Jason Wang
2020-07-28 6:57 ` Eli Cohen
2020-07-29 5:54 ` Eli Cohen
2020-08-03 20:34 ` Michael S. Tsirkin
2020-08-04 5:33 ` Eli Cohen
2020-08-03 20:51 ` Michael S. Tsirkin
2020-08-04 5:34 ` Eli Cohen
2020-08-04 9:39 ` Michael S. Tsirkin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200728060539.4163-3-eli@mellanox.com \
--to=eli@mellanox.com \
--cc=jasowang@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mst@redhat.com \
--cc=parav@mellanox.com \
--cc=saeedm@mellanox.com \
--cc=shahafs@mellanox.com \
--cc=virtualization@lists.linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).