]> git.baikalelectronics.ru Git - kernel.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)
commit8f4068c97f4bddf09202ddc99d6d7b8ad704fae0
tree9f7320513c255bd7e9bd5f0e707a26d1b2453fcd
parent6c91d8f50b791f38d0f1f552a9e80ee49521024c
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