]> 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)
commit941f33e071c81cba80f2d8b4833d0e9a472af66c
tree43d41970ef33182b085a81bae52138aaf917e9bb
parentf6fa16fe22475fd6db4c7a7a80d43ed59c292c30
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