[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 3/3] hw/arm/virt: Support host CPU type only when KVM or HVF is c
From: |
Gavin Shan |
Subject: |
[PATCH 3/3] hw/arm/virt: Support host CPU type only when KVM or HVF is configured |
Date: |
Thu, 13 Jul 2023 15:45:02 +1000 |
The CPU type 'host-arm-cpu' class won't be registered until KVM or
HVF is configured in target/arm/cpu64.c. Support the corresponding
CPU type only when KVM or HVF is configured.
Signed-off-by: Gavin Shan <gshan@redhat.com>
---
hw/arm/virt.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index 43d7772ffd..ad28634445 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
@@ -217,7 +217,9 @@ static const char *valid_cpu_types[] = {
#endif
ARM_CPU_TYPE_NAME("cortex-a53"),
ARM_CPU_TYPE_NAME("cortex-a57"),
+#if defined(CONFIG_KVM) || defined(CONFIG_HVF)
ARM_CPU_TYPE_NAME("host"),
+#endif
ARM_CPU_TYPE_NAME("max"),
NULL
};
--
2.41.0
- [PATCH 0/3] hw/arm/virt: Use generic CPU invalidation, Gavin Shan, 2023/07/13
- [PATCH 2/3] hw/arm/virt: Use generic CPU type invalidation, Gavin Shan, 2023/07/13
- [PATCH 3/3] hw/arm/virt: Support host CPU type only when KVM or HVF is configured,
Gavin Shan <=
- Re: [PATCH 0/3] hw/arm/virt: Use generic CPU invalidation, Peter Maydell, 2023/07/13
- Re: [PATCH 0/3] hw/arm/virt: Use generic CPU invalidation, Marcin Juszkiewicz, 2023/07/13
- Re: [PATCH 0/3] hw/arm/virt: Use generic CPU invalidation, Peter Maydell, 2023/07/13
- Re: [PATCH 0/3] hw/arm/virt: Use generic CPU invalidation, Igor Mammedov, 2023/07/14
- Re: [PATCH 0/3] hw/arm/virt: Use generic CPU invalidation, Peter Maydell, 2023/07/14
- Re: [PATCH 0/3] hw/arm/virt: Use generic CPU invalidation, Igor Mammedov, 2023/07/17
- Re: [PATCH 0/3] hw/arm/virt: Use generic CPU invalidation, Gavin Shan, 2023/07/18
- Re: [PATCH 0/3] hw/arm/virt: Use generic CPU invalidation, Igor Mammedov, 2023/07/24