machine: Make possible_cpu_arch_ids() return const pointer
commit80e5db303dc82e357df923dc2bfcb858c20282a0
authorIgor Mammedov <imammedo@redhat.com>
Wed, 18 Jan 2017 17:13:20 +0000 (18 18:13 +0100)
committerEduardo Habkost <ehabkost@redhat.com>
Mon, 23 Jan 2017 23:25:37 +0000 (23 21:25 -0200)
tree5902487b6664ae674e4e466fbc266247b9e5f5d6
parent074281d62e62f3efab3b71161e9f0a5e8aebb0b3
machine: Make possible_cpu_arch_ids() return const pointer

make sure that external callers won't try to modify
possible_cpus and owner of possible_cpus can access
it directly when it modifies it.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <1484759609-264075-5-git-send-email-imammedo@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
hw/acpi/cpu.c
hw/acpi/cpu_hotplug.c
hw/i386/acpi-build.c
hw/i386/pc.c
include/hw/acpi/acpi_dev_interface.h
include/hw/boards.h
include/hw/i386/pc.h
stubs/pc_madt_cpu_entry.c