]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Drivers: hv: Allocate interrupt and monitor pages aligned to system page boundary
authorLong Li <longli@microsoft.com>
Tue, 6 May 2025 00:56:33 +0000 (17:56 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 6 Jul 2025 08:57:58 +0000 (10:57 +0200)
commit3ef2b7a928a2ef05017f28e4f563014ce5981081
tree19e1a03315e1e017b16bf69154c6017c962e321a
parent7f2afcbfe4f6b6047b5f68db5067b7321e5be125
Drivers: hv: Allocate interrupt and monitor pages aligned to system page boundary

[ Upstream commit 09eea7ad0b8e973dcf5ed49902838e5d68177f8e ]

There are use cases that interrupt and monitor pages are mapped to
user-mode through UIO, so they need to be system page aligned. Some
Hyper-V allocation APIs introduced earlier broke those requirements.

Fix this by using page allocation functions directly for interrupt
and monitor pages.

Cc: stable@vger.kernel.org
Fixes: ca48739e59df ("Drivers: hv: vmbus: Move Hyper-V page allocator to arch neutral code")
Signed-off-by: Long Li <longli@microsoft.com>
Reviewed-by: Michael Kelley <mhklinux@outlook.com>
Link: https://lore.kernel.org/r/1746492997-4599-2-git-send-email-longli@linuxonhyperv.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Message-ID: <1746492997-4599-2-git-send-email-longli@linuxonhyperv.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hv/connection.c