]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
Drivers: hv: vmbus: Always use HV_HYP_PAGE_SIZE for gpadl
authorBoqun Feng <boqun.feng@gmail.com>
Wed, 16 Sep 2020 03:48:07 +0000 (11:48 +0800)
committerWei Liu <wei.liu@kernel.org>
Mon, 28 Sep 2020 08:55:12 +0000 (08:55 +0000)
commita5dda201a0384e577884d9427dc60a336ced216f
tree84fc2a76a7cc0c54ef619a3d32a12f1508c85769
parent49971e6bad2da980686368baa34039907f62b516
Drivers: hv: vmbus: Always use HV_HYP_PAGE_SIZE for gpadl

Since the hypervisor always uses 4K as its page size, the size of PFNs
used for gpadl should be HV_HYP_PAGE_SIZE rather than PAGE_SIZE, so
adjust this accordingly as the preparation for supporting 16K/64K page
size guests. No functional changes on x86, since PAGE_SIZE is always 4k
(equals to HV_HYP_PAGE_SIZE).

Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Link: https://lore.kernel.org/r/20200916034817.30282-2-boqun.feng@gmail.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
drivers/hv/channel.c