[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH RFC 14/16] hw/arm/virt: stash cpu topo info in VirtG
From: |
Andrew Jones |
Subject: |
[Qemu-devel] [PATCH RFC 14/16] hw/arm/virt: stash cpu topo info in VirtGuestInfo |
Date: |
Fri, 10 Jun 2016 19:40:25 +0200 |
This is a first step to preparing mach-virt for configurable
cpu topology, and is necessary now to prepare to move smbios
code away from using cpu topology globals smp_cores,smp_threads.
Signed-off-by: Andrew Jones <address@hidden>
---
hw/arm/virt.c | 6 +++++-
include/hw/arm/virt-acpi-build.h | 4 ++++
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index 134b6e36623ba..769a49aa5be77 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
@@ -1281,7 +1281,11 @@ static void machvirt_init(MachineState *machine)
create_fw_cfg(vbi, &address_space_memory);
rom_set_fw(fw_cfg_find());
- guest_info->cpus = vbi->cpus;
+ guest_info->sockets = machine->sockets;
+ guest_info->cores = machine->cores;
+ guest_info->threads = machine->threads;
+ guest_info->maxcpus = machine->maxcpus;
+ guest_info->cpus = machine->cpus;
guest_info->fw_cfg = fw_cfg_find();
guest_info->memmap = vbi->memmap;
guest_info->irqmap = vbi->irqmap;
diff --git a/include/hw/arm/virt-acpi-build.h b/include/hw/arm/virt-acpi-build.h
index d6c5982960403..a34fb04230e66 100644
--- a/include/hw/arm/virt-acpi-build.h
+++ b/include/hw/arm/virt-acpi-build.h
@@ -27,6 +27,10 @@
#define ACPI_GICC_ENABLED 1
typedef struct VirtGuestInfo {
+ int sockets;
+ int cores;
+ int threads;
+ int maxcpus;
int cpus;
FWCfgState *fw_cfg;
const MemMapEntry *memmap;
--
2.4.11
- Re: [Qemu-devel] [PATCH RFC 07/16] qom/cpu: make nr-cores, nr-threads real properties, (continued)
[Qemu-devel] [PATCH RFC 03/16] hw/smbios/smbios: fix number of sockets calculation, Andrew Jones, 2016/06/10
[Qemu-devel] [PATCH RFC 08/16] hw/core/machine: set cpu global nr_cores, nr_threads in pre_init, Andrew Jones, 2016/06/10
[Qemu-devel] [PATCH RFC 05/16] hw/core/machine: add smp properites, Andrew Jones, 2016/06/10
[Qemu-devel] [PATCH RFC 09/16] hw/i386/pc: don't use smp_cores, smp_threads, Andrew Jones, 2016/06/10
[Qemu-devel] [PATCH RFC 14/16] hw/arm/virt: stash cpu topo info in VirtGuestInfo,
Andrew Jones <=
[Qemu-devel] [PATCH RFC 13/16] hw/arm/virt: don't use smp_cpus, max_cpus, Andrew Jones, 2016/06/10
[Qemu-devel] [PATCH RFC 11/16] target-ppc: don't use smp_threads, Andrew Jones, 2016/06/10
[Qemu-devel] [PATCH RFC 10/16] hw/ppc/spapr: don't use smp_cores, smp_threads, Andrew Jones, 2016/06/10
[Qemu-devel] [PATCH RFC 12/16] hw/arm/virt: rename *.smp_cpus to *.cpus, Andrew Jones, 2016/06/10
[Qemu-devel] [PATCH RFC 16/16] sysemu/cpus: bye, bye smp_cores, smp_threads, Andrew Jones, 2016/06/10
[Qemu-devel] [PATCH RFC 15/16] smbios: don't use smp_cores, smp_threads, Andrew Jones, 2016/06/10