Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Enable multiple CPUs in QEMU
#1
1. In dts/xen.dts, change device_type = "none"; to device_type ="cpu"; for each core you want to enable.
2. In dts/xen.dts, change maxcpus=1 to maxcpus=2; or maxcpus=3; in chosen/xen,xen-bootargs and chosen/xen,dom0-bootargs.
 *Setting maxcpus=4 seems to cause some sort of deadlock during kernel initialization. 
3. Build new /tftpboot/xen.dtb from dts/xen.dts (make install-xen-dtb or use dtc).


From dom0, cat /proc/cpuinfo or xl cpupool-list will show the extra cores in use.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)