diff options
| author | Roman Kisel <[email protected]> | 2025-05-07 18:22:25 +0000 |
|---|---|---|
| committer | Wei Liu <[email protected]> | 2025-05-23 16:30:56 +0000 |
| commit | 86c48271e0d60c82665e9fd61277002391efcef7 (patch) | |
| tree | 75233cff9b17d8515054c1a70c12b2fd9f3d839f /drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c | |
| parent | PCI: hv: Get vPCI MSI IRQ domain from DeviceTree (diff) | |
| download | kernel-86c48271e0d60c82665e9fd61277002391efcef7.tar.gz kernel-86c48271e0d60c82665e9fd61277002391efcef7.zip | |
x86/hyperv: Fix APIC ID and VP index confusion in hv_snp_boot_ap()
To start an application processor in SNP-isolated guest, a hypercall
is used that takes a virtual processor index. The hv_snp_boot_ap()
function uses that START_VP hypercall but passes as VP index to it
what it receives as a wakeup_secondary_cpu_64 callback: the APIC ID.
As those two aren't generally interchangeable, that may lead to hung
APs if the VP index and the APIC ID don't match up.
Update the parameter names to avoid confusion as to what the parameter
is. Use the APIC ID to the VP index conversion to provide the correct
input to the hypercall.
Cc: [email protected]
Fixes: 44676bb9d566 ("x86/hyperv: Add smp support for SEV-SNP guest")
Signed-off-by: Roman Kisel <[email protected]>
Reviewed-by: Michael Kelley <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Wei Liu <[email protected]>
Message-ID: <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c')
0 files changed, 0 insertions, 0 deletions
