]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
uio_hv_generic: Use correct size for interrupt and monitor pages
authorLong Li <longli@microsoft.com>
Tue, 6 May 2025 00:56:34 +0000 (17:56 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:05:27 +0000 (11:05 +0100)
commit8ec133fb054a9c587afbb620096de866bafb91f6
tree6bdf0fce2f9c1a98a1e2ce3e16d2ef7a109854a1
parent3562c09feeb8d8e9d102ce6840e8c7d57a7feb5c
uio_hv_generic: Use correct size for interrupt and monitor pages

commit c951ab8fd3589cf6991ed4111d2130816f2e3ac2 upstream.

Interrupt and monitor pages should be in Hyper-V page size (4k bytes).
This can be different from the system page size.

This size is read and used by the user-mode program to determine the
mapped data region. An example of such user-mode program is the VMBus
driver in DPDK.

Cc: stable@vger.kernel.org
Fixes: 95096f2fbd10 ("uio-hv-generic: new userspace i/o driver for VMBus")
Signed-off-by: Long Li <longli@microsoft.com>
Reviewed-by: Michael Kelley <mhklinux@outlook.com>
Link: https://lore.kernel.org/r/1746492997-4599-3-git-send-email-longli@linuxonhyperv.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Message-ID: <1746492997-4599-3-git-send-email-longli@linuxonhyperv.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/uio/uio_hv_generic.c