[PATCH iproute2-next v3 3/5] utils: Add generic socket helpers

2021-02-02 Thread Parav Pandit
Subsequent patch needs to (a) query and use socket family (b) send/receive messages using this family Hence add helper routines to open, close, query family and to perform send receive operations. Signed-off-by: Parav Pandit --- changelog: v2->v3: - split patch from add vdpa tool for socket

[PATCH iproute2-next v3 5/5] vdpa: Add vdpa tool

2021-02-02 Thread Parav Pandit
vdpa tool is created to create, delete and query vdpa devices. examples: Show vdpa management device that supports creating, deleting vdpa devices. $ vdpa mgmtdev show vdpasim: supported_classes net $ vdpa mgmtdev show -jp { "show": { "vdpasim": { "supported_classes": [

[PATCH iproute2-next v3 1/5] Add kernel headers

2021-02-02 Thread Parav Pandit
Add kernel headers to commit from kernel tree [1]. 79991caf5202c7 ("vdpa_sim_net: Add support for user supported devices") [1] https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git branch: linux-next Signed-off-by: Parav Pandit --- include/uapi/linux/vdpa.h | 40

[PATCH iproute2-next v3 0/5] Add vdpa device management tool

2021-02-02 Thread Parav Pandit
Linux vdpa interface allows vdpa device management functionality. This includes adding, removing, querying vdpa devices. vdpa interface also includes showing supported management devices which support such operations. This patchset includes kernel uapi headers and a vdpa tool. examples: $ vdpa

[PATCH iproute2-next v3 4/5] utils: Add helper to map string to unsigned int

2021-02-02 Thread Parav Pandit
In subsequent patch need to map a string to a unsigned int. Hence, add an API to map a string to unsigned int. Signed-off-by: Parav Pandit --- changelog: v2->v3: - new patch to reuse string to unsigned int mapping --- include/utils.h | 4 +++- lib/utils.c | 17 +++-- 2 files

[PATCH iproute2-next v3 2/5] utils: Add helper routines for indent handling

2021-02-02 Thread Parav Pandit
Subsequent patch needs to use 2 char indentation for nested objects. Hence introduce a generic helpers to allocate, deallocate, increment, decrement and to print indent block. Signed-off-by: Parav Pandit --- changelog: v2->v3: - patch split from vdpa tool patch --- include/utils.h | 16

Re: [PATCH v3 00/17] Introducing Linux root partition support for Microsoft Hypervisor

2021-02-02 Thread David Woodhouse
On Tue, 2020-12-15 at 16:42 +, Wei Liu wrote: > On Tue, Dec 15, 2020 at 04:25:03PM +0100, Enrico Weigelt, metux IT consult > wrote: > > On 03.12.20 00:22, Wei Liu wrote: > > > > Hi, > > > > > I don't follow. Do you mean reusing /dev/kvm but with a different set of > > > APIs underneath? I

Re: [PATCH rfc 2/3] virtio-net: support receive timestamp

2021-02-02 Thread Michael S. Tsirkin
On Mon, Dec 28, 2020 at 11:22:32AM -0500, Willem de Bruijn wrote: > From: Willem de Bruijn > > Add optional PTP hardware timestamp offload for virtio-net. > > Accurate RTT measurement requires timestamps close to the wire. > Introduce virtio feature VIRTIO_NET_F_RX_TSTAMP. If negotiated, the >

Re: [PATCH RFC v2 08/10] vdpa: add vdpa simulator for block device

2021-02-02 Thread Stefan Hajnoczi
On Thu, Jan 28, 2021 at 03:41:25PM +0100, Stefano Garzarella wrote: > +static void vdpasim_blk_work(struct work_struct *work) > +{ > + struct vdpasim *vdpasim = container_of(work, struct vdpasim, work); > + u8 status = VIRTIO_BLK_S_OK; > + int i; > + > + spin_lock(>lock); > + > +

Re: [PATCH v4 04/13] drm/shmem-helper: Provide a vmap function for short-term mappings

2021-02-02 Thread Daniel Vetter
On Wed, Jan 27, 2021 at 01:08:05PM +0100, Thomas Zimmermann wrote: > Hi > > Am 11.01.21 um 17:50 schrieb Daniel Vetter: > > On Fri, Jan 08, 2021 at 10:43:31AM +0100, Thomas Zimmermann wrote: > > > Implementations of the vmap/vunmap GEM callbacks may perform pinning > > > of the BO and may acquire

Re: [PATCH rfc 2/3] virtio-net: support receive timestamp

2021-02-02 Thread kernel test robot
Hi Willem, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on ipvs/master] [also build test WARNING on linus/master v5.11-rc6 next-20210125] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use

Re: [PATCH 1/2] vdpa/mlx5: Avoid unnecessary query virtqueue

2021-02-02 Thread Michael S. Tsirkin
On Tue, Feb 02, 2021 at 09:00:55AM +0200, Eli Cohen wrote: > On Mon, Feb 01, 2021 at 08:15:29PM -0800, Si-Wei Liu wrote: > > On Mon, Feb 1, 2021 at 7:13 PM Jason Wang wrote: > > > > > > > > > On 2021/2/2 上午3:17, Si-Wei Liu wrote: > > > > On Mon, Feb 1, 2021 at 10:51 AM Si-Wei Liu > > > > wrote:

Re: [PATCH 136/141] virtio_net: Fix fall-through warnings for Clang

2021-02-02 Thread Gustavo A. R. Silva
Hi all, Who can take this? :) Thanks -- Gustavo On 11/20/20 12:40, Gustavo A. R. Silva wrote: > In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning > by explicitly adding a goto statement instead of letting the code fall > through to the next case. > > Link:

Re: [PATCH net] virtio-net: suppress bad irq warning for tx napi

2021-02-02 Thread Willem de Bruijn
On Mon, Feb 1, 2021 at 10:09 PM Jason Wang wrote: > > > On 2021/1/29 上午8:21, Wei Wang wrote: > > With the implementation of napi-tx in virtio driver, we clean tx > > descriptors from rx napi handler, for the purpose of reducing tx > > complete interrupts. But this could introduce a race where tx

Re: [PATCH 1/2] vdpa/mlx5: Avoid unnecessary query virtqueue

2021-02-02 Thread Jason Wang
On 2021/2/3 上午1:54, Si-Wei Liu wrote: On Tue, Feb 2, 2021 at 1:23 AM Eli Cohen wrote: On Tue, Feb 02, 2021 at 12:38:51AM -0800, Si-Wei Liu wrote: Thanks Eli and Jason for clarifications. See inline. On Mon, Feb 1, 2021 at 11:06 PM Eli Cohen wrote: On Tue, Feb 02, 2021 at 02:02:25PM +0800,

Re: [PATCH net] virtio-net: suppress bad irq warning for tx napi

2021-02-02 Thread Jason Wang
On 2021/2/2 下午10:37, Willem de Bruijn wrote: On Mon, Feb 1, 2021 at 10:09 PM Jason Wang wrote: On 2021/1/29 上午8:21, Wei Wang wrote: With the implementation of napi-tx in virtio driver, we clean tx descriptors from rx napi handler, for the purpose of reducing tx complete interrupts. But this

Re: [RFC 08/10] vhost: Add x-vhost-enable-shadow-vq qmp

2021-02-02 Thread Eric Blake
On 1/29/21 2:54 PM, Eugenio Pérez wrote: > Command to enable shadow virtqueue looks like: > > { "execute": "x-vhost-enable-shadow-vq", "arguments": { "name": "dev0", > "enable": true } } > > Signed-off-by: Eugenio Pérez > --- > qapi/net.json | 23 +++ >

Re: [PATCH RFC v2 08/10] vdpa: add vdpa simulator for block device

2021-02-02 Thread Stefano Garzarella
On Tue, Feb 02, 2021 at 09:34:12AM +, Stefan Hajnoczi wrote: On Thu, Jan 28, 2021 at 03:41:25PM +0100, Stefano Garzarella wrote: +static void vdpasim_blk_work(struct work_struct *work) +{ + struct vdpasim *vdpasim = container_of(work, struct vdpasim, work); + u8 status =

Re: [PATCH] swiotlb: Validate bounce size in the sync/unmap path

2021-02-02 Thread Konrad Rzeszutek Wilk
On Mon, Jan 25, 2021 at 07:33:35PM +0100, Martin Radev wrote: > On Mon, Jan 18, 2021 at 10:14:28AM -0500, Konrad Rzeszutek Wilk wrote: > > On Mon, Jan 18, 2021 at 12:44:58PM +0100, Martin Radev wrote: > > > On Wed, Jan 13, 2021 at 12:30:17PM +0100, Christoph Hellwig wrote: > > > > On Tue, Jan 12,

[RFC v3 3/3] vhost: Add Vdmabuf backend

2021-02-02 Thread Vivek Kasireddy
This backend acts as the counterpart to the Vdmabuf Virtio frontend. When it receives a new export event from the frontend, it raises an event to alert the Qemu UI/userspace. Qemu then "imports" this buffer using the Unique ID. As part of the import step, a new dmabuf is created on the Host using

[RFC v3 1/3] kvm: Add a notifier for create and destroy VM events

2021-02-02 Thread Vivek Kasireddy
After registering with this notifier, other drivers that are dependent on KVM can get notified whenever a VM is created or destroyed. This also provides a way for sharing the KVM instance pointer with other drivers. Signed-off-by: Vivek Kasireddy --- include/linux/kvm_host.h | 5 +

[RFC v3 0/3] Introduce Virtio based Dmabuf driver

2021-02-02 Thread Vivek Kasireddy
The Virtual Dmabuf or Virtio based Dmabuf (Vdmabuf) driver can be used to "transfer" a page-backed dmabuf created in the Guest to the Host without making any copies. This is mostly accomplished by recreating the dmabuf on the Host using the PFNs and other meta-data shared by the guest. A use-case

Re: [PATCH rfc 3/3] virtio-net: support transmit timestamp

2021-02-02 Thread kernel test robot
Hi Willem, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on ipvs/master] [also build test WARNING on linus/master v5.11-rc6 next-20210125] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use

Re: [PATCH RFC v2 09/10] vdpa_sim_blk: implement ramdisk behaviour

2021-02-02 Thread Stefan Hajnoczi
On Thu, Jan 28, 2021 at 03:41:26PM +0100, Stefano Garzarella wrote: > The previous implementation wrote only the status of each request. > This patch implements a more accurate block device simulator, > providing a ramdisk-like behavior. > > Signed-off-by: Stefano Garzarella > --- > v2: > - used

Re: [PATCH RFC v2 10/10] vdpa_sim_blk: handle VIRTIO_BLK_T_GET_ID

2021-02-02 Thread Stefan Hajnoczi
On Thu, Jan 28, 2021 at 03:41:27PM +0100, Stefano Garzarella wrote: > Handle VIRTIO_BLK_T_GET_ID request, always answering the > "vdpa_blk_sim" string. > > Signed-off-by: Stefano Garzarella > --- > v2: > - made 'vdpasim_blk_id' static [Jason] > --- > drivers/vdpa/vdpa_sim/vdpa_sim_blk.c | 15

Re: [GIT PULL] vdpa: bugfix

2021-02-02 Thread pr-tracker-bot
The pull request you sent on Mon, 1 Feb 2021 18:25:10 -0500: > https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git tags/for_linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/2e02677e961fd4b96d8cf106b5979e6a3cdb7362 Thank you! -- Deet-doot-dot, I am a

RE: [PATCH v5 15/16] x86/hyperv: implement an MSI domain for root partition

2021-02-02 Thread Michael Kelley via Virtualization
From: Wei Liu Sent: Tuesday, February 2, 2021 9:32 AM > > On Wed, Jan 27, 2021 at 05:47:04AM +, Michael Kelley wrote: > > From: Wei Liu Sent: Wednesday, January 20, 2021 4:01 AM > > > > > > When Linux runs as the root partition on Microsoft Hypervisor, its > > > interrupts are remapped.

Re: [PATCH] swiotlb: Validate bounce size in the sync/unmap path

2021-02-02 Thread Tom Lendacky
On 2/2/21 10:37 AM, Konrad Rzeszutek Wilk wrote: > On Mon, Jan 25, 2021 at 07:33:35PM +0100, Martin Radev wrote: >> On Mon, Jan 18, 2021 at 10:14:28AM -0500, Konrad Rzeszutek Wilk wrote: >>> On Mon, Jan 18, 2021 at 12:44:58PM +0100, Martin Radev wrote: On Wed, Jan 13, 2021 at 12:30:17PM

Re: [PATCH rfc 2/3] virtio-net: support receive timestamp

2021-02-02 Thread Michael S. Tsirkin
On Tue, Feb 02, 2021 at 05:17:13PM -0500, Willem de Bruijn wrote: > On Tue, Feb 2, 2021 at 9:08 AM Michael S. Tsirkin wrote: > > > > On Mon, Dec 28, 2020 at 11:22:32AM -0500, Willem de Bruijn wrote: > > > From: Willem de Bruijn > > > > > > Add optional PTP hardware timestamp offload for

Re: [PATCH rfc 2/3] virtio-net: support receive timestamp

2021-02-02 Thread Willem de Bruijn
On Tue, Feb 2, 2021 at 9:08 AM Michael S. Tsirkin wrote: > > On Mon, Dec 28, 2020 at 11:22:32AM -0500, Willem de Bruijn wrote: > > From: Willem de Bruijn > > > > Add optional PTP hardware timestamp offload for virtio-net. > > > > Accurate RTT measurement requires timestamps close to the wire. >

Re: [PATCH rfc 2/3] virtio-net: support receive timestamp

2021-02-02 Thread Willem de Bruijn
On Tue, Feb 2, 2021 at 6:06 PM Michael S. Tsirkin wrote: > > On Tue, Feb 02, 2021 at 05:17:13PM -0500, Willem de Bruijn wrote: > > On Tue, Feb 2, 2021 at 9:08 AM Michael S. Tsirkin wrote: > > > > > > On Mon, Dec 28, 2020 at 11:22:32AM -0500, Willem de Bruijn wrote: > > > > From: Willem de Bruijn

Re: [PATCH net] virtio-net: suppress bad irq warning for tx napi

2021-02-02 Thread Michael S. Tsirkin
On Thu, Jan 28, 2021 at 04:21:36PM -0800, Wei Wang wrote: > With the implementation of napi-tx in virtio driver, we clean tx > descriptors from rx napi handler, for the purpose of reducing tx > complete interrupts. But this could introduce a race where tx complete > interrupt has been raised, but

Re: [PATCH] swiotlb: Validate bounce size in the sync/unmap path

2021-02-02 Thread Konrad Rzeszutek Wilk
On Tue, Feb 02, 2021 at 04:34:09PM -0600, Tom Lendacky wrote: > On 2/2/21 10:37 AM, Konrad Rzeszutek Wilk wrote: > > On Mon, Jan 25, 2021 at 07:33:35PM +0100, Martin Radev wrote: > >> On Mon, Jan 18, 2021 at 10:14:28AM -0500, Konrad Rzeszutek Wilk wrote: > >>> On Mon, Jan 18, 2021 at 12:44:58PM