Re: [PATCH v16 30/45] KVM: arm64: CCA: Handle realm vCPU load
From: Kohei Enju
Date: Mon Aug 10 2026 - 10:56:10 EST
On 08/03 14:43, Steven Price wrote:
> When loading a realm VCPU much of the work is handled by the RMM so only
> some of the actions are required. Rearrange kvm_arch_vcpu_load()
> slightly so we can bail out early for a realm guest.
Hi Steven,
I found that Realm guests can execute WFI/WFE instructions without
causing a REC exit, ignoring KVM's WFx trap policy.
I'd suggest translating HCR_EL2.TWE/TWI into the corresponding
run->enter.flags to honor the policy. Below is the patch I tested.
----