Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9daa6817 authored by Marc Zyngier's avatar Marc Zyngier Committed by Sami Tolvanen
Browse files

UPSTREAM: arm/arm64: KVM: Use set/way op trapping to track the state of the caches



Trying to emulate the behaviour of set/way cache ops is fairly
pointless, as there are too many ways we can end-up missing stuff.
Also, there is some system caches out there that simply ignore
set/way operations.

So instead of trying to implement them, let's convert it to VA ops,
and use them as a way to re-enable the trapping of VM ops. That way,
we can detect the point when the MMU/caches are turned off, and do
a full VM flush (which is what the guest was trying to do anyway).

This allows a 32bit zImage to boot on the APM thingy, and will
probably help bootloaders in general.

Signed-off-by: default avatarMarc Zyngier <marc.zyngier@arm.com>
Signed-off-by: default avatarChristoffer Dall <christoffer.dall@linaro.org>

Bug: 31432001
Change-Id: Ic6e0acf47d373f04c9e29d512bb12fded9a76af9
(cherry picked from commit 3c1e716508335eb132c9349cb1a1716c8f7e3d2e)
Signed-off-by: default avatarSami Tolvanen <samitolvanen@google.com>
parent 6937fb2b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment