Re: [PATCH v6 06/13] x86/hyperv: Change vTOM handling to use standard coco mechanisms

From: Sathyanarayanan Kuppuswamy
Date: Fri Mar 24 2023 - 13:28:47 EST


Hi,

On 3/24/23 10:10 AM, Dexuan Cui wrote:
>> From: Borislav Petkov <bp@xxxxxxxxx>
>> Sent: Friday, March 24, 2023 8:49 AM
>> ...
>> With first six applied:
>>
>> arch/x86/coco/core.c:123:7: error: use of undeclared identifier 'sev_status'
>> if (sev_status & MSR_AMD64_SNP_VTOM)
>> ^
>
> Your config doesn't define CONFIG_AMD_MEM_ENCRYPT:
> # CONFIG_AMD_MEM_ENCRYPT is not set

If you have config dependency, I think you should fix it in the code or add
Kconfig dependency.

--
Sathyanarayanan Kuppuswamy
Linux Kernel Developer