From patchwork Fri Sep 27 17:38:52 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Austin X-Patchwork-Id: 2956471 Return-Path: X-Original-To: patchwork-kvm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7FFD29F499 for ; Fri, 27 Sep 2013 17:39:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AD69D2027C for ; Fri, 27 Sep 2013 17:39:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C6B4B2027D for ; Fri, 27 Sep 2013 17:39:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753978Ab3I0Rj0 (ORCPT ); Fri, 27 Sep 2013 13:39:26 -0400 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 Received: from cam-owa1.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.21]) by service87.mimecast.com; Fri, 27 Sep 2013 18:39:22 +0100 Received: from e102895-lin.cambridge.arm.com ([10.1.255.212]) by cam-owa1.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.0); Fri, 27 Sep 2013 18:39:20 +0100 From: Jonathan Austin To: kvm@vger.kernel.org, kvmarm@lists.cs.columbia.edu 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 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> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1380303532-4460-1-git-send-email-jonathan.austin@arm.com> References: <1380303532-4460-1-git-send-email-jonathan.austin@arm.com> X-OriginalArrivalTime: 27 Sep 2013 17:39:20.0655 (UTC) FILETIME=[7F6505F0:01CEBBA8] X-MC-Unique: 113092718392208001 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Spam-Status: No, score=-9.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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. 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-cpu.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 = { .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);