x86/hyperv: allocate output arg pages if required
authorWei Liu <wei.liu@kernel.org>
Wed, 3 Feb 2021 15:04:24 +0000 (15:04 +0000)
committerWei Liu <wei.liu@kernel.org>
Thu, 11 Feb 2021 08:47:06 +0000 (08:47 +0000)
commit5d0f077e0f413b7eca827b16ea8bfc4569e3946c
treed232e1a9f50e9a855250d21abe54514c98011f22
parent7d4163c8315729140ad99d6e1ab10dfc7a685640
x86/hyperv: allocate output arg pages if required

When Linux runs as the root partition, it will need to make hypercalls
which return data from the hypervisor.

Allocate pages for storing results when Linux runs as the root
partition.

Signed-off-by: Lillian Grassin-Drake <ligrassi@microsoft.com>
Co-Developed-by: Lillian Grassin-Drake <ligrassi@microsoft.com>
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Link: https://lore.kernel.org/r/20210203150435.27941-6-wei.liu@kernel.org
arch/x86/hyperv/hv_init.c
arch/x86/include/asm/mshyperv.h