diff options
author | James Hogan <james.hogan@imgtec.com> | 2014-12-02 15:48:24 +0000 |
---|---|---|
committer | James Hogan <james.hogan@imgtec.com> | 2015-03-27 21:25:21 +0000 |
commit | ab86bd600400357ffa0dfdb1797f587476d01352 (patch) | |
tree | 265d24436dc03ac0e1ff2fa3a1652feb3346b6ff /sound/oss/sb.h | |
parent | c2537ed9fb8e17d713e5e67fcede047699d25814 (diff) | |
download | op-kernel-dev-ab86bd600400357ffa0dfdb1797f587476d01352.zip op-kernel-dev-ab86bd600400357ffa0dfdb1797f587476d01352.tar.gz |
MIPS: KVM: Expose MSA registers
Add KVM register numbers for the MIPS SIMD Architecture (MSA) registers,
and implement access to them with the KVM_GET_ONE_REG / KVM_SET_ONE_REG
ioctls when the MSA capability is enabled (exposed in a later patch) and
present in the guest according to its Config3.MSAP bit.
The MSA vector registers use the same register numbers as the FPU
registers except with a different size (128bits). Since MSA depends on
Status.FR=1, these registers are inaccessible when Status.FR=0. These
registers are returned as a single native endian 128bit value, rather
than least significant half first with each 64-bit half native endian as
the kernel uses internally.
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: 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 'sound/oss/sb.h')
0 files changed, 0 insertions, 0 deletions