aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/uapi
diff options
context:
space:
mode:
authorMihai Caraman <mihai.caraman@freescale.com>2014-08-20 09:36:25 -0400
committerAlexander Graf <agraf@suse.de>2014-09-22 04:11:33 -0400
commit3840edc8033ad5b86deee309c1c321ca54257452 (patch)
tree3c193a8480a3a9f54a7a4559a4be2265c9741c4d /arch/powerpc/include/uapi
parent8a41ea53b32ffbe7524e3424cf0403fa3b4c73fb (diff)
KVM: PPC: Move ONE_REG AltiVec support to powerpc
Move ONE_REG AltiVec support to powerpc generic layer. Signed-off-by: Mihai Caraman <mihai.caraman@freescale.com> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/powerpc/include/uapi')
-rw-r--r--arch/powerpc/include/uapi/asm/kvm.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/powerpc/include/uapi/asm/kvm.h b/arch/powerpc/include/uapi/asm/kvm.h
index 3ca357a7a26a..ab4d4732c492 100644
--- a/arch/powerpc/include/uapi/asm/kvm.h
+++ b/arch/powerpc/include/uapi/asm/kvm.h
@@ -476,6 +476,11 @@ struct kvm_get_htab_header {
476 476
477/* FP and vector status/control registers */ 477/* FP and vector status/control registers */
478#define KVM_REG_PPC_FPSCR (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0x80) 478#define KVM_REG_PPC_FPSCR (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0x80)
479/*
480 * VSCR register is documented as a 32-bit register in the ISA, but it can
481 * only be accesses via a vector register. Expose VSCR as a 32-bit register
482 * even though the kernel represents it as a 128-bit vector.
483 */
479#define KVM_REG_PPC_VSCR (KVM_REG_PPC | KVM_REG_SIZE_U32 | 0x81) 484#define KVM_REG_PPC_VSCR (KVM_REG_PPC | KVM_REG_SIZE_U32 | 0x81)
480 485
481/* Virtual processor areas */ 486/* Virtual processor areas */