mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-01-12 01:20:14 +00:00
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>
This commit is contained in:
parent
4cc1aa469c
commit
f34f5e576f
@ -293,6 +293,9 @@ static void hv_send_ipi_self(int vector)
|
||||
|
||||
void __init hv_apic_init(void)
|
||||
{
|
||||
if (cc_platform_has(CC_ATTR_SNP_SECURE_AVIC))
|
||||
return;
|
||||
|
||||
if (ms_hyperv.hints & HV_X64_CLUSTER_IPI_RECOMMENDED) {
|
||||
pr_info("Hyper-V: Using IPI hypercalls\n");
|
||||
/*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user