参考一下这个。修改/etc/livirt/qemu/instance-*.xml
virsh capabilities | grep topology
it will list the topology of the host:
The numbers refer to sockets, cores per socket, and threads per core. Add this line to the cpu entry in the xml file to allow windows to use all 4 cores, e.g.:
4
|