diff options
author | Boqun Feng <boqun.feng@gmail.com> | 2020-09-16 11:48:13 +0800 |
---|---|---|
committer | Wei Liu <wei.liu@kernel.org> | 2020-09-28 08:55:13 +0000 |
commit | 11d8620e0867cb21313aa66ff6ce0172e28f68ff (patch) | |
tree | ade19dd759c15c042e1eea5c72cdeea9710c71b0 /security | |
parent | 106dee08408118c5b50387817e74419436e8b651 (diff) |
hv_netvsc: Use HV_HYP_PAGE_SIZE for Hyper-V communication
When communicating with Hyper-V, HV_HYP_PAGE_SIZE should be used since
that's the page size used by Hyper-V and Hyper-V expects all
page-related data using the unit of HY_HYP_PAGE_SIZE, for example, the
"pfn" in hv_page_buffer is actually the HV_HYP_PAGE (i.e. the Hyper-V
page) number.
In order to support guest whose page size is not 4k, we need to make
hv_netvsc always use HV_HYP_PAGE_SIZE for Hyper-V communication.
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Link: https://lore.kernel.org/r/20200916034817.30282-8-boqun.feng@gmail.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions