I am trying to figure out how to expose a CPU Topology with two CPU dies.
Clearly I must be doing something wrong - I just cannot figure out what.
QEMU Version: 10.1.3
QEMU Command: qemu-system-x86_64 -enable-kvm -m 2G -hda disk.img -cpu
host,topoext -smp cpus=32,sockets=1,dies=2,cores=8,threads=2,maxcpus=32
-machine q35 -display none -nographic -qmp tcp:localhost:5555,server,nowait
Snippet from dmesg:
[ 0.013079] CPU topo: Max. logical packages: 1
[ 0.013080] CPU topo: Max. logical dies: 1
[ 0.013080] CPU topo: Max. dies per package: 1
[ 0.013082] CPU topo: Max. threads per core: 2
[ 0.013082] CPU topo: Num. cores per package: 16
[ 0.013083] CPU topo: Num. threads per package: 32
[ 0.013083] CPU topo: Allowing 32 present CPUs plus 0 hotplug CPUs
Looking in sysfs provides same result:
cat /sys/devices/system/cpu/cpu*/topology/die_id |sort|uniq -c
32 0
How-ever, when looking at QMP, it does seem like there _should_ be two dies.
$ echo -e '{ "execute": "qmp_capabilities" }\n{ "execute":
"query-cpus-fast" }' | nc localhost 5555 | jq -r '.return[].props |
."die-id"' | sort | uniq -c
16 0
16 1
What am I missing here ?