Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86/hyperv: Don't use auto-eoi when Secure AVIC is available

Hyper-V doesn't support auto-eoi with Secure AVIC.
So set the HV_DEPRECATING_AEOI_RECOMMENDED flag
to force writing the EOI register after handling an interrupt.

Reviewed-by: Michael Kelley <mhklinux@outlook.com>
Reviewed-by: Neeraj Upadhyay <Neeraj.Upadhyay@amd.com>
Signed-off-by: Tianyu Lan <tiala@microsoft.com>
Signed-off-by: Wei Liu <wei.liu@kernel.org>

authored by

Tianyu Lan and committed by
Wei Liu
c52c957e 3e1b6115

+3
+3
arch/x86/kernel/cpu/mshyperv.c
··· 470 470 471 471 hv_identify_partition_type(); 472 472 473 + if (cc_platform_has(CC_ATTR_SNP_SECURE_AVIC)) 474 + ms_hyperv.hints |= HV_DEPRECATING_AEOI_RECOMMENDED; 475 + 473 476 if (ms_hyperv.hints & HV_X64_HYPERV_NESTED) { 474 477 hv_nested = true; 475 478 pr_info("Hyper-V: running on a nested hypervisor\n");