diff options
author | James Hogan <james.hogan@imgtec.com> | 2014-12-02 15:48:24 (GMT) |
---|---|---|
committer | James Hogan <james.hogan@imgtec.com> | 2015-03-27 21:25:17 (GMT) |
commit | 379245cdf1d1efc1eccc38bf0cc985dae232123d (patch) | |
tree | 6b61c5f80129fac86533f2e7cc3d05e8320324b8 /scripts | |
parent | 1c0cd66adbac8aa339b9521eceb18b00d1b0699e (diff) | |
download | linux-379245cdf1d1efc1eccc38bf0cc985dae232123d.tar.xz |
MIPS: KVM: Expose FPU registers
Add KVM register numbers for the MIPS FPU registers, and implement
access to them with the KVM_GET_ONE_REG / KVM_SET_ONE_REG ioctls when
the FPU capability is enabled (exposed in a later patch) and present in
the guest according to its Config1.FP bit.
The registers are accessible in the current mode of the guest, with each
sized access showing what the guest would see with an equivalent access,
and like the architecture they may become UNPREDICTABLE if the FR mode
is changed. When FR=0, odd doubles are inaccessible as they do not exist
in that mode.
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Cc: Paul Burton <paul.burton@imgtec.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 'scripts')
0 files changed, 0 insertions, 0 deletions