Re: [PATCH v2 3/5] KVM: arm64: Add context-switch of ACCDATA_EL1
From: Fuad Tabba
Date: Mon Oct 26 2026 - 14:55:28 EST
On Mon, 26 Oct 2026 at 17:33, Arnd Bergmann <arnd@xxxxxxxx> wrote:
>
> On Sun, Oct 25, 2026, at 08:51, Fuad Tabba wrote:
> > return kvm_has_sctlr2(kern_hyp_va(vcpu->kvm));
> > }
> >
> > +static inline bool ctxt_has_accdata(struct kvm_cpu_context *ctxt)
> > +{
> > + struct kvm_vcpu *vcpu;
> > +
> > + /* The host never uses ACCDATA_EL1 */
> > + if (!cpus_have_final_cap(ARM64_HAS_LS64_ACCDATA) ||
> > !ctxt_is_guest(ctxt))
> > + return false;
>
> Maybe add a wrapper for this as we have for other features?
Thanks Arnd. Makes sense, I'll do this if I respin.
Cheers,
/fuad