[PATCH v5 2/5] KVM: arm64: New function to determine hardware cache management support

Ankit Agrawal ankita at nvidia.com
Fri May 23 18:41:50 PDT 2025


>>> +/* hardware support cache management */
>>> +bool kvm_arch_supports_cacheable_pfnmap(void);
>> Won't this cause a build warning on non-ARM builds, b/c there is no
>> resolution of this function for the other arch's?
>> Need #ifdef or default-rtn-0 function for arch's that don't have this function?
>>
>
> ah, I see you have the weak function in patch 5/5.
> But I think you have to move that hunk to this patch, so a bisect won't cause
> a build warning (or failure, depending on how a distro sets -W in its builds).

Thanks Donald for catching that. Fixed in v6.


More information about the linux-arm-kernel mailing list