diff options
author | Tao Xu | 2019-08-09 08:57:24 +0200 |
---|---|---|
committer | Eduardo Habkost | 2019-09-03 16:26:55 +0200 |
commit | 7e721e7b10e166003d4fdcfab90a72c93d4df839 (patch) | |
tree | c563fc64469f07b56b499fa850a264653d9fe31a /hw/arm/virt.c | |
parent | numa: move numa global variable have_numa_distance into MachineState (diff) | |
download | qemu-7e721e7b10e166003d4fdcfab90a72c93d4df839.tar.gz qemu-7e721e7b10e166003d4fdcfab90a72c93d4df839.tar.xz qemu-7e721e7b10e166003d4fdcfab90a72c93d4df839.zip |
numa: move numa global variable numa_info into MachineState
Move existing numa global numa_info (renamed as "nodes") into NumaState.
Reviewed-by: Igor Mammedov <imammedo@redhat.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-5-tao3.xu@intel.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'hw/arm/virt.c')
-rw-r--r-- | hw/arm/virt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/arm/virt.c b/hw/arm/virt.c index 414f7ecd02..d74538b021 100644 --- a/hw/arm/virt.c +++ b/hw/arm/virt.c @@ -246,7 +246,8 @@ static void create_fdt(VirtMachineState *vms) idx = (i * nb_numa_nodes + j) * 3; matrix[idx + 0] = cpu_to_be32(i); matrix[idx + 1] = cpu_to_be32(j); - matrix[idx + 2] = cpu_to_be32(numa_info[i].distance[j]); + matrix[idx + 2] = + cpu_to_be32(ms->numa_state->nodes[i].distance[j]); } } |