diff mbox series

[RFC,19/21] virt: Allow custom vcpu model in arm virt

Message ID 20241025101959.601048-20-eric.auger@redhat.com (mailing list archive)
State New
Headers show
Series kvm/arm: Introduce a customizable aarch64 KVM host model | expand

Commit Message

Eric Auger Oct. 25, 2024, 10:17 a.m. UTC
From: Cornelia Huck <cohuck@redhat.com>

Allowing the use of the custom vcpu model in ARM virt.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
---
 hw/arm/virt.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index b0c68d66a3..edde4b5007 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
@@ -3052,6 +3052,9 @@  static void virt_machine_class_init(ObjectClass *oc, void *data)
 #if defined(CONFIG_KVM) || defined(CONFIG_HVF)
         ARM_CPU_TYPE_NAME("host"),
 #endif /* CONFIG_KVM || CONFIG_HVF */
+#ifdef CONFIG_KVM
+        ARM_CPU_TYPE_NAME("custom"),
+#endif /* CONFIG_KVM */
 #endif /* TARGET_AARCH64 */
         ARM_CPU_TYPE_NAME("max"),
         NULL