]> git.ipfire.org Git - thirdparty/kernel/linux.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)
committerWei Liu <wei.liu@kernel.org>
Fri, 23 May 2025 16:30:56 +0000 (16:30 +0000)
commitc951ab8fd3589cf6991ed4111d2130816f2e3ac2
treea108f59dac8f4cdd6cd1ce6bd0f3fcb9a7896b49
parent09eea7ad0b8e973dcf5ed49902838e5d68177f8e
uio_hv_generic: Use correct size for interrupt and monitor pages

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>
drivers/uio/uio_hv_generic.c