参考一下这个。修改/etc/livirt/qemu/instance-*.xml virsh capabilities | grep topologyit will list the topology of the host:<topology sockets='1' cores='4' threads='1'/>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.: <vcpu>4</vcpu> <cpu> <topology sockets='1' cores='4' threads='1'/> </cpu>
virsh capabilities | grep topologyit will list the topology of the host:<topology sockets='1' cores='4' threads='1'/>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.: <vcpu>4</vcpu>
<cpu>
<topology sockets='1' cores='4' threads='1'/>
</cpu>