Re: [PATCH] KVM: arm64: Fix masks in stage2_pte_cacheable()

From: Marc Zyngier
Date: Thu Oct 29 2020 - 17:09:37 EST


On Thu, 29 Oct 2020 14:47:16 +0000, Will Deacon wrote:
> stage2_pte_cacheable() tries to figure out whether the mapping installed
> in its 'pte' parameter is cacheable or not. Unfortunately, it fails
> miserably because it extracts the memory attributes from the entry using
> FIELD_GET(), which returns the attributes shifted down to bit 0, but then
> compares this with the unshifted value generated by the PAGE_S2_MEMATTR()
> macro.
>
> [...]

Applied to next, thanks!

[1/1] KVM: arm64: Fix masks in stage2_pte_cacheable()
commit: e2fc6a9f686d037cbd9b08b9fb657685b4a722d3

Cheers,

M.
--
Without deviation from the norm, progress is not possible.