aboutsummaryrefslogtreecommitdiff
path: root/include/hw/i386
diff options
context:
space:
mode:
authorBabu Moger <babu.moger@amd.com>2020-03-11 17:53:20 -0500
committerEduardo Habkost <ehabkost@redhat.com>2020-03-17 19:48:10 -0400
commitc24a41bb53c0854d22c96b30d57cfcaa543c409d (patch)
tree2a03557cef16c1f01a417ea715e4a1ab29ba9e61 /include/hw/i386
parent156778a08314dd224e675acee7975ec2354e68e5 (diff)
downloadqemu-c24a41bb53c0854d22c96b30d57cfcaa543c409d.zip
qemu-c24a41bb53c0854d22c96b30d57cfcaa543c409d.tar.gz
qemu-c24a41bb53c0854d22c96b30d57cfcaa543c409d.tar.bz2
hw/i386: Update structures to save the number of nodes per package
Update structures X86CPUTopoIDs and CPUX86State to hold the number of nodes per package. This is required to build EPYC mode topology. Signed-off-by: Babu Moger <babu.moger@amd.com> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Message-Id: <158396720035.58170.1973738805301006456.stgit@naples-babu.amd.com>
Diffstat (limited to 'include/hw/i386')
-rw-r--r--include/hw/i386/topology.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/i386/topology.h b/include/hw/i386/topology.h
index ba52d49..04f01e2 100644
--- a/include/hw/i386/topology.h
+++ b/include/hw/i386/topology.h
@@ -53,6 +53,7 @@ typedef struct X86CPUTopoIDs {
} X86CPUTopoIDs;
typedef struct X86CPUTopoInfo {
+ unsigned nodes_per_pkg;
unsigned dies_per_pkg;
unsigned cores_per_die;
unsigned threads_per_core;