[PATCHv2 0/3] arm64: kvm: avoid referencing cpu_hwcaps from hyp
Marc Zyngier
maz at kernel.org
Fri Oct 30 06:59:44 EDT 2020
On Mon, 26 Oct 2020 13:49:28 +0000, Mark Rutland wrote:
> In a few places we use cpus_have_const_cap() in hyp code, usually
> because this is hidden within a helper that's also used in regular
> kernel context. As cpus_have_const_cap() generates code to read the
> cpu_hwcaps array before capabilities are finalized, this means we
> generate some potentially-unsound references to regular kernel VAs, but
> this these are redundant as capabilities are finalized before we
> initialize the kvm hyp code.
>
> [...]
Applied to next, thanks!
[1/3] KVM: arm64: Factor out is_{vhe,nvhe}_hyp_code()
commit: e9a33caec90e05673e2f7fb7c80f172031964d25
[2/3] arm64: cpufeature: reorder cpus_have_{const, final}_cap()
commit: dfc4e3f08903ed8fe0b66cc25b64524a82654166
[3/3] arm64: cpufeature: upgrade hyp caps to final
commit: d86de40decaa14e6613af1b2783bf4d589d0f38b
Cheers,
M.
--
Without deviation from the norm, progress is not possible.
More information about the linux-arm-kernel
mailing list