On Sat, Oct 16, 2021 at 1:27 AM Michael S. Tsirkin wrote:
>
> On Fri, Oct 15, 2021 at 05:09:38AM -0700, Dongli Zhang wrote:
> > Hi Jason,
> >
> > On 10/11/21 11:52 PM, Jason Wang wrote:
> > > We used to synchronize pending MSI-X irq handlers via
> > > sy
anges since V1:
- fix and document the memory ordering around the intx_soft_enabled
when enabling and disabling INTX interrupt
- for the driver that can validate the used length, virtio core
won't even try to allocate auxilary arrays and validate the used length
- tweak the commit l
.
Cc: Paolo Bonzini
Cc: Stefan Hajnoczi
Cc: Stefano Garzarella
Signed-off-by: Jason Wang
---
drivers/block/virtio_blk.c | 4
1 file changed, 4 insertions(+)
diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c
index 9b3bd083b411..10bc0879e618 100644
--- a/drivers/block
.
Cc: Amit Shah
Signed-off-by: Jason Wang
---
drivers/char/virtio_console.c | 9 +
1 file changed, 9 insertions(+)
diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c
index 7eaf303a7a86..660c5c388c29 100644
--- a/drivers/char/virtio_console.c
+++ b/drivers/char
This patch introduces a new method to enable the callbacks for config
and virtqueues. This will be used for making sure the virtqueue
callbacks are only enabled after virtio_device_ready() if transport
implements this method.
Signed-off-by: Jason Wang
---
include/linux/virtio_config.h | 6
) and after reset.
Cc: Thomas Gleixner
Cc: Peter Zijlstra
Cc: Paul E. McKenney
Signed-off-by: Jason Wang
---
drivers/virtio/virtio_pci_common.c | 27 +--
drivers/virtio/virtio_pci_common.h | 6 --
drivers/virtio/virtio_pci_legacy.c | 5 +++--
drivers/v
ed variable and toggle it during in
vp_disable/enable_vectors(). The INTX interrupt handler will check
intx_soft_enabled before processing the actual interrupt.
Cc: Boqun Feng
Cc: Thomas Gleixner
Cc: Peter Zijlstra
Cc: Paul E. McKenney
Signed-off-by: Jason Wang
---
drivers/virtio/virtio_pc
We're actually tracking descriptor address and length instead of the
buffer.
Signed-off-by: Jason Wang
---
drivers/virtio/virtio_ring.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c
index dd95dfd
en by force_used_validation). To be more
efficient, a dedicate array is used for storing the validate used
length, this helps to eliminate the cache stress if validation is done
by the driver.
Signed-off-by: Jason Wang
---
drivers/virtio/virtio_ring.c | 56
include/
For RX virtuqueue, the used length is validated in all the three paths
(big, small and mergeable). For control vq, we never tries to use used
length. So this patch forbids the core to validate the used length.
Signed-off-by: Jason Wang
---
drivers/net/virtio_net.c | 1 +
1 file changed, 1
We never tries to use used length, so the patch prevents the virtio
core from validating used length.
Signed-off-by: Jason Wang
---
drivers/block/virtio_blk.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c
index 10bc0879e618
We never tries to use used length, so the patch prevents the virtio
core from validating used length.
Signed-off-by: Jason Wang
---
drivers/scsi/virtio_scsi.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/scsi/virtio_scsi.c b/drivers/scsi/virtio_scsi.c
index c25ce8f0e0af
在 2021/10/1 下午3:06, Eugenio Pérez 写道:
This tree is able to look for a translated address from an IOVA address.
At first glance is similar to util/iova-tree. However, SVQ working on
devices with limited IOVA space need more capabilities, like allocating
IOVA chunks or perform reverse translation
在 2021/10/1 下午3:06, Eugenio Pérez 写道:
Use translations added in VhostIOVATree in SVQ.
Now every element needs to store the previous address also, so VirtQueue
can consume the elements properly. This adds a little overhead per VQ
element, having to allocate more memory to stash them. As a possib
On Wed, Oct 20, 2021 at 1:02 AM Dongli Zhang wrote:
>
>
>
> On 10/18/21 6:33 PM, Jason Wang wrote:
> > On Sat, Oct 16, 2021 at 1:27 AM Michael S. Tsirkin wrote:
> >>
> >> On Fri, Oct 15, 2021 at 05:09:38AM -0700, Dongli Zhang wrote:
> >>> Hi Jas
On Tue, Oct 19, 2021 at 4:40 PM Eugenio Perez Martin
wrote:
>
> On Fri, Oct 15, 2021 at 6:42 AM Jason Wang wrote:
> >
> >
> > 在 2021/10/15 上午12:39, Eugenio Perez Martin 写道:
> > > On Wed, Oct 13, 2021 at 5:47 AM Jason Wang wrote:
> > >>
> > &g
On Tue, Oct 19, 2021 at 6:29 PM Eugenio Perez Martin
wrote:
>
> On Tue, Oct 19, 2021 at 11:25 AM Jason Wang wrote:
> >
> >
> > 在 2021/10/1 下午3:06, Eugenio Pérez 写道:
> > > Use translations added in VhostIOVATree in SVQ.
> > >
> > > Now every e
On Wed, Oct 20, 2021 at 10:02 AM Jason Wang wrote:
>
> On Tue, Oct 19, 2021 at 6:29 PM Eugenio Perez Martin
> wrote:
> >
> > On Tue, Oct 19, 2021 at 11:25 AM Jason Wang wrote:
> > >
> > >
> > > 在 2021/10/1 下午3:06, Eugenio Pérez 写道:
> &
On Wed, Oct 20, 2021 at 2:52 PM Eugenio Perez Martin
wrote:
>
> On Wed, Oct 20, 2021 at 4:07 AM Jason Wang wrote:
> >
> > On Wed, Oct 20, 2021 at 10:02 AM Jason Wang wrote:
> > >
> > > On Tue, Oct 19, 2021 at 6:29 PM Eugenio Perez Martin
> > > wrot
On Wed, Oct 20, 2021 at 7:57 PM Eugenio Perez Martin
wrote:
>
> On Wed, Oct 20, 2021 at 11:03 AM Jason Wang wrote:
> >
> > On Wed, Oct 20, 2021 at 2:52 PM Eugenio Perez Martin
> > wrote:
> > >
> > > On Wed, Oct 20, 2021 at 4:07 AM Jason Wang wrote:
>
ust check DRIVER_OK again in
> vduse_vq_irq_inject() and make sure each time setting status is done
> under the irq lock.
Acked-by: Jason Wang
I wonder if we can use RCU to synchronize them in the future.
Thanks
>
> Signed-off-by: Xie Yongji
> ---
> drivers/vdpa/vdpa_user/vduse_dev
On Fri, Oct 22, 2021 at 10:44 AM Wu Zongyong
wrote:
>
> Split common codes from virtio-pci-legacy so vDPA driver can reuse it
> later.
>
> Signed-off-by: Wu Zongyong
Acked-by: Jason Wang
> ---
> drivers/virtio/Kconfig | 10 ++
> drivers/virtio/Makef
On Fri, Oct 22, 2021 at 10:44 AM Wu Zongyong
wrote:
>
> This callback is optional. For vdpa devices that not support to change
> virtqueue size, get_vq_num_min and get_vq_num_max will return the same
> value, so that users can choose a correct value for that device.
>
> Sugges
On Fri, Oct 22, 2021 at 10:44 AM Wu Zongyong
wrote:
>
> Just failed to probe the vdpa device if the min virtqueue num returned
> by get_vq_num_min is greater than the max virtqueue num returned by
> get_vq_num_max.
>
> Signed-off-by: Wu Zongyong
Acked-by: Jason Wang
>
On Fri, Oct 22, 2021 at 10:45 AM Wu Zongyong
wrote:
>
> For the devices which implement the get_vq_num_min callback, the driver
> should not negotiate with virtqueue size with the backend vdpa device if
> the value returned by get_vq_num_min equals to the value returned by
> get_vq_num_max.
> This
On Fri, Oct 22, 2021 at 10:45 AM Wu Zongyong
wrote:
>
> This attribute advertises the min value of virtqueue size. The value is
> 0 by default.
As discussed previously, 0 seems an invalid value. We should use 1 at least.
Thanks
>
> Signed-off-by: Wu Zongyong
> ---
> drivers/vdpa/vdpa.c
On Fri, Oct 22, 2021 at 10:44 AM Wu Zongyong
wrote:
>
> This patch adds a new vDPA driver for Alibaba ENI(Elastic Network
> Interface) which is build upon virtio 0.9.5 specification.
> And this driver doesn't support to run on BE host.
>
> Signed-off-by: Wu Zongyong
> ---
> drivers/vdpa/Kconfig
On Mon, Oct 25, 2021 at 9:56 AM Xuan Zhuo wrote:
>
> When using indirect with packed, we don't check for allocation failures.
> This patch checks that and fall back on direct.
>
> Fixes: 1ce9e6055fa0 ("virtio_ring: introduce packed ring support")
> Signed-off-by:
在 2021/10/25 上午11:21, Wu Zongyong 写道:
On Mon, Oct 25, 2021 at 10:27:31AM +0800, Jason Wang wrote:
On Fri, Oct 22, 2021 at 10:44 AM Wu Zongyong
wrote:
This patch adds a new vDPA driver for Alibaba ENI(Elastic Network
Interface) which is build upon virtio 0.9.5 specification.
And this driver
在 2021/10/25 上午10:44, Wu Zongyong 写道:
On Mon, Oct 25, 2021 at 10:22:30AM +0800, Jason Wang wrote:
On Fri, Oct 22, 2021 at 10:45 AM Wu Zongyong
wrote:
For the devices which implement the get_vq_num_min callback, the driver
should not negotiate with virtqueue size with the backend vdpa device
f the
configuration fields endianness.
To avoid exposing synchronization primitives to callers, introduce
helper for setting the configuration and use it.
Signed-off-by: Parav Pandit
Reviewed-by: Eli Cohen
Acked-by: Jason Wang
---
drivers/vdpa/vdpa.c | 36
dr
在 2021/10/22 上午12:35, Parav Pandit 写道:
Introduce a command to query a device config layout.
An example query of network vdpa device:
$ vdpa dev add name bar mgmtdev vdpasim_net
$ vdpa dev config show
bar: mac 00:35:09:19:48:05 link up link_announce false mtu 1500
Nit: it looks to me this p
在 2021/10/22 上午12:35, Parav Pandit 写道:
As subsequent patch adds new structure field with comment, move the
structure comment to follow kernel coding style.
Signed-off-by: Parav Pandit
Reviewed-by: Eli Cohen
Acked-by: Jason Wang
---
include/linux/vdpa.h | 9 -
1 file changed
在 2021/10/22 上午12:35, Parav Pandit 写道:
$ vdpa dev add name bar mgmtdev vdpasim_net mac 00:11:22:33:44:55 mtu 9000
$ vdpa dev config show
bar: mac 00:11:22:33:44:55 link up link_announce false mtu 9000
$ vdpa dev config show -jp
{
"config": {
"bar": {
"mac": "00:11:22
在 2021/10/22 上午12:35, Parav Pandit 写道:
Enable user to set the mac address and mtu so that each vdpa device
can have its own user specified mac address and mtu.
This is done by implementing the management device's configuration
layout fields setting callback routine.
Now that user is enabled to
在 2021/10/22 上午12:35, Parav Pandit 写道:
Cited patch in the fixes tag clears the features bit during reset.
mlx5 vdpa device feature bits are static decided by device capabilities.
This is not what I read at least from mlx5_vdpa_get_features:
static u64 mlx5_vdpa_get_features(struct vdpa_devic
name vdpa0 mac 00:11:22:33:44:55
2. Show configured params:
$ vdpa dev config show
vdpa0: mac 00:11:22:33:44:55 link down link_announce false max_vq_pairs 8 mtu
1500
Signed-off-by: Eli Cohen
Reviewed-by: Parav Pandit
Acked-by: Jason Wang
---
drivers/vdpa/mlx5/net/mlx5_vnet.c | 12
On Mon, Oct 25, 2021 at 6:22 PM Colin Ian King
wrote:
>
> There is a spelling mistake in a dev_err error message. Fix it.
>
> Signed-off-by: Colin Ian King
> ---
Acked-by: Jason Wang
> drivers/block/virtio_blk.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
在 2021/10/25 下午3:06, Parav Pandit 写道:
From: Jason Wang
Sent: Monday, October 25, 2021 12:31 PM
在 2021/10/22 上午12:35, Parav Pandit 写道:
$ vdpa dev add name bar mgmtdev vdpasim_net mac 00:11:22:33:44:55 mtu
9000
$ vdpa dev config show
bar: mac 00:11:22:33:44:55 link up link_announce false
在 2021/10/25 下午3:08, Parav Pandit 写道:
From: Jason Wang
Sent: Monday, October 25, 2021 12:35 PM
在 2021/10/22 上午12:35, Parav Pandit 写道:
Cited patch in the fixes tag clears the features bit during reset.
mlx5 vdpa device feature bits are static decided by device capabilities.
This is not
在 2021/10/25 下午2:59, Parav Pandit 写道:
From: Jason Wang
Sent: Monday, October 25, 2021 11:36 AM
在 2021/10/22 上午12:35, Parav Pandit 写道:
Introduce a command to query a device config layout.
An example query of network vdpa device:
$ vdpa dev add name bar mgmtdev vdpasim_net
$ vdpa dev
e,
> "mtu": 1500,
> }
> }
> }
>
> Signed-off-by: Parav Pandit
> Signed-off-by: Eli Cohen
Acked-by: Jason Wang
> ---
> changelog:
> v3->v4:
> - removed config space fields reporting which are not used by mlx5
>and s
"config": {
> "bar": {
> "mac": "00:11:22:33:44:55",
> "link ": "up",
> "link_announce ": false,
> "mtu": 9000,
> }
> }
> }
>
p link_announce false mtu 9000
>
> Signed-off-by: Parav Pandit
> Reviewed-by: Eli Cohen
Acked-by: Jason Wang
> ---
> changelog:
> v4->v5:
> - updated commit log example for add command
> ---
> drivers/vdpa/vdpa_sim/vdpa_sim_net.c | 35 +++-
vdpa_config_ops")
> Signed-off-by: Parav Pandit
> Reviewed-by: Eli Cohen
Acked-by: Jason Wang
> ---
> changelog:
> v5->v6:
> - expanded commit log description to indicate that feature bits are
>initialized during device addition
>
> ---
> drivers/vd
to its
> configured MAC.
>
> Signed-off-by: Eli Cohen
> Reviewed-by: Parav Pandit
Acked-by: Jason Wang
> ---
> drivers/vdpa/mlx5/net/mlx5_vnet.c | 76 +++
> 1 file changed, 58 insertions(+), 18 deletions(-)
>
> diff --git a/drivers/vd
On Wed, Oct 20, 2021 at 7:57 PM Eugenio Perez Martin
wrote:
>
> On Wed, Oct 20, 2021 at 11:03 AM Jason Wang wrote:
> >
> > On Wed, Oct 20, 2021 at 2:52 PM Eugenio Perez Martin
> > wrote:
> > >
> > > On Wed, Oct 20, 2021 at 4:07 AM Jason Wang wrote:
>
>
> Pass the status in blk_status_t in a consistent way.
>
> Reported-by: kernel test robot
> Fixes: b2c5221fd074 ("virtio-blk: avoid preallocating big SGL for data")
> Cc: Max Gurtovoy
> Signed-off-by: Michael S. Tsirkin
Acked-by: Jason Wang
> ---
> drivers
On Mon, Oct 25, 2021 at 2:25 PM Wu Zongyong
wrote:
>
> On Mon, Oct 25, 2021 at 12:45:44PM +0800, Jason Wang wrote:
> >
> > 在 2021/10/25 上午10:44, Wu Zongyong 写道:
> > > On Mon, Oct 25, 2021 at 10:22:30AM +0800, Jason Wang wrote:
> > > > On Fri, Oct 22, 2021
在 2021/10/22 下午1:19, Mike Christie 写道:
This patch allows userspace to create workers and bind them to vqs. You
can have N workers per dev and also share N workers with M vqs.
Signed-off-by: Mike Christie
A question, who is the best one to determine the binding? Is it the VMM
(Qemu etc) or
:
- Initialize the buflen to zero when the validation is done by the driver.
Jason Wang (4):
virtio_ring: validate used buffer length
virtio-net: don't let virtio core to validate used length
virtio-blk: don't let virtio core to validate used length
virtio-scsi: don't let virtio core t
en by force_used_validation). To be more
efficient, a dedicate array is used for storing the validate used
length, this helps to eliminate the cache stress if validation is done
by the driver.
Signed-off-by: Jason Wang
---
drivers/virtio/virtio_ring.c | 60
include/
For RX virtuqueue, the used length is validated in all the three paths
(big, small and mergeable). For control vq, we never tries to use used
length. So this patch forbids the core to validate the used length.
Signed-off-by: Jason Wang
---
drivers/net/virtio_net.c | 1 +
1 file changed, 1
We never tries to use used length, so the patch prevents the virtio
core from validating used length.
Signed-off-by: Jason Wang
---
drivers/block/virtio_blk.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c
index c7d05ff24084
We never tries to use used length, so the patch prevents the virtio
core from validating used length.
Signed-off-by: Jason Wang
---
drivers/scsi/virtio_scsi.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/scsi/virtio_scsi.c b/drivers/scsi/virtio_scsi.c
index 07d0250f17c3
On Tue, Oct 26, 2021 at 5:44 PM Michael S. Tsirkin wrote:
>
> On Tue, Oct 26, 2021 at 03:19:57PM +0800, Jason Wang wrote:
> > This patch validate the used buffer length provided by the device
> > before trying to use it. This is done by record the in buffer length
> > in a
out of date description in the commit log
Changes since V3:
- Initialize the buflen to zero when the validation is done by the
driver.
Jason Wang (4):
virtio_ring: validate used buffer length
virtio-net: don't let virtio core to validate used length
virtio-blk: don't let virt
For RX virtuqueue, the used length is validated in all the three paths
(big, small and mergeable). For control vq, we never tries to use used
length. So this patch forbids the core to validate the used length.
Signed-off-by: Jason Wang
---
drivers/net/virtio_net.c | 1 +
1 file changed, 1
ld be overridden by
force_used_validation module parameter). To be more efficient, a
dedicate array is used for storing the validate used length, this
helps to eliminate the cache stress if validation is done by the
driver.
Signed-off-by: Jason Wang
---
drivers/virtio/virtio_ring.c
We never tries to use used length, so the patch prevents the virtio
core from validating used length.
Signed-off-by: Jason Wang
---
drivers/block/virtio_blk.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c
index c7d05ff24084
We never tries to use used length, so the patch prevents the virtio
core from validating used length.
Signed-off-by: Jason Wang
---
drivers/scsi/virtio_scsi.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/scsi/virtio_scsi.c b/drivers/scsi/virtio_scsi.c
index 07d0250f17c3
queue")
> Signed-off-by: Vincent Whitchurch
Acked-by: Jason Wang
Thanks
> ---
> drivers/virtio/virtio_ring.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c
> index dd95dfd85e98..3035bb6
On Tue, Oct 26, 2021 at 9:39 PM Yang Yingliang wrote:
>
> Return error code if pci_iomap() fails in vp_legacy_probe()
>
> Reported-by: Hulk Robot
> Fixes: c3ca8a3eeb54 ("virtio-pci: introduce legacy device module")
> Signed-off-by: Yang Yingliang
> ---
Acked-by:
On Wed, Oct 27, 2021 at 1:56 AM Jakub Kicinski wrote:
>
> Commit 406f42fa0d3c ("net-next: When a bond have a massive amount
> of VLANs...") introduced a rbtree for faster Ethernet address look
> up. To maintain netdev->dev_addr in this tree we need to make all
> the writes to it go through appropr
On Tue, Oct 26, 2021 at 11:45 PM Stefan Hajnoczi wrote:
>
> On Tue, Oct 26, 2021 at 01:37:14PM +0800, Jason Wang wrote:
> >
> > 在 2021/10/22 下午1:19, Mike Christie 写道:
> > > This patch allows userspace to create workers and bind them to vqs. You
> > > can hav
On Wed, Oct 27, 2021 at 10:47 AM Wu Zongyong
wrote:
>
> On Mon, Oct 25, 2021 at 12:40:41PM +0800, Jason Wang wrote:
> >
> > 在 2021/10/25 上午11:21, Wu Zongyong 写道:
> > > On Mon, Oct 25, 2021 at 10:27:31AM +0800, Jason Wang wrote:
> > > > On Fri, Oct 22, 2021
On Wed, Oct 27, 2021 at 12:49 AM wrote:
>
> On 10/26/21 12:37 AM, Jason Wang wrote:
> >
> > 在 2021/10/22 下午1:19, Mike Christie 写道:
> >> This patch allows userspace to create workers and bind them to vqs. You
> >> can have N workers per dev and also share N work
vdpa_config_ops")
> Signed-off-by: Parav Pandit
> Reviewed-by: Eli Cohen
Acked-by: Jason Wang
> ---
> drivers/vdpa/mlx5/net/mlx5_vnet.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/vdpa/mlx5/net/mlx5_vnet.c
> b/drivers/vdpa/mlx5/net/mlx5_vnet.c
&
to its
> configured MAC.
>
> Signed-off-by: Eli Cohen
> Reviewed-by: Parav Pandit
Acked-by: Jason Wang
> ---
> drivers/vdpa/mlx5/net/mlx5_vnet.c | 76 +++
> 1 file changed, 58 insertions(+), 18 deletions(-)
>
> diff --git a/drivers/vd
On Wed, Oct 27, 2021 at 10:45 AM Jason Wang wrote:
>
> On Wed, Oct 27, 2021 at 1:56 AM Jakub Kicinski wrote:
> >
> > Commit 406f42fa0d3c ("net-next: When a bond have a massive amount
> > of VLANs...") introduced a rbtree for faster Ethernet address look
>
On Thu, Oct 28, 2021 at 1:07 AM Michael S. Tsirkin wrote:
>
> On Wed, Oct 27, 2021 at 02:19:11PM +0800, Xuan Zhuo wrote:
> > In the case of using indirect, indirect desc must be allocated and
> > released each time, which increases a lot of cpu overhead.
> >
> > Here, a cache is added for indirect
On Thu, Oct 28, 2021 at 4:16 AM Michael S. Tsirkin wrote:
>
> On Wed, Oct 27, 2021 at 03:21:15PM +, Parav Pandit wrote:
> > Hi Stefano,
> >
> > > From: Stefano Garzarella
> > > Sent: Wednesday, October 27, 2021 8:04 PM
> > >
> > > Hi folks,
> > > I was trying to understand if we have a way to
On Thu, Oct 28, 2021 at 9:59 AM Xuan Zhuo wrote:
>
> On Wed, 27 Oct 2021 08:55:28 -0700, Jakub Kicinski wrote:
> > On Wed, 27 Oct 2021 14:19:13 +0800 Xuan Zhuo wrote:
> > > +static bool virtio_desc_cache = true;
> > > module_param(csum, bool, 0444);
> > > module_param(gso, bool, 0444);
> > > m
t; > always allocated by alloc_etherdev_mq() and there are at least two
> > places which assume Ethernet address:
> > - the line below calling eth_hw_addr_random()
> > - virtnet_set_mac_address() -> eth_commit_mac_addr_change()
> >
> > Signed-off-by: Jakub Kic
On Thu, Oct 28, 2021 at 6:49 PM Xuan Zhuo wrote:
>
> In the case of using indirect, indirect desc must be allocated and
> released each time, which increases a lot of cpu overhead.
>
> Here, a cache is added for indirect. If the number of indirect desc to be
> applied for is less than VIRT_QUEUE_C
On Thu, Oct 28, 2021 at 5:47 PM Stefano Garzarella wrote:
>
> On Thu, Oct 28, 2021 at 10:24:47AM +0800, Jason Wang wrote:
> >On Thu, Oct 28, 2021 at 4:16 AM Michael S. Tsirkin wrote:
> >>
> >> On Wed, Oct 27, 2021 at 03:21:15PM +, Parav Pandit wrote:
> >
On Thu, Oct 28, 2021 at 5:48 PM Parav Pandit wrote:
>
>
>
> > From: Stefano Garzarella
> > Sent: Thursday, October 28, 2021 3:08 PM
>
> > >> >$ vdpa/vdpa dev add mgmtdev vdpasim_net name vdpa0 mac
> > >> >00:11:22:33:44:55 $ echo 0 > /sys/bus/vdpa/drivers_autoprobe
> > >> >
> > >> >And after vdpa
s use litter endian
>
> Changes since V2:
> - add new attribute VDPA_ATTR_DEV_MIN_VQ_SIZE instead
> VDPA_ATTR_DEV_F_VERSION_1 to guide users to choose correct virtqueue
> size as suggested by Jason Wang
> - present ACCESS_PLATFORM in get_features callback as suggested by Jason
>
On Mon, Nov 1, 2021 at 2:23 PM Wu Zongyong wrote:
>
> On Mon, Nov 01, 2021 at 11:31:15AM +0800, Jason Wang wrote:
> > On Fri, Oct 29, 2021 at 5:15 PM Wu Zongyong
> > wrote:
> > >
> > > This series implements the vDPA driver for Alibaba ENI (Elastic Network
&
On Mon, Nov 1, 2021 at 10:11 PM Jason Gunthorpe wrote:
>
> On Thu, Mar 26, 2020 at 10:01:23PM +0800, Jason Wang wrote:
> > From: Tiwei Bie
> >
> > This patch introduces a vDPA-based vhost backend. This backend is
> > built on top of the same interface defined in
On Tue, Nov 2, 2021 at 11:22 AM Xuan Zhuo wrote:
>
> On Wed, 27 Oct 2021 10:21:04 +0800, Jason Wang wrote:
> > This patch validate the used buffer length provided by the device
> > before trying to use it. This is done by record the in buffer length
> > in a new field
在 2021/10/30 上午2:34, Eugenio Pérez 写道:
This series enable shadow virtqueue (SVQ) for vhost-vdpa devices. This
is intended as a new method of tracking the memory the devices touch
during a migration process: Instead of relay on vhost device's dirty
logging capability, SVQ intercepts the VQ datapl
On Sat, Oct 30, 2021 at 2:36 AM Eugenio Pérez wrote:
>
> Implementation of RFC of device state capability:
> https://lists.oasis-open.org/archives/virtio-comment/202012/msg5.html
Considering this still requires time to be done, we need to think of a
way to go without this.
Thanks
>
> With
On Sat, Oct 30, 2021 at 2:44 AM Eugenio Pérez wrote:
>
> This allows it to test if the guest has aknowledge an invalid transport
> feature for SVQ. This will include packed vq layout or event_idx,
> where VirtIO device needs help from SVQ.
>
> There is not needed at this moment, but since SVQ will
在 2021/10/30 上午2:35, Eugenio Pérez 写道:
+/**
+ * Enable or disable shadow virtqueue in a vhost vdpa device.
+ *
+ * This function is idempotent, to call it many times with the same value for
+ * enable_svq will simply return success.
+ *
+ * @v Vhost vdpa device
+ * @enable True to set SVQ
在 2021/10/30 上午2:35, Eugenio Pérez 写道:
This iova tree function allows it to look for a hole in allocated
regions and return a totally new translation for a given translated
address.
It's usage is mainly to allow devices to access qemu address space,
remapping guest's one into a new iova space w
在 2021/10/30 上午2:35, Eugenio Pérez 写道:
If device supports host notifiers, this makes one jump less (kernel) to
deliver SVQ notifications to it.
Signed-off-by: Eugenio Pérez
---
hw/virtio/vhost-shadow-virtqueue.h | 2 ++
hw/virtio/vhost-shadow-virtqueue.c | 23 ++-
2 fi
在 2021/10/30 上午2:35, Eugenio Pérez 写道:
Initial version of shadow virtqueue that actually forward buffers. There
are no iommu support at the moment, and that will be addressed in future
patches of this series. Since all vhost-vdpa devices uses forced IOMMU,
this means that SVQ is not usable at th
On Tue, Nov 2, 2021 at 4:29 PM Eugenio Perez Martin wrote:
>
> On Tue, Nov 2, 2021 at 7:35 AM Jason Wang wrote:
> >
> >
> > 在 2021/10/30 上午2:35, Eugenio Pérez 写道:
> > > This iova tree function allows it to look for a hole in allocated
> > > regions
On Tue, Nov 2, 2021 at 4:10 PM Eugenio Perez Martin wrote:
>
> On Tue, Nov 2, 2021 at 6:26 AM Jason Wang wrote:
> >
> > On Sat, Oct 30, 2021 at 2:44 AM Eugenio Pérez wrote:
> > >
> > > This allows it to test if the guest has aknowledge an invalid transp
On Tue, Nov 2, 2021 at 11:56 PM Jason Gunthorpe wrote:
>
> On Tue, Nov 02, 2021 at 11:52:20AM +0800, Jason Wang wrote:
> > On Mon, Nov 1, 2021 at 10:11 PM Jason Gunthorpe wrote:
> > >
> > > On Thu, Mar 26, 2020 at 10:01:23PM +0800, Jason Wang wrote:
> > >
On Wed, Nov 3, 2021 at 3:40 PM Eugenio Perez Martin wrote:
>
> On Wed, Nov 3, 2021 at 3:56 AM Jason Wang wrote:
> >
> > On Tue, Nov 2, 2021 at 4:47 PM Eugenio Perez Martin
> > wrote:
> > >
> > > On Tue, Nov 2, 2021 at 8:55 AM Jason Wang wrote:
&
On Wed, Nov 3, 2021 at 3:44 PM Eugenio Perez Martin wrote:
>
> On Wed, Nov 3, 2021 at 4:18 AM Jason Wang wrote:
> >
> > On Tue, Nov 2, 2021 at 4:10 PM Eugenio Perez Martin
> > wrote:
> > >
> > > On Tue, Nov 2, 2021 at 6:26 AM Jason Wang wrote:
>
On Fri, Nov 5, 2021 at 3:53 AM Eugenio Pérez wrote:
>
> Since vhost_vdpa_mmap checks for its existence before calling it.
>
> Signed-off-by: Eugenio Pérez
Acked-by: Jason Wang
> ---
> include/linux/vdpa.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>
On Fri, Nov 5, 2021 at 3:58 AM Eugenio Pérez wrote:
>
> It has no sense to call get_status twice, since we already have a
> variable for that.
>
> Signed-off-by: Eugenio Pérez
Acked-by: Jason Wang
> ---
> drivers/vhost/vdpa.c | 2 +-
> 1 file changed, 1 insertion(+)
> $ driverctl -b vdpa list-devices
> dev1 virtio_vdpa
>
> $ driverctl -b vdpa set-override dev1 vhost_vdpa
>
> $ driverctl -b vdpa list-devices
> dev1 vhost_vdpa [*]
>
> Note: driverctl(8) integrates with udev so the binding is
> preserved.
>
> S
On Fri, Nov 5, 2021 at 4:05 PM Stefano Garzarella wrote:
>
> On Fri, Nov 05, 2021 at 11:01:30AM +0800, Jason Wang wrote:
> >On Fri, Nov 5, 2021 at 12:17 AM Stefano Garzarella
> >wrote:
> >>
> >> `driver_override` allows to control which of the vDPA bus
On Mon, Nov 8, 2021 at 12:15 AM Christophe JAILLET
wrote:
>
> In the error handling path, a successful 'vp_legacy_probe()' should be
> balanced by a corresponding 'vp_legacy_remove()' call, as already done in
> the remove function.
>
> Add the missing call and update gotos accordingly.
>
> Fixes:
ing during buffer detach.
This patch fixes by always store the descriptor flag no matter whether
DMA API is used and then we can avoid reading descriptor flag from the
descriptor ring. This eliminates the possibly of unexpected next
descriptor caused by the wrong flag (e.g the next flag).
Signed-off
On Tue, Nov 9, 2021 at 3:32 AM Christophe JAILLET
wrote:
>
> Le 08/11/2021 à 06:55, Jason Wang a écrit :
> > On Mon, Nov 8, 2021 at 12:15 AM Christophe JAILLET
> > wrote:
> >>
> >> In the error handling path, a successful 'vp_legacy_probe()
601 - 700 of 5822 matches
Mail list logo