x86/hyperv: Add new hvcall guest address host visibility support
authorTianyu Lan <Tianyu.Lan@microsoft.com>
Mon, 25 Oct 2021 12:21:08 +0000 (08:21 -0400)
committerWei Liu <wei.liu@kernel.org>
Thu, 28 Oct 2021 11:21:33 +0000 (11:21 +0000)
commit810a521265023a1d5c6c081ea2d216bc63d422f5
treea62913d60a1a893bcc8bcb4764d1686e0cc82989
parentaf788f355e343373490b7d2e361016e7c24a0ffa
x86/hyperv: Add new hvcall guest address host visibility support

Add new hvcall guest address host visibility support to mark
memory visible to host. Call it inside set_memory_decrypted
/encrypted(). Add HYPERVISOR feature check in the
hv_is_isolation_supported() to optimize in non-virtualization
environment.

Acked-by: Dave Hansen <dave.hansen@intel.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Signed-off-by: Tianyu Lan <Tianyu.Lan@microsoft.com>
Link: https://lore.kernel.org/r/20211025122116.264793-4-ltykernel@gmail.com
[ wei: fix conflicts with tip ]
Signed-off-by: Wei Liu <wei.liu@kernel.org>
arch/x86/hyperv/Makefile
arch/x86/hyperv/hv_init.c
arch/x86/hyperv/ivm.c [new file with mode: 0644]
arch/x86/include/asm/hyperv-tlfs.h
arch/x86/include/asm/mshyperv.h
arch/x86/mm/pat/set_memory.c
include/asm-generic/hyperv-tlfs.h