From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonathan Austin Subject: [PATCH 2/2] kvm tools: arm: add support for ARM Cortex-A7 Date: Fri, 27 Sep 2013 18:38:52 +0100 Message-ID: <1380303532-4460-3-git-send-email-jonathan.austin@arm.com> References: <1380303532-4460-1-git-send-email-jonathan.austin@arm.com> Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Cc: penberg@kernel.org, marc.zyngier@arm.com, christoffer.dall@linaro.org, STFD002@freescale.com, ulrich.hecht@gmail.com, will.deacon@arm.com, Jonathan Austin To: kvm@vger.kernel.org, kvmarm@lists.cs.columbia.edu Return-path: Received: from service87.mimecast.com ([91.220.42.44]:49354 "EHLO service87.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753797Ab3I0RjY (ORCPT ); Fri, 27 Sep 2013 13:39:24 -0400 In-Reply-To: <1380303532-4460-1-git-send-email-jonathan.austin@arm.com> Sender: kvm-owner@vger.kernel.org List-ID: 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 kvmar= m list. Signed-off-by: Jonathan Austin --- tools/kvm/arm/aarch32/arm-cpu.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tools/kvm/arm/aarch32/arm-cpu.c b/tools/kvm/arm/aarch32/arm-cp= u.c index 8817d2a..71b98fe 100644 --- a/tools/kvm/arm/aarch32/arm-cpu.c +++ b/tools/kvm/arm/aarch32/arm-cpu.c @@ -28,8 +28,15 @@ static struct kvm_arm_target target_cortex_a15 =3D { =09.init=09=09=3D arm_cpu__vcpu_init, }; =20 +static struct kvm_arm_target target_cortex_a7 =3D { +=09.id=09=09=3D KVM_ARM_TARGET_CORTEX_A7, +=09.compatible=09=3D "arm,cortex-a7", +=09.init=09=09=3D arm_cpu__vcpu_init, +}; + static int arm_cpu__core_init(struct kvm *kvm) { -=09return kvm_cpu__register_kvm_arm_target(&target_cortex_a15); +=09return (kvm_cpu__register_kvm_arm_target(&target_cortex_a15) || +=09=09kvm_cpu__register_kvm_arm_target(&target_cortex_a7)); } core_init(arm_cpu__core_init); --=20 1.7.9.5