[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH v2 08/11] hw/i386: Explicit x86 machines support all current
From: |
Philippe Mathieu-Daudé |
Subject: |
[RFC PATCH v2 08/11] hw/i386: Explicit x86 machines support all current accelerators |
Date: |
Fri, 19 Feb 2021 18:38:44 +0100 |
x86 machines currently support all accelerators.
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
RFC: not sure about this, x86 is not my cup of tea
hw/i386/x86.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/hw/i386/x86.c b/hw/i386/x86.c
index 6329f90ef90..2dc10e7d386 100644
--- a/hw/i386/x86.c
+++ b/hw/i386/x86.c
@@ -1209,6 +1209,10 @@ static void x86_machine_initfn(Object *obj)
x86ms->pci_irq_mask = ACPI_BUILD_PCI_IRQS;
}
+static const char *const valid_accels[] = {
+ "tcg", "kvm", "xen", "hax", "hvf", "whpx", NULL
+};
+
static void x86_machine_class_init(ObjectClass *oc, void *data)
{
MachineClass *mc = MACHINE_CLASS(oc);
@@ -1218,6 +1222,7 @@ static void x86_machine_class_init(ObjectClass *oc, void
*data)
mc->cpu_index_to_instance_props = x86_cpu_index_to_props;
mc->get_default_cpu_node_id = x86_get_default_cpu_node_id;
mc->possible_cpu_arch_ids = x86_possible_cpu_arch_ids;
+ mc->valid_accelerators = valid_accels;
x86mc->compat_apic_id_mode = false;
x86mc->save_tsc_khz = true;
nc->nmi_monitor_handler = x86_nmi;
--
2.26.2
- Re: [PATCH v2 02/11] hw/boards: Introduce machine_class_valid_for_accelerator(), (continued)
[PATCH v2 03/11] hw/core: Restrict 'query-machines' to those supported by current accel, Philippe Mathieu-Daudé, 2021/02/19
[PATCH v2 05/11] hw/mips: Restrict KVM to the malta & virt machines, Philippe Mathieu-Daudé, 2021/02/19
[PATCH v2 07/11] hw/s390x: Explicit the s390-ccw-virtio machines support TCG and KVM, Philippe Mathieu-Daudé, 2021/02/19
[RFC PATCH v2 08/11] hw/i386: Explicit x86 machines support all current accelerators,
Philippe Mathieu-Daudé <=
[PATCH v2 04/11] hw/arm: Restrit KVM to the virt & versal machines, Philippe Mathieu-Daudé, 2021/02/19
[RFC PATCH v2 06/11] hw/ppc: Restrict KVM to various PPC machines, Philippe Mathieu-Daudé, 2021/02/19
[PATCH v2 09/11] hw/xenpv: Restrict Xen Para-virtualized machine to Xen accelerator, Philippe Mathieu-Daudé, 2021/02/19
[PATCH v2 10/11] hw/board: Only allow TCG accelerator by default, Philippe Mathieu-Daudé, 2021/02/19
[PATCH v2 11/11] softmmu/vl: Exit gracefully when accelerator is not supported, Philippe Mathieu-Daudé, 2021/02/19