x86: hv: Add function to allocate zeroed page for Hyper-V
authorHimadri Pandya <himadrispandya@gmail.com>
Tue, 30 Jul 2019 09:49:43 +0000 (09:49 +0000)
committerSasha Levin <sashal@kernel.org>
Fri, 22 Nov 2019 01:10:45 +0000 (20:10 -0500)
commitfa36dcdf8b200f4c175d0a00a8c99439ee0df95d
tree088bc92d51b2fc65f434b2c9b6cab3257b573d66
parent0541a225945d5e0d650353f51614812aa820c6be
x86: hv: Add function to allocate zeroed page for Hyper-V

Hyper-V assumes page size to be 4K. While this assumption holds true on
x86 architecture, it might not  be true for ARM64 architecture. Hence
define hyper-v specific function to allocate a zeroed page which can
have a different implementation on ARM64 architecture to handle the
conflict between hyper-v's assumed page size and actual guest page size.

Signed-off-by: Himadri Pandya <himadri18.07@gmail.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/hyperv/hv_init.c
arch/x86/include/asm/mshyperv.h