Re: [PATCH RFC 0/8] Introduce provisioning primitives for thinly provisioned storage

2022-09-15 Thread Stefan Hajnoczi
On Thu, Sep 15, 2022 at 09:48:18AM -0700, Sarthak Kukreti wrote: > From: Sarthak Kukreti > > Hi, > > This patch series is an RFC of a mechanism to pass through provision requests > on stacked thinly provisioned storage devices/filesystems. > > The linux kernel provides several mechanisms to se

Re: [PATCH RFC 3/8] virtio_blk: Add support for provision requests

2022-09-15 Thread Stefan Hajnoczi
On Thu, Sep 15, 2022 at 09:48:21AM -0700, Sarthak Kukreti wrote: > From: Sarthak Kukreti > > Adds support for provision requests. Provision requests act like > the inverse of discards. > > Signed-off-by: Sarthak Kukreti > --- > drivers/block/virtio_blk.c | 48 +

Re: Re: [PATCH] jailhouse: Hold reference returned from of_find_xxx API

2022-09-15 Thread Andy Shevchenko
On Fri, Sep 16, 2022 at 5:02 AM Liang He wrote: > At 2022-09-16 07:29:06, "Srivatsa S. Bhat" wrote: > >On 9/14/22 7:23 PM, Liang He wrote: .. > >> static inline bool jailhouse_paravirt(void) > >> { > >> -return of_find_compatible_node(NULL, NULL, "jailhouse,cell"); > >> +struct device

Re: [PATCH] virtio-gpu: fix shift wrapping bug in virtio_gpu_fence_event_create()

2022-09-15 Thread Dan Carpenter
On Thu, Sep 15, 2022 at 05:45:46PM -0700, Chia-I Wu wrote: > On Thu, Sep 15, 2022 at 4:14 AM Dan Carpenter > wrote: > > > > The ->ring_idx_mask variable is a u64 so static checkers, Smatch in > > this case, complain if the BIT() is not also a u64. > > > > drivers/gpu/drm/virtio/virtgpu_ioctl.c:50

Re: Call to discuss vsock netdev/sk_buff [was Re: [PATCH 0/6] virtio/vsock: introduce dgrams, sk_buff, and qdisc]

2022-09-15 Thread Stefano Garzarella
On Mon, Sep 12, 2022 at 8:28 PM Bobby Eshleman wrote: > > On Mon, Sep 12, 2022 at 08:12:58PM +0200, Stefano Garzarella wrote: > > On Fri, Sep 9, 2022 at 8:13 PM Bobby Eshleman > > wrote: > > > > > > Hey Stefano, thanks for sending this out. > > > > > > On Thu, Sep 08, 2022 at 04:36:52PM +0200, S

Re: [PATCH] virtio-gpu: fix shift wrapping bug in virtio_gpu_fence_event_create()

2022-09-15 Thread Chia-I Wu
On Thu, Sep 15, 2022 at 4:14 AM Dan Carpenter wrote: > > The ->ring_idx_mask variable is a u64 so static checkers, Smatch in > this case, complain if the BIT() is not also a u64. > > drivers/gpu/drm/virtio/virtgpu_ioctl.c:50 virtio_gpu_fence_event_create() > warn: should '(1 << ring_idx)' be a 64

Re: [PATCH] jailhouse: Hold reference returned from of_find_xxx API

2022-09-15 Thread Srivatsa S. Bhat
[ Adding author and reviewers of commit 63338a38db95 ] On 9/14/22 7:23 PM, Liang He wrote: > In jailhouse_paravirt(), we should hold the reference returned from > of_find_compatible_node() which has increased the refcount and then > call of_node_put() with it when done. > > Fixes: 63338a38db95

Re: [PATCH] MAINTAINERS: Add header files under VMWARE VMCI DRIVER

2022-09-15 Thread Stefano Garzarella
On Wed, Sep 14, 2022 at 08:13:21PM -0700, vd...@vmware.com wrote: From: Vishnu Dasa Add include/linux/vmw_vmci* files under VMWARE VMCI DRIVER. Acked-by: Bryan Tan Signed-off-by: Vishnu Dasa Suggested-by: Stefano Garzarella --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) Acked-by: St

[PATCH] virtio-gpu: fix shift wrapping bug in virtio_gpu_fence_event_create()

2022-09-15 Thread Dan Carpenter
The ->ring_idx_mask variable is a u64 so static checkers, Smatch in this case, complain if the BIT() is not also a u64. drivers/gpu/drm/virtio/virtgpu_ioctl.c:50 virtio_gpu_fence_event_create() warn: should '(1 << ring_idx)' be a 64 bit type? Fixes: cd7f5ca33585 ("drm/virtio: implement context in

[PATCH 3/3] vp_vdpa: support feature provisioning

2022-09-15 Thread Jason Wang
This patch allows the device features to be provisioned via netlink. This is done by: 1) validating the provisioned features to be a subset of the parent features. 2) clearing the features that is not wanted by the userspace Signed-off-by: Jason Wang --- drivers/vdpa/virtio_pci/vp_vdpa.c | 1

[PATCH 2/3] vdpa_sim_net: support feature provisioning

2022-09-15 Thread Jason Wang
This patch implements features provisioning for vdpa_sim_net. 1) validating the provisioned features to be a subset of the parent features. 2) clearing the features that is not wanted by the userspace Signed-off-by: Jason Wang --- drivers/vdpa/vdpa_sim/vdpa_sim_net.c | 11 ++- 1 fil

[PATCH 1/3] vdpa: device feature provisioning

2022-09-15 Thread Jason Wang
This patch allows the device features to be provisioned through netlink. A new attribute is introduced to allow the userspace to pass a 64bit device features during device adding. This provides several advantages: - Allow to provision a subset of the features to ease the cross vendor live migra

[PATCH 0/3] vdpa: device feature provisioning

2022-09-15 Thread Jason Wang
Hi All: Virtio features are neogiated between the device and the drivers. This allows the mediation layer like vDPA to hide some features from the driver to faciliate the cross vendor live migration: vDPA on the source supports feature set X vDPA on the destination supports feature set Y Managem

Re: [PATCH] jailhouse: Hold reference returned from of_find_xxx API

2022-09-15 Thread Juergen Gross via Virtualization
On 15.09.22 04:23, Liang He wrote: In jailhouse_paravirt(), we should hold the reference returned from of_find_compatible_node() which has increased the refcount and then call of_node_put() with it when done. Fixes: 63338a38db95 ("jailhouse: Provide detection for non-x86 systems") Signed-off-by: