diff options
| author | Suzuki K. Poulose <suzuki.poulose@arm.com> | 2015-06-17 05:00:46 -0400 |
|---|---|---|
| committer | Marc Zyngier <marc.zyngier@arm.com> | 2015-08-12 06:28:22 -0400 |
| commit | bca556ac468ab4744692926b67cb525cdce850c9 (patch) | |
| tree | 748b8e25c9803c683e5e33fa34ead2f3bbf4a54d /arch/arm64/include/uapi | |
| parent | eef8c85a3b81301f912e8802a1dd9f42dd884947 (diff) | |
arm64/kvm: Add generic v8 KVM target
This patch adds a generic ARM v8 KVM target cpu type for use
by the new CPUs which eventualy ends up using the common sys_reg
table. For backward compatibility the existing targets have been
preserved. Any new target CPU that can be covered by generic v8
sys_reg tables should make use of the new generic target.
Signed-off-by: Suzuki K. Poulose <suzuki.poulose@arm.com>
Acked-by: Marc Zyngier <Marc.Zyngier@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'arch/arm64/include/uapi')
| -rw-r--r-- | arch/arm64/include/uapi/asm/kvm.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/arch/arm64/include/uapi/asm/kvm.h b/arch/arm64/include/uapi/asm/kvm.h index d82f3f316ba4..0cd7b5947dfc 100644 --- a/arch/arm64/include/uapi/asm/kvm.h +++ b/arch/arm64/include/uapi/asm/kvm.h | |||
| @@ -53,14 +53,20 @@ struct kvm_regs { | |||
| 53 | struct user_fpsimd_state fp_regs; | 53 | struct user_fpsimd_state fp_regs; |
| 54 | }; | 54 | }; |
| 55 | 55 | ||
| 56 | /* Supported Processor Types */ | 56 | /* |
| 57 | * Supported CPU Targets - Adding a new target type is not recommended, | ||
| 58 | * unless there are some special registers not supported by the | ||
| 59 | * genericv8 syreg table. | ||
| 60 | */ | ||
| 57 | #define KVM_ARM_TARGET_AEM_V8 0 | 61 | #define KVM_ARM_TARGET_AEM_V8 0 |
| 58 | #define KVM_ARM_TARGET_FOUNDATION_V8 1 | 62 | #define KVM_ARM_TARGET_FOUNDATION_V8 1 |
| 59 | #define KVM_ARM_TARGET_CORTEX_A57 2 | 63 | #define KVM_ARM_TARGET_CORTEX_A57 2 |
| 60 | #define KVM_ARM_TARGET_XGENE_POTENZA 3 | 64 | #define KVM_ARM_TARGET_XGENE_POTENZA 3 |
| 61 | #define KVM_ARM_TARGET_CORTEX_A53 4 | 65 | #define KVM_ARM_TARGET_CORTEX_A53 4 |
| 66 | /* Generic ARM v8 target */ | ||
| 67 | #define KVM_ARM_TARGET_GENERIC_V8 5 | ||
| 62 | 68 | ||
| 63 | #define KVM_ARM_NUM_TARGETS 5 | 69 | #define KVM_ARM_NUM_TARGETS 6 |
| 64 | 70 | ||
| 65 | /* KVM_ARM_SET_DEVICE_ADDR ioctl id encoding */ | 71 | /* KVM_ARM_SET_DEVICE_ADDR ioctl id encoding */ |
| 66 | #define KVM_ARM_DEVICE_TYPE_SHIFT 0 | 72 | #define KVM_ARM_DEVICE_TYPE_SHIFT 0 |
