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

Configure Feed

Select the types of activity you want to include in your feed.

x86/hyperv: Don't use hv apic driver when Secure AVIC is available

When Secure AVIC is available, the AMD x2apic Secure
AVIC driver will be selected. In that case, have
hv_apic_init() return immediately without doing
anything.

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
f34f5e57 4cc1aa46

+3
+3
arch/x86/hyperv/hv_apic.c
··· 293 293 294 294 void __init hv_apic_init(void) 295 295 { 296 + if (cc_platform_has(CC_ATTR_SNP_SECURE_AVIC)) 297 + return; 298 + 296 299 if (ms_hyperv.hints & HV_X64_CLUSTER_IPI_RECOMMENDED) { 297 300 pr_info("Hyper-V: Using IPI hypercalls\n"); 298 301 /*