]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: MIPS/VZ: VZ hardware setup for Octeon III
authorJames Hogan <james.hogan@imgtec.com>
Tue, 14 Mar 2017 10:25:48 +0000 (10:25 +0000)
committerJames Hogan <james.hogan@imgtec.com>
Tue, 28 Mar 2017 14:36:18 +0000 (15:36 +0100)
commit175d43cc5da0bc77566a3136e7e8dfd0a164d11d
tree43d41970ef33182b085a81bae52138aaf917e9bb
parent4e3b0f11498b4a0e772d4552a0cabde477c7d3ef
KVM: MIPS/VZ: VZ hardware setup for Octeon III

Set up hardware virtualisation on Octeon III cores, configuring guest
interrupt routing and carving out half of the root TLB for guest use,
restoring it back again afterwards.

We need to be careful to inhibit TLB shutdown machine check exceptions
while invalidating guest TLB entries, since TLB invalidation is not
available so guest entries must be invalidated by setting them to unique
unmapped addresses, which could conflict with mappings set by the guest
or root if recently repartitioned.

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/tlb.c
arch/mips/kvm/vz.c