diff options
author | Tao Xu | 2019-08-09 08:57:23 +0200 |
---|---|---|
committer | Eduardo Habkost | 2019-09-03 16:26:55 +0200 |
commit | 118154b7674b85827f272332efe86fc58cb76249 (patch) | |
tree | 5bdab4b850c1ebca8b88c8bab9673230146c9b83 /hw/i386/acpi-build.c | |
parent | numa: move numa global variable nb_numa_nodes into MachineState (diff) | |
download | qemu-118154b7674b85827f272332efe86fc58cb76249.tar.gz qemu-118154b7674b85827f272332efe86fc58cb76249.tar.xz qemu-118154b7674b85827f272332efe86fc58cb76249.zip |
numa: move numa global variable have_numa_distance into MachineState
Move existing numa global have_numa_distance into NumaState.
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Liu Jingqi <jingqi.liu@intel.com>
Suggested-by: Igor Mammedov <imammedo@redhat.com>
Suggested-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Tao Xu <tao3.xu@intel.com>
Message-Id: <20190809065731.9097-4-tao3.xu@intel.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'hw/i386/acpi-build.c')
-rw-r--r-- | hw/i386/acpi-build.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index 3c5868322b..e54e571a75 100644 --- a/hw/i386/acpi-build.c +++ b/hw/i386/acpi-build.c @@ -2694,7 +2694,7 @@ void acpi_build(AcpiBuildTables *tables, MachineState *machine) if (pcms->numa_nodes) { acpi_add_table(table_offsets, tables_blob); build_srat(tables_blob, tables->linker, machine); - if (have_numa_distance) { + if (machine->numa_state->have_numa_distance) { acpi_add_table(table_offsets, tables_blob); build_slit(tables_blob, tables->linker, machine); } |