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

From: Tom Lendacky
Date: Tue Aug 22 2023 - 15:38:00 EST


On 8/21/23 20:16, Wei Liu wrote:
On Fri, Aug 18, 2023 at 06:29:10AM -0400, Tianyu Lan wrote:
From: Tianyu Lan <tiala@xxxxxxxxxxxxx>

Tianyu Lan (8):
x86/hyperv: Add sev-snp enlightened guest static key
x86/hyperv: Set Virtual Trust Level in VMBus init message
x86/hyperv: Mark Hyper-V vp assist page unencrypted in SEV-SNP
enlightened guest
drivers: hv: Mark percpu hvcall input arg page unencrypted in SEV-SNP
enlightened guest
x86/hyperv: Use vmmcall to implement Hyper-V hypercall in sev-snp
enlightened guest
clocksource: hyper-v: Mark hyperv tsc page unencrypted in sev-snp
enlightened guest
x86/hyperv: Add smp support for SEV-SNP guest
x86/hyperv: Add hyperv-specific handling for VMMCALL under SEV-ES

Applied to hyperv-next. Thanks.

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'
make[2]: *** [scripts/Makefile.vmlinux:36: vmlinux] Error 1
make[1]: *** [/root/kernels/linux-next-build-x86_64/Makefile:1166: vmlinux] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:234: __sub-make] Error 2

Thanks,
Tom