aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/virtual/kvm/api.txt
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:18 -0400
commit5fafd8748b366105e08c198892e9fe02ef15c021 (patch)
treee644c6cb5e4acdb1c1047022cd835d8695fd1028 /Documentation/virtual/kvm/api.txt
parent379245cdf1d1efc1eccc38bf0cc985dae232123d (diff)
MIPS: KVM: Wire up FPU capability
Now that the code is in place for KVM to support FPU in MIPS KVM guests, wire up the new KVM_CAP_MIPS_FPU capability. For backwards compatibility, the capability must be explicitly enabled in order to detect or make use of the FPU from the guest. Signed-off-by: James Hogan <james.hogan@imgtec.com> Cc: 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/kvm/api.txt')
-rw-r--r--Documentation/virtual/kvm/api.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/Documentation/virtual/kvm/api.txt b/Documentation/virtual/kvm/api.txt
index f3c198360785..a1e9bfa5fe9e 100644
--- a/Documentation/virtual/kvm/api.txt
+++ b/Documentation/virtual/kvm/api.txt
@@ -3312,6 +3312,19 @@ Parameters: none
3312This capability enables the in-kernel irqchip for s390. Please refer to 3312This capability enables the in-kernel irqchip for s390. Please refer to
3313"4.24 KVM_CREATE_IRQCHIP" for details. 3313"4.24 KVM_CREATE_IRQCHIP" for details.
3314 3314
33156.9 KVM_CAP_MIPS_FPU
3316
3317Architectures: mips
3318Target: vcpu
3319Parameters: args[0] is reserved for future use (should be 0).
3320
3321This capability allows the use of the host Floating Point Unit by the guest. It
3322allows the Config1.FP bit to be set to enable the FPU in the guest. Once this is
3323done the KVM_REG_MIPS_FPR_* and KVM_REG_MIPS_FCR_* registers can be accessed
3324(depending on the current guest FPU register mode), and the Status.FR,
3325Config5.FRE bits are accessible via the KVM API and also from the guest,
3326depending on them being supported by the FPU.
3327
33157. Capabilities that can be enabled on VMs 33287. Capabilities that can be enabled on VMs
3316------------------------------------------ 3329------------------------------------------
3317 3330