[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 8/9] hw/arm/virt: Restrict 32-bit CPUs to TCG
From: |
Andrew Jones |
Subject: |
Re: [PATCH 8/9] hw/arm/virt: Restrict 32-bit CPUs to TCG |
Date: |
Fri, 5 Feb 2021 16:19:00 +0100 |
On Fri, Feb 05, 2021 at 03:43:44PM +0100, Philippe Mathieu-Daudé wrote:
> Support for ARMv7 has been dropped in commit 82bf7ae84ce
> ("target/arm: Remove KVM support for 32-bit Arm hosts").
> Restrict the 32-bit CPUs to --enable-tcg builds.
>
> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> ---
> hw/arm/virt.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/hw/arm/virt.c b/hw/arm/virt.c
> index f5e4a6ec914..ab6300650f9 100644
> --- a/hw/arm/virt.c
> +++ b/hw/arm/virt.c
> @@ -197,8 +197,10 @@ static const int a15irqmap[] = {
> };
>
> static const char *valid_cpus[] = {
> +#ifdef CONFIG_TCG
> ARM_CPU_TYPE_NAME("cortex-a7"),
> ARM_CPU_TYPE_NAME("cortex-a15"),
> +#endif /* CONFIG_TCG */
> #ifdef TARGET_AARCH64
> ARM_CPU_TYPE_NAME("cortex-a53"),
> ARM_CPU_TYPE_NAME("cortex-a57"),
> --
> 2.26.2
>
So this filters the cpus out of KVM only builds, which seems
reasonable to do. Of course, if the build is for both KVM and
TCG, then the cpus won't be filtered out and we'll have to rely
on the runtime checks to error out if one where to try a 32-bit
cpu with KVM. But that's fine too, so
Reviewed-by: Andrew Jones <drjones@redhat.com>
Thanks,
drew
- Re: [PATCH 4/9] tests/qtest/cdrom-test: Only allow the Virt machine under KVM, (continued)
- [PATCH 5/9] hw/arm/virt: Improve CPU name in help message, Philippe Mathieu-Daudé, 2021/02/05
- [PATCH 6/9] hw/arm/virt: Display list of valid CPUs for the Virt machine, Philippe Mathieu-Daudé, 2021/02/05
- [PATCH 7/9] hw/arm/virt: Do not include 64-bit CPUs in 32-bit build, Philippe Mathieu-Daudé, 2021/02/05
- [PATCH 8/9] hw/arm/virt: Restrict 32-bit CPUs to TCG, Philippe Mathieu-Daudé, 2021/02/05
- Re: [PATCH 8/9] hw/arm/virt: Restrict 32-bit CPUs to TCG,
Andrew Jones <=
- [RFC PATCH 9/9] tests/qtest/arm-cpu-features: Restrict TCG-only tests, Philippe Mathieu-Daudé, 2021/02/05
- Re: [RFC PATCH 9/9] tests/qtest/arm-cpu-features: Restrict TCG-only tests, Andrew Jones, 2021/02/05
- Re: [PATCH 0/9] hw/arm/virt: Improve CPU help and fix testing under KVM, Philippe Mathieu-Daudé, 2021/02/05