Re: [PATCH v4 09/18] KVM: arm64: Implement HVC handling for protected guests at EL2

From: Fuad Tabba

Date: Wed Nov 11 2026 - 13:07:16 EST


On Wed, 11 Nov 2026 at 17:50, Ryan Roberts <ryan.roberts@xxxxxxx> wrote:
[...]
> > Yes, where the mitigation is the firmware one. The host can disable it
> > with an ARM_SMCCC_ARCH_WORKAROUND_2 call, which EL2 forwards, and EL2
> > doesn't enable it again before running the guest. With TF-A that's
> > only on a Cortex-A76 without SSBS, the only CPU it implements the
> > dynamic workaround for.
>
> If the mitigation is via SSBS but SSBS is not exposed to the guest, I'm guessing
> this is safe because the guest is expected to set SSBS=0 in this case?

Yes. A vCPU is reset with PSTATE.SSBS and SCTLR_EL1.DSSBS clear, so
the guest doesn't have to set it.

Cheers,
/fuad