Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
platform/snp: enable alternate injection only if requested
The current logic for enabling alternate injection is broken, as it will enable it always. This is causing a crash during boot when running under a hypervisor that does not support the feature: [SVSM] ERROR: Panic: CPU[0] panicked at kernel/src/svsm.rs:449:36: Failed to setup guest VMSA/CAA: Ghcb(VmgexitError(2, 6)) [SVSM] ---BACKTRACE---: [SVSM] [0xffffff8000128445] [SVSM] Invalid frame [SVSM] ---END--- Fix this by checking upfront if the feature was requested. Fixes: 978aef5 ("protocols/apic: update the registration-based APIC protocol") Signed-off-by: Carlos López <[email protected]>
- Loading branch information