[PATCH] KVM: arm64: Take a protected vCPU's TWI and TWE only at vCPU load

Marc Zyngier maz at kernel.org
Mon Oct 26 05:01:07 PDT 2026


On Sat, 17 Oct 2026 12:52:04 -0400, Sasha Levin wrote:
> Commit 06499de8f998 ("KVM: arm64: Skip fixed-feature state flush for
> protected vCPUs") moved the copy of the host's TWI and TWE in
> flush_hyp_vcpu() into the non-protected branch: a protected vCPU takes
> them in __pkvm_vcpu_load() instead, and only VSE comes from the host on
> each entry.
> 
> Commit 04447b95c62b ("KVM: arm64: Use the host's HCR_EL2 for
> non-protected VMs in pKVM") was written against the old code, where
> both VM types took TWI, TWE and VSE on each entry, and kept that for a
> protected VM as PKVM_HCR_EL2_HOST_PVM. The merge of the two applies
> PKVM_HCR_EL2_HOST_PVM in the common path, so a protected vCPU takes TWI
> and TWE from the host's vCPU on every entry again.
> 
> [...]

Applied to fixes, thanks!

[1/1] KVM: arm64: Take a protected vCPU's TWI and TWE only at vCPU load
      commit: 5b34f0b4adbf983174e53721f68b617113376f2f

Cheers,

	M.
-- 
Without deviation from the norm, progress is not possible.





More information about the linux-arm-kernel mailing list