[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v6 21/29] target/arm: Use "max" as default cpu for the virt machi
From: |
Fabiano Rosas |
Subject: |
[PATCH v6 21/29] target/arm: Use "max" as default cpu for the virt machine with KVM |
Date: |
Fri, 17 Feb 2023 17:11:42 -0300 |
Now that the cortex-a15 is under CONFIG_TCG, use as default CPU for a
KVM-only build the 'max' cpu.
Note that we cannot use 'host' here because the qtests can run without
any other accelerator (than qtest) and 'host' depends on KVM being
enabled.
Signed-off-by: Fabiano Rosas <farosas@suse.de>
Acked-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
---
hw/arm/virt.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index fbeeed115d..cc6b8ff85f 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
@@ -3015,7 +3015,11 @@ static void virt_machine_class_init(ObjectClass *oc,
void *data)
mc->minimum_page_bits = 12;
mc->possible_cpu_arch_ids = virt_possible_cpu_arch_ids;
mc->cpu_index_to_instance_props = virt_cpu_index_to_props;
+#ifdef CONFIG_TCG
mc->default_cpu_type = ARM_CPU_TYPE_NAME("cortex-a15");
+#else
+ mc->default_cpu_type = ARM_CPU_TYPE_NAME("max");
+#endif
mc->get_default_cpu_node_id = virt_get_default_cpu_node_id;
mc->kvm_type = virt_kvm_type;
assert(!mc->get_hotplug_handler);
--
2.35.3
- [PATCH v6 14/29] target/arm: Don't access TCG code when debugging with KVM, (continued)
- [PATCH v6 14/29] target/arm: Don't access TCG code when debugging with KVM, Fabiano Rosas, 2023/02/17
- [PATCH v6 13/29] target/arm: Move regime_using_lpae_format into internal.h, Fabiano Rosas, 2023/02/17
- [PATCH v6 15/29] cpu-defs.h: Expose CPUTLBEntryFull to non-TCG code, Fabiano Rosas, 2023/02/17
- [PATCH v6 16/29] target/arm: Move cortex sysregs into cpu64.c, Fabiano Rosas, 2023/02/17
- [PATCH v6 17/29] tests/avocado: Skip tests that require a missing accelerator, Fabiano Rosas, 2023/02/17
- [PATCH v6 18/29] tests/avocado: Tag TCG tests with accel:tcg, Fabiano Rosas, 2023/02/17
- [PATCH v6 19/29] target/arm: Move 64-bit TCG CPUs into tcg/, Fabiano Rosas, 2023/02/17
- [PATCH v6 21/29] target/arm: Use "max" as default cpu for the virt machine with KVM,
Fabiano Rosas <=
- [PATCH v6 25/29] tests/avocado: add machine:none tag to version.py, Fabiano Rosas, 2023/02/17
- [PATCH v6 27/29] arm/Kconfig: Do not build TCG-only boards on a KVM-only build, Fabiano Rosas, 2023/02/17
- [PATCH v6 22/29] tests/qtest: arm-cpu-features: Match tests to required accelerators, Fabiano Rosas, 2023/02/17
- [PATCH v6 26/29] arm/Kconfig: Always select SEMIHOSTING when TCG is present, Fabiano Rosas, 2023/02/17
- [PATCH v6 20/29] target/arm: move cpu_tcg to tcg/cpu32.c, Fabiano Rosas, 2023/02/17
- [PATCH v6 23/29] tests/qtest: Restrict tpm-tis-devices-{swtpm}-test to CONFIG_TCG, Fabiano Rosas, 2023/02/17
- [PATCH v6 24/29] target/avocado: Pass parameters to migration test, Fabiano Rosas, 2023/02/17
- [PATCH v6 28/29] gitlab-ci: Check building KVM-only aarch64 target, Fabiano Rosas, 2023/02/17
- [PATCH v6 29/29] tests/qtest: Fix tests when no KVM or TCG are present, Fabiano Rosas, 2023/02/17
- Re: [PATCH v6 00/29] target/arm: Allow CONFIG_TCG=n builds, Peter Maydell, 2023/02/21