[PATCH v2 3/5] KVM: arm64: Add context-switch of ACCDATA_EL1
Fuad Tabba
fuad.tabba at linux.dev
Mon Oct 26 11:54:16 PDT 2026
On Mon, 26 Oct 2026 at 17:33, Arnd Bergmann <arnd at arndb.de> 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
More information about the linux-arm-kernel
mailing list