diff options
author | Jonathan Austin <Jonathan.Austin@arm.com> | 2014-01-06 17:38:34 +0000 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2015-06-01 16:39:54 +0100 |
commit | 6f60cca00661a43790be53291ec85151e3b828d9 (patch) | |
tree | 6859c2e7b3cd93db1c251dc9e751d7847cb3ce60 /arm | |
parent | 909d7f77617aeacb14579ced2e604b593ee78123 (diff) | |
download | kvmtool-6f60cca00661a43790be53291ec85151e3b828d9.tar.gz |
kvm tools: arm: add support for ARM Cortex-A7
The Cortex-A7 is very similar to the Cortex-A15 and as such there is very
little extra infrastructure required for KVM tool to be able to create
A7-guests.
This patch adds the basic support and allows booting of A7 guests on A7
hosts. It depends on Cortex-A7 support patches posted recently to the kvmarm
list.
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Jonathan Austin <jonathan.austin@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
Diffstat (limited to 'arm')
-rw-r--r-- | arm/aarch32/arm-cpu.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/arm/aarch32/arm-cpu.c b/arm/aarch32/arm-cpu.c index 8817d2a8..71b98fe3 100644 --- a/arm/aarch32/arm-cpu.c +++ b/arm/aarch32/arm-cpu.c @@ -28,8 +28,15 @@ static struct kvm_arm_target target_cortex_a15 = { .init = arm_cpu__vcpu_init, }; +static struct kvm_arm_target target_cortex_a7 = { + .id = KVM_ARM_TARGET_CORTEX_A7, + .compatible = "arm,cortex-a7", + .init = arm_cpu__vcpu_init, +}; + static int arm_cpu__core_init(struct kvm *kvm) { - return kvm_cpu__register_kvm_arm_target(&target_cortex_a15); + return (kvm_cpu__register_kvm_arm_target(&target_cortex_a15) || + kvm_cpu__register_kvm_arm_target(&target_cortex_a7)); } core_init(arm_cpu__core_init); |