I have been trying to run ht kvm cpu when using multiple cores. With single threaded simulation, the simulation stops making progress if the simulated system has more than 4 cores. With multi-threaded simulation, I do not see any progress even when two cores are being simulated. For the multi-threaded simulation, I made the following changes as suggested in the comment for the changeset: 10157:5c2ecad1a3c9. So, how many cores have others tested kvm cpu with? Is there something that I might not be doing right?

diff --git a/configs/example/fs.py b/configs/example/fs.py
--- a/configs/example/fs.py
+++ b/configs/example/fs.py
@@ -121,9 +121,11 @@
         test_sys.have_virtualization = True

     test_sys.init_param = options.init_param
+    test_sys.eventq_index = np

     # For now, assign all the CPUs to the same clock domain
- test_sys.cpu = [TestCPUClass(clk_domain=test_sys.cpu_clk_domain, cpu_id=i) + test_sys.cpu = [TestCPUClass(clk_domain=test_sys.cpu_clk_domain, cpu_id=i,
+                                 eventq_index = i)
                     for i in xrange(np)]

     if is_kvm_cpu(TestCPUClass) or is_kvm_cpu(FutureClass):
@@ -153,6 +155,7 @@
             cpu.clk_domain = test_sys.cpu_clk_domain
             cpu.createThreads()
             cpu.createInterruptController()
+            cpu.interrupts.eventq_index = np

             cpu.icache_port = test_sys.ruby._cpu_ports[i].slave
             cpu.dcache_port = test_sys.ruby._cpu_ports[i].slave
@@ -310,5 +313,6 @@
 if options.frame_capture:
     VncServer.frame_capture = True

+root.sim_quantum = 1000000
 Simulation.setWorkCountOptions(test_sys, options)
 Simulation.run(options, root, test_sys, FutureClass)



Thanks
Nilay
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to