Re: [PATCHv2 0/3] arm64: kvm: avoid referencing cpu_hwcaps from hyp

2020-10-30 Thread Marc Zyngier
On Mon, 26 Oct 2020 13:49:28 +, 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

Re: [PATCHv2 0/3] arm64: kvm: avoid referencing cpu_hwcaps from hyp

2020-10-29 Thread Marc Zyngier
[+ Catalin] On Mon, 26 Oct 2020 13:49:28 +, 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

[PATCHv2 0/3] arm64: kvm: avoid referencing cpu_hwcaps from hyp

2020-10-26 Thread Mark Rutland
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