x86/hyperv: Initialize shared memory boundary in the Isolation VM.
authorTianyu Lan <Tianyu.Lan@microsoft.com>
Mon, 25 Oct 2021 12:21:07 +0000 (08:21 -0400)
committerWei Liu <wei.liu@kernel.org>
Thu, 28 Oct 2021 10:47:52 +0000 (10:47 +0000)
commitaf788f355e343373490b7d2e361016e7c24a0ffa
treed3f24c0227d4f309c4428a24791700f9c3f8a725
parent0cc4f6d9f0b9f20f3f1e1149bdb6737c0b4e134a
x86/hyperv: Initialize shared memory boundary in the Isolation VM.

Hyper-V exposes shared memory boundary via cpuid
HYPERV_CPUID_ISOLATION_CONFIG and store it in the
shared_gpa_boundary of ms_hyperv struct. This prepares
to share memory with host for SNP guest.

Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Signed-off-by: Tianyu Lan <Tianyu.Lan@microsoft.com>
Link: https://lore.kernel.org/r/20211025122116.264793-3-ltykernel@gmail.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
arch/x86/kernel/cpu/mshyperv.c
include/asm-generic/mshyperv.h