aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorJames Hogan <james.hogan@imgtec.com>2014-12-08 18:07:56 -0500
committerJames Hogan <james.hogan@imgtec.com>2015-03-27 17:25:22 -0400
commitd952bd070f79b6dcbad52c03dbc41cbc8ba086c8 (patch)
treee4b361c9c5e9529d427a96d53cabbc57b204dad8 /include/uapi
parentab86bd600400357ffa0dfdb1797f587476d01352 (diff)
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
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/linux/kvm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h
index ce49688976d2..05a2083f7a28 100644
--- a/include/uapi/linux/kvm.h
+++ b/include/uapi/linux/kvm.h
@@ -803,6 +803,7 @@ struct kvm_ppc_smmu_info {
803#define KVM_CAP_S390_USER_STSI 109 803#define KVM_CAP_S390_USER_STSI 109
804#define KVM_CAP_S390_SKEYS 110 804#define KVM_CAP_S390_SKEYS 110
805#define KVM_CAP_MIPS_FPU 111 805#define KVM_CAP_MIPS_FPU 111
806#define KVM_CAP_MIPS_MSA 112
806 807
807#ifdef KVM_CAP_IRQ_ROUTING 808#ifdef KVM_CAP_IRQ_ROUTING
808 809