[PATCH v2 1/7] Drivers: hv: vmbus: Add utility function for querying ring size

2024-03-20 Thread Saurabh Sengar
Add a function to query for the preferred ring buffer size of VMBus device. This will allow the drivers (eg. UIO) to allocate the most optimized ring buffer size for devices. Signed-off-by: Saurabh Sengar Reviewed-by: Long Li --- [V2] - Added more details in commit message. - Added comments for

[PATCH v2 2/7] uio_hv_generic: Query the ringbuffer size for device

2024-03-20 Thread Saurabh Sengar
Query the ring buffer size from pre defined table per device and use that value for allocating the ring buffer for that device. Keep the size as current default which is 2 MB if the device doesn't have any preferred ring size. Signed-off-by: Saurabh Sengar Reviewed-by: Long Li --- [V2] - Improve

[PATCH v2 3/7] uio_hv_generic: Enable interrupt for low speed VMBus devices

2024-03-20 Thread Saurabh Sengar
Hyper-V is adding some "specialty" synthetic devices. Instead of writing new kernel-level VMBus drivers for these devices, the devices will be presented to user space via this existing Hyper-V generic UIO driver, so that a user space driver can handle the device. Since these new synthetic devices a

[PATCH v2 4/7] tools: hv: Add vmbus_bufring

2024-03-20 Thread Saurabh Sengar
Common userspace interface for read/write from VMBus ringbuffer. This implementation is open for use by any userspace driver or application seeking direct control over VMBus ring buffers. A significant part of this code is borrowed from DPDK. Link: https://github.com/DPDK/dpdk/ Signed-off-by: Mar

[PATCH v2 0/7] Low speed Hyper-V devices support

2024-03-20 Thread Saurabh Sengar
Hyper-V is adding multiple low speed "speciality" synthetic devices. Instead of writing a new kernel-level VMBus driver for each device, make the devices accessible to user space through UIO-based uio_hv_generic driver. Each device can then be supported by a user space driver. This approach optimiz

[PATCH v2 7/7] uio_hv_generic: Remove use of PAGE_SIZE

2024-03-20 Thread Saurabh Sengar
Remove use of PAGE_SIZE for device ring buffer size calculation, as there is no dependency on device ring buffer size for linux kernel's PAGE_SIZE. Use the absolute value of 2 MB instead. Signed-off-by: Saurabh Sengar Reviewed-by: Long Li --- drivers/uio/uio_hv_generic.c | 7 +++ 1 file cha

[PATCH v2 5/7] tools: hv: Add new fcopy application based on uio driver

2024-03-20 Thread Saurabh Sengar
New fcopy application using uio_hv_generic driver. This application copies file from Hyper-V host to guest VM. A big part of this code is copied from tools/hv/hv_fcopy_daemon.c which this new application is replacing. Signed-off-by: Saurabh Sengar --- [V2] - Improve commit message. - Change (4 *

[PATCH v2 6/7] Drivers: hv: Remove fcopy driver

2024-03-20 Thread Saurabh Sengar
As the new fcopy driver using uio is introduced, remove obsolete driver and application. Signed-off-by: Saurabh Sengar Reviewed-by: Long Li --- [V2] - Added Reviewed-by form Long Li drivers/hv/Makefile| 2 +- drivers/hv/hv_fcopy.c | 427 - dri

[PATCH v4] hv/hv_kvp_daemon: Handle IPv4 and Ipv6 combination for keyfile format

2024-03-20 Thread Shradha Gupta
If the network configuration strings are passed as a combination of IPv4 and IPv6 addresses, the current KVP daemon does not handle processing for the keyfile configuration format. With these changes, the keyfile config generation logic scans through the list twice to generate IPv4 and IPv6 section

Re: [PATCH v4] hv/hv_kvp_daemon: Handle IPv4 and Ipv6 combination for keyfile format

2024-03-20 Thread Easwar Hariharan
On 3/20/2024 4:17 AM, Shradha Gupta wrote: > If the network configuration strings are passed as a combination of IPv4 > and IPv6 addresses, the current KVP daemon does not handle processing for > the keyfile configuration format. > With these changes, the keyfile config generation logic scans throu

Re: [PATCH v4] hv/hv_kvp_daemon: Handle IPv4 and Ipv6 combination for keyfile format

2024-03-20 Thread Ani Sinha
> On 20 Mar 2024, at 16:47, Shradha Gupta > wrote: > > If the network configuration strings are passed as a combination of IPv4 > and IPv6 addresses, the current KVP daemon does not handle processing for > the keyfile configuration format. > With these changes, the keyfile config generation l

[GIT PULL] Hyper-V commits for 6.9

2024-03-20 Thread Wei Liu
Hi Linus, The following changes since commit d206a76d7d2726f3b096037f2079ce0bd3ba329b: Linux 6.8-rc6 (2024-02-25 15:46:06 -0800) are available in the Git repository at: ssh://g...@gitolite.kernel.org/pub/scm/linux/kernel/git/hyperv/linux.git tags/hyperv-next-signed-20240320 for you to

Re: [PATCH v4] hv/hv_kvp_daemon: Handle IPv4 and Ipv6 combination for keyfile format

2024-03-20 Thread Ani Sinha
> On 21 Mar 2024, at 09:25, Ani Sinha wrote: > > > >> On 20 Mar 2024, at 16:47, Shradha Gupta >> wrote: >> >> If the network configuration strings are passed as a combination of IPv4 >> and IPv6 addresses, the current KVP daemon does not handle processing for >> the keyfile configuration