]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
KVM: MIPS/VZ: Emulate hit CACHE ops for Octeon III
authorJames Hogan <james.hogan@imgtec.com>
Tue, 14 Mar 2017 10:25:49 +0000 (10:25 +0000)
committerJames Hogan <james.hogan@imgtec.com>
Tue, 28 Mar 2017 14:36:19 +0000 (15:36 +0100)
commit3ba731daf09a2dd9515713e2428ef859bb50957b
tree9b1918df19154d34de72f719b17065f50c3194e7
parent824533ad169f8bafcafba385a428e5b680928411
KVM: MIPS/VZ: Emulate hit CACHE ops for Octeon III

Octeon III doesn't implement the optional GuestCtl0.CG bit to allow
guest mode to execute virtual address based CACHE instructions, so
implement emulation of a few important ones specifically for Octeon III
in response to a GPSI exception.

Currently the main reason to perform these operations is for icache
synchronisation, so they are implemented as a simple icache flush with
local_flush_icache_range().

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: "Radim Krčmář" <rkrcmar@redhat.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: David Daney <david.daney@cavium.com>
Cc: Andreas Herrmann <andreas.herrmann@caviumnetworks.com>
Cc: linux-mips@linux-mips.org
Cc: kvm@vger.kernel.org
arch/mips/kvm/vz.c