diff options
Diffstat (limited to 'arch/arm/kvm/guest.c')
-rw-r--r-- | arch/arm/kvm/guest.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/kvm/guest.c b/arch/arm/kvm/guest.c index ec98209fda71..20f8d97904af 100644 --- a/arch/arm/kvm/guest.c +++ b/arch/arm/kvm/guest.c | |||
@@ -190,6 +190,8 @@ int __attribute_const__ kvm_target_cpu(void) | |||
190 | return -EINVAL; | 190 | return -EINVAL; |
191 | 191 | ||
192 | switch (part_number) { | 192 | switch (part_number) { |
193 | case ARM_CPU_PART_CORTEX_A7: | ||
194 | return KVM_ARM_TARGET_CORTEX_A7; | ||
193 | case ARM_CPU_PART_CORTEX_A15: | 195 | case ARM_CPU_PART_CORTEX_A15: |
194 | return KVM_ARM_TARGET_CORTEX_A15; | 196 | return KVM_ARM_TARGET_CORTEX_A15; |
195 | default: | 197 | default: |
@@ -202,7 +204,7 @@ int kvm_vcpu_set_target(struct kvm_vcpu *vcpu, | |||
202 | { | 204 | { |
203 | unsigned int i; | 205 | unsigned int i; |
204 | 206 | ||
205 | /* We can only do a cortex A15 for now. */ | 207 | /* We can only cope with guest==host and only on A15/A7 (for now). */ |
206 | if (init->target != kvm_target_cpu()) | 208 | if (init->target != kvm_target_cpu()) |
207 | return -EINVAL; | 209 | return -EINVAL; |
208 | 210 | ||