]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: KVM: Wire up MSA capability
authorJames Hogan <james.hogan@imgtec.com>
Mon, 8 Dec 2014 23:07:56 +0000 (23:07 +0000)
committerJames Hogan <james.hogan@imgtec.com>
Fri, 27 Mar 2015 21:25:22 +0000 (21:25 +0000)
commitfd44d4c9b7448a5cec2d1d58748d12a95ab94e34
treee4b361c9c5e9529d427a96d53cabbc57b204dad8
parent9f4a20b580521cb00b84211da446d726bdfb934e
MIPS: KVM: Wire up MSA capability

Now that the code is in place for KVM to support MIPS SIMD Architecutre
(MSA) in MIPS guests, wire up the new KVM_CAP_MIPS_MSA capability.

For backwards compatibility, the capability must be explicitly enabled
in order to detect or make use of MSA from the guest.

The capability is not supported if the hardware supports MSA vector
partitioning, since the extra support cannot be tested yet and it
extends the state that the userland program would have to save.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Gleb Natapov <gleb@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: linux-mips@linux-mips.org
Cc: kvm@vger.kernel.org
Cc: linux-api@vger.kernel.org
Cc: linux-doc@vger.kernel.org
Documentation/virtual/kvm/api.txt
arch/mips/kvm/mips.c
include/uapi/linux/kvm.h