Re: [PATCH 1/4] x86/hyperv: Add missing ARCH_HAS_CC_PLATFORM dependency

From: Tianyu Lan
Date: Wed Feb 23 2022 - 05:43:52 EST




On 2/23/2022 6:41 PM, Borislav Petkov wrote:
On Wed, Feb 23, 2022 at 03:04:41PM +0800, Tianyu Lan wrote:
Current Hyper-V Isolation VM requires AMD_MEM_ENCRYPT option which

Where is that isolation VM option? Out of tree?

Because

$ git grep AMD_MEM_ENCRYPT | grep Kconfig
arch/x86/Kconfig:1540:config AMD_MEM_ENCRYPT
arch/x86/Kconfig:1553:config AMD_MEM_ENCRYPT_ACTIVE_BY_DEFAULT
arch/x86/Kconfig:1555: depends on AMD_MEM_ENCRYPT

and those ain't it.

Hyper-V code check cpuid during runtime and there is no Hyper-V
isolation VM option.