From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758911AbcIWJZp (ORCPT ); Fri, 23 Sep 2016 05:25:45 -0400 Received: from mail-wm0-f42.google.com ([74.125.82.42]:35794 "EHLO mail-wm0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758410AbcIWJZm (ORCPT ); Fri, 23 Sep 2016 05:25:42 -0400 Date: Fri, 23 Sep 2016 11:25:50 +0200 From: Christoffer Dall To: Alison Wang Cc: marc.zyngier@arm.com, rkrcmar@redhat.com, linux@armlinux.org.uk, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, jason.jin@nxp.com, alison.wang@nxp.com Subject: Re: [PATCH] arm/arm64: KVM: Add support for ARMv8 AArch32 execution state Message-ID: <20160923092550.GG9101@cbox> References: <1474614805-18629-1-git-send-email-b18965@freescale.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1474614805-18629-1-git-send-email-b18965@freescale.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 23, 2016 at 03:13:25PM +0800, Alison Wang wrote: > The ARMv8 architecture supports two execution state, AArch64 and > AArch32. To support KVM in AArch32 execution state for ARMv8, Cortex-A53 > and Cortex-A72 need to be added for target-specific checks. > > Signed-off-by: Alison Wang > --- > arch/arm/include/asm/cputype.h | 2 ++ > arch/arm/kvm/guest.c | 2 ++ > 2 files changed, 4 insertions(+) > > diff --git a/arch/arm/include/asm/cputype.h b/arch/arm/include/asm/cputype.h > index 754f86f..4f8c632 100644 > --- a/arch/arm/include/asm/cputype.h > +++ b/arch/arm/include/asm/cputype.h > @@ -75,6 +75,8 @@ > #define ARM_CPU_PART_CORTEX_A12 0x4100c0d0 > #define ARM_CPU_PART_CORTEX_A17 0x4100c0e0 > #define ARM_CPU_PART_CORTEX_A15 0x4100c0f0 > +#define ARM_CPU_PART_CORTEX_A53_AARCH32 0x4100d030 > +#define ARM_CPU_PART_CORTEX_A72_AARCH32 0x4100d080 > #define ARM_CPU_PART_MASK 0xff00fff0 > > /* DEC implemented cores */ > diff --git a/arch/arm/kvm/guest.c b/arch/arm/kvm/guest.c > index 9aca920..462a099 100644 > --- a/arch/arm/kvm/guest.c > +++ b/arch/arm/kvm/guest.c > @@ -252,6 +252,8 @@ int __attribute_const__ kvm_target_cpu(void) > { > switch (read_cpuid_part()) { > case ARM_CPU_PART_CORTEX_A7: > + case ARM_CPU_PART_CORTEX_A53_AARCH32: > + case ARM_CPU_PART_CORTEX_A72_AARCH32: huh? why are we mapping A53 and A72 cores to an A7 core? -Christoffer