]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
KVM: PPC: E500: Add dcbtls emulation
authorAlexander Graf <agraf@suse.de>
Thu, 17 Apr 2014 11:25:33 +0000 (13:25 +0200)
committerAlexander Graf <agraf@suse.de>
Fri, 30 May 2014 12:26:17 +0000 (14:26 +0200)
commit8f20a3ab27342171462781cef4637c18d3dbc5f8
tree9f7320513c255bd7e9bd5f0e707a26d1b2453fcd
parent07fec1c2e75ef2f55d7a211414b0d63e185e84f0
KVM: PPC: E500: Add dcbtls emulation

The dcbtls instruction is able to lock data inside the L1 cache.

We don't want to give the guest actual access to hardware cache locks,
as that could influence other VMs on the same system. But we can tell
the guest that its locking attempt failed.

By implementing the instruction we at least don't give the guest a
program exception which it definitely does not expect.

Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/include/asm/reg_booke.h
arch/powerpc/kvm/e500_emulate.c