Skip to content
Commit c789b90a authored by Tianyu Lan's avatar Tianyu Lan Committed by Wei Liu
Browse files

x86/hyper-v: Add hyperv Isolation VM check in the cc_platform_has()



Hyper-V provides Isolation VM for confidential computing support and
guest memory is encrypted in it. Places checking cc_platform_has()
with GUEST_MEM_ENCRYPT attr should return "True" in Isolation VM.

Hyper-V Isolation VMs need to adjust the SWIOTLB size just like SEV
guests. Add a hyperv_cc_platform_has() variant which enables that.

Signed-off-by: default avatarTianyu Lan <Tianyu.Lan@microsoft.com>
Acked-by: default avatarBorislav Petkov <bp@suse.de>
Reviewed-by: default avatarMichael Kelley <mikelley@microsoft.com>
Link: https://lore.kernel.org/r/20211213071407.314309-3-ltykernel@gmail.com


Signed-off-by: default avatarWei Liu <wei.liu@kernel.org>
parent 1a5e91d8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment