Drivers: hv: Specify receive buffer size using Hyper-V page size
authorHimadri Pandya <himadrispandya@gmail.com>
Thu, 25 Jul 2019 05:03:14 +0000 (05:03 +0000)
committerSasha Levin <sashal@kernel.org>
Fri, 22 Nov 2019 01:10:45 +0000 (20:10 -0500)
commitb14d749ac5abdf311321172ae11e6ad1be4293e9
treeee67f86779dd3214e128fa340adfd0c917cb9d51
parentc48d8b04893afe35fd6f5ccbf339493bba277d43
Drivers: hv: Specify receive buffer size using Hyper-V page size

The recv_buffer is used to retrieve data from the VMbus ring buffer.
VMbus ring buffers are sized based on the guest page size which
Hyper-V assumes to be 4KB. But it may be different on some
architectures. So use the Hyper-V page size to allocate the
recv_buffer and set the maximum size to receive.

Signed-off-by: Himadri Pandya <himadri18.07@gmail.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hv/hv_fcopy.c
drivers/hv/hv_kvp.c
drivers/hv/hv_snapshot.c
drivers/hv/hv_util.c