diff options
author | Rusty Russell <rusty.russell@linaro.org> | 2013-01-20 18:28:11 -0500 |
---|---|---|
committer | Christoffer Dall <c.dall@virtualopensystems.com> | 2013-01-23 13:29:15 -0500 |
commit | 4fe21e4c6def3c6a8f609893b4d5c72bc186d0d5 (patch) | |
tree | b470777c1726f41c4d3dd657962ae0c178f9b935 /arch/arm/include/uapi | |
parent | c27581ed32275897651a84043b04ea3ccdd644e0 (diff) |
KVM: ARM: VFP userspace interface
We use space #18 for floating point regs.
Reviewed-by: Will Deacon <will.deacon@arm.com>
Reviewed-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Christoffer Dall <c.dall@virtualopensystems.com>
Diffstat (limited to 'arch/arm/include/uapi')
-rw-r--r-- | arch/arm/include/uapi/asm/kvm.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/include/uapi/asm/kvm.h b/arch/arm/include/uapi/asm/kvm.h index 71ae27ec0599..bbb6b2328004 100644 --- a/arch/arm/include/uapi/asm/kvm.h +++ b/arch/arm/include/uapi/asm/kvm.h | |||
@@ -112,6 +112,18 @@ struct kvm_arch_memory_slot { | |||
112 | #define KVM_REG_ARM_DEMUX_VAL_MASK 0x00000000000000FF | 112 | #define KVM_REG_ARM_DEMUX_VAL_MASK 0x00000000000000FF |
113 | #define KVM_REG_ARM_DEMUX_VAL_SHIFT 0 | 113 | #define KVM_REG_ARM_DEMUX_VAL_SHIFT 0 |
114 | 114 | ||
115 | /* VFP registers: we could overload CP10 like ARM does, but that's ugly. */ | ||
116 | #define KVM_REG_ARM_VFP (0x0012 << KVM_REG_ARM_COPROC_SHIFT) | ||
117 | #define KVM_REG_ARM_VFP_MASK 0x000000000000FFFF | ||
118 | #define KVM_REG_ARM_VFP_BASE_REG 0x0 | ||
119 | #define KVM_REG_ARM_VFP_FPSID 0x1000 | ||
120 | #define KVM_REG_ARM_VFP_FPSCR 0x1001 | ||
121 | #define KVM_REG_ARM_VFP_MVFR1 0x1006 | ||
122 | #define KVM_REG_ARM_VFP_MVFR0 0x1007 | ||
123 | #define KVM_REG_ARM_VFP_FPEXC 0x1008 | ||
124 | #define KVM_REG_ARM_VFP_FPINST 0x1009 | ||
125 | #define KVM_REG_ARM_VFP_FPINST2 0x100A | ||
126 | |||
115 | 127 | ||
116 | /* KVM_IRQ_LINE irq field index values */ | 128 | /* KVM_IRQ_LINE irq field index values */ |
117 | #define KVM_ARM_IRQ_TYPE_SHIFT 24 | 129 | #define KVM_ARM_IRQ_TYPE_SHIFT 24 |