From: Christoffer Dall <christoffer.dall@linaro.org>
To: Alison Wang <b18965@freescale.com>
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
Date: Fri, 23 Sep 2016 11:25:50 +0200 [thread overview]
Message-ID: <20160923092550.GG9101@cbox> (raw)
In-Reply-To: <1474614805-18629-1-git-send-email-b18965@freescale.com>
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 <alison.wang@nxp.com>
> ---
> 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
next prev parent reply other threads:[~2016-09-23 9:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-23 7:13 [PATCH] arm/arm64: KVM: Add support for ARMv8 AArch32 execution state Alison Wang
2016-09-23 9:25 ` Christoffer Dall [this message]
2016-09-23 9:30 ` Marc Zyngier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160923092550.GG9101@cbox \
--to=christoffer.dall@linaro.org \
--cc=alison.wang@nxp.com \
--cc=b18965@freescale.com \
--cc=jason.jin@nxp.com \
--cc=kvm@vger.kernel.org \
--cc=kvmarm@lists.cs.columbia.edu \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=marc.zyngier@arm.com \
--cc=rkrcmar@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox