linux-yocto/tools/hv
Naman Jain 16decac6ed tools/hv: fcopy: Fix irregularities with size of ring buffer
commit a4131a50d0 upstream.

Size of ring buffer, as defined in uio_hv_generic driver, is no longer
fixed to 16 KB. This creates a problem in fcopy, since this size was
hardcoded. With the change in place to make ring sysfs node actually
reflect the size of underlying ring buffer, it is safe to get the size
of ring sysfs file and use it for ring buffer size in fcopy daemon.
Fix the issue of disparity in ring buffer size, by making it dynamic
in fcopy uio daemon.

Cc: stable@vger.kernel.org
Fixes: 0315fef2af ("uio_hv_generic: Align ring size to system page")
Signed-off-by: Naman Jain <namjain@linux.microsoft.com>
Reviewed-by: Saurabh Sengar <ssengar@linux.microsoft.com>
Reviewed-by: Long Li <longli@microsoft.com>
Link: https://lore.kernel.org/r/20250711060846.9168-1-namjain@linux.microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Message-ID: <20250711060846.9168-1-namjain@linux.microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-08-20 18:30:56 +02:00
..
Build
hv_fcopy_uio_daemon.c tools/hv: fcopy: Fix irregularities with size of ring buffer 2025-08-20 18:30:56 +02:00
hv_get_dhcp_info.sh
hv_get_dns_info.sh
hv_kvp_daemon.c
hv_set_ifconfig.sh tools: hv: change permissions of NetworkManager configuration file 2024-12-27 14:02:01 +01:00
hv_vss_daemon.c
lsvmbus tools: hv: lsvmbus: change shebang to use python3 2024-08-03 00:01:55 +00:00
Makefile tools: hv: rm .*.cmd when make clean 2024-09-05 07:23:08 +00:00
vmbus_bufring.c
vmbus_bufring.h
vmbus_testing