[PATCH v4 2/5] KVM: arm64: Make stage2_has_fwb global scope

Ankit Agrawal ankita at nvidia.com
Tue May 20 17:50:04 PDT 2025


>>
>> Change the scope of stage2_has_fwb as it will be used in
>> broader KVM code to determine whether the FWB feature is
>> supported by the hardware.
>
> Please just use the cpucap directly outside of the page table code. The
> only non-FWB stage-2 that KVM maintains on a FEAT_S2FWB machine is for
> the host when using protected mode. I don't anticipate that changing any
> time soon.

Thanks Oliver for reviewing the change.

I'll remove this patch and make the change to use
cpus_have_final_cap(ARM64_HAS_STAGE2_FWB) instead of stage2_has_fwb()
in the next version.

> Thanks,
> Oliver







More information about the linux-arm-kernel mailing list