Hi Sujay, I'm not sure about the problem with the gem5 config.
You might want to take a look at gem5 resources (https://gem5.googlesource.com/public/gem5-resources/). The gem5 resources repo has the resources (including gem5 configs) for running a workload in FS mode by booting with KVM and switching cpus. For example, the NPB resource ( https://gem5.googlesource.com/public/gem5-resources/+/refs/heads/stable/src/npb) has the configs that boots Ubuntu with KVM and then switches to another cpu type to run the workload. The case where switching from 8-core KVM to 8-core TimingSimpleCPU is tested with gem5 20.1 and the switching was successful. Regards, Hoa Nguyen On Sat, Nov 21, 2020, 3:32 AM sujayyadalam--- via gem5-users < gem5-users@gem5.org> wrote: > Hi all, > > I am trying to run x86 FS such that the kernel boot happens with X86KvmCPU > and then switches to TimingCpu. I am able to boot successfully with > X86KvmCPU. Unfortunately, when the cpus are switched, the simulation is > stuck at "Entering event queue @ 20398889241500. Starting simulation...". > > However, when I don't use separate event queues for each cpu, i.e. I > remove the below code, then I can switchcpus successfully. The catch is > that when I remove the below code, I can simulate 1 or 2 cores. > for i,cpu in enumerate(test_sys.cpu): > for obj in cpu.descendants(): > obj.eventq_index = 0 > cpu.eventq_index = i + 1 > > Anybody have any idea what's happening? How can I scale to more than 2 > cores? or How can I fix the first issue of gem5 being stuck? > > About my setup: > > Config similar to that written by Jason ( > https://github.com/darchr/gem5/tree/jason/kvm-testing/configs/myconfigs ) > Kernel: linux-4.8.13 ( config obtained from > http://www.lowepower.com/jason/files/config ) > Disk Image: Custom image based on Ubuntu 16.04 > Using ruby subsystem > No significant changes to gem5 (forked from the stable branch 2 months > ago) except for adding the changes related to KvmCPU. ( > https://gem5-review.googlesource.com/c/public/gem5/+/7361) > > Any help would be appreciated. > > Thanks, > Sujay > PhD Student > UW Madison > _______________________________________________ > gem5-users mailing list -- gem5-users@gem5.org > To unsubscribe send an email to gem5-users-le...@gem5.org > %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s >
_______________________________________________ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s