diff options
author | Igor Mammedov <imammedo@redhat.com> | 2019-12-12 13:48:56 +0100 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2019-12-19 14:57:14 -0300 |
commit | fcd3f2cc124600385dba46c69a80626985c15b50 (patch) | |
tree | 0316877273e7dec801843ec23f9e1f9f263c6c67 /hw/arm | |
parent | 5275db59aa7ff8a26bd6aa5d07cb4d53de5cfab5 (diff) | |
download | qemu-fcd3f2cc124600385dba46c69a80626985c15b50.zip qemu-fcd3f2cc124600385dba46c69a80626985c15b50.tar.gz qemu-fcd3f2cc124600385dba46c69a80626985c15b50.tar.bz2 |
numa: properly check if numa is supported
Commit aa57020774b, by mistake used MachineClass::numa_mem_supported
to check if NUMA is supported by machine and also as unrelated change
set it to true for sbsa-ref board.
Luckily change didn't break machines that support NUMA, as the field
is set to true for them.
But the field is not intended for checking if NUMA is supported and
will be flipped to false within this release for new machine types.
Fix it:
- by using previously used condition
!mc->cpu_index_to_instance_props || !mc->get_default_cpu_node_id
the first time and then use MachineState::numa_state down the road
to check if NUMA is supported
- dropping stray sbsa-ref chunk
Fixes: aa57020774b690a22be72453b8e91c9b5a68c516
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <1576154936-178362-3-git-send-email-imammedo@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'hw/arm')
-rw-r--r-- | hw/arm/sbsa-ref.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/arm/sbsa-ref.c b/hw/arm/sbsa-ref.c index 5853bde..9b5bcb5 100644 --- a/hw/arm/sbsa-ref.c +++ b/hw/arm/sbsa-ref.c @@ -789,7 +789,6 @@ static void sbsa_ref_class_init(ObjectClass *oc, void *data) mc->possible_cpu_arch_ids = sbsa_ref_possible_cpu_arch_ids; mc->cpu_index_to_instance_props = sbsa_ref_cpu_index_to_props; mc->get_default_cpu_node_id = sbsa_ref_get_default_cpu_node_id; - mc->numa_mem_supported = true; } static const TypeInfo sbsa_ref_info = { |