RE: [PATCH v7 0/8] x86/hyperv: Add AMD sev-snp enlightened guest support on hyperv

From: Dexuan Cui
Date: Tue Aug 22 2023 - 23:09:04 EST


> From: Tom Lendacky <thomas.lendacky@xxxxxxx>
> Sent: Tuesday, August 22, 2023 12:38 PM
> To: Wei Liu <wei.liu@xxxxxxxxxx>; Tianyu Lan <ltykernel@xxxxxxxxx>
> [...]
> Just found that this series fails to build if CONFIG_HYPERV is not set:
>
> ld: arch/x86/kernel/cpu/mshyperv.o: in function `ms_hyperv_init_platform':
> /root/kernels/linux-next-build-x86_64/arch/x86/kernel/cpu/mshyperv.c:417:
> undefined reference to `isolation_type_en_snp'

I made a fix:
https://github.com/dcui/linux/commit/29fadabcaa2cb3466ace1dff13b4d948a71f888d

I'll post the fix immediately.