aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/virtual
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 /Documentation/virtual
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 'Documentation/virtual')
-rw-r--r--Documentation/virtual/kvm/api.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/Documentation/virtual/kvm/api.txt b/Documentation/virtual/kvm/api.txt
index 62809871814b..1490eb0ef798 100644
--- a/Documentation/virtual/kvm/api.txt
+++ b/Documentation/virtual/kvm/api.txt
@@ -3335,6 +3335,18 @@ done the KVM_REG_MIPS_FPR_* and KVM_REG_MIPS_FCR_* registers can be accessed
3335Config5.FRE bits are accessible via the KVM API and also from the guest, 3335Config5.FRE bits are accessible via the KVM API and also from the guest,
3336depending on them being supported by the FPU. 3336depending on them being supported by the FPU.
3337 3337
33386.10 KVM_CAP_MIPS_MSA
3339
3340Architectures: mips
3341Target: vcpu
3342Parameters: args[0] is reserved for future use (should be 0).
3343
3344This capability allows the use of the MIPS SIMD Architecture (MSA) by the guest.
3345It allows the Config3.MSAP bit to be set to enable the use of MSA by the guest.
3346Once this is done the KVM_REG_MIPS_VEC_* and KVM_REG_MIPS_MSA_* registers can be
3347accessed, and the Config5.MSAEn bit is accessible via the KVM API and also from
3348the guest.
3349
33387. Capabilities that can be enabled on VMs 33507. Capabilities that can be enabled on VMs
3339------------------------------------------ 3351------------------------------------------
3340 3352