diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2021-06-17 17:53:03 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-06-25 16:13:48 +0200 |
commit | 67872eb8ed194117f5af71694374a083c3f45eb2 (patch) | |
tree | 8c932318f0fb053f535edb50e3e2a5520788b2f1 /include/hw/boards.h | |
parent | bd80936a4f18075e0e407df180801a9743ce290c (diff) | |
download | qemu-67872eb8ed194117f5af71694374a083c3f45eb2.zip qemu-67872eb8ed194117f5af71694374a083c3f45eb2.tar.gz qemu-67872eb8ed194117f5af71694374a083c3f45eb2.tar.bz2 |
machine: move dies from X86MachineState to CpuTopology
In order to make SMP configuration a Machine property, we need a getter as
well as a setter. To simplify the implementation put everything that the
getter needs in the CpuTopology struct.
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20210617155308.928754-7-pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/hw/boards.h')
-rw-r--r-- | include/hw/boards.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/boards.h b/include/hw/boards.h index 3d55d2b..87ae5cc 100644 --- a/include/hw/boards.h +++ b/include/hw/boards.h @@ -282,6 +282,7 @@ typedef struct DeviceMemoryState { */ typedef struct CpuTopology { unsigned int cpus; + unsigned int dies; unsigned int cores; unsigned int threads; unsigned int sockets; |