Hi all,
I am a beginner to use the Gem5. I am using kvm to run "x86-hello64-static" and
switch to timing cpu in SE simulation but it seems to be not working. And
I am getting an error that I dont understand.
Here are the errors that I am getting:
~~~
src/sim/simulate.cc:199: info: Entering event queue @ 0. Starting
simulation...
src/arch/x86/kvm/x86_cpu.cc:542: warn: tr: S flag is set
src/cpu/kvm/base.cc:866: panic: KVM: Failed to set guest special registers
Memory Usage: 8527892 KBytes
~~~
I am certain that my computer supports and has KVM virtualization enabled. And
my computer's architecture is also X86.
I cloned the latest version of gem5. And the python script I used is:
~~~
cache_hierarchy = NoCache()
memory = SingleChannelDDR3_1600()
processor = SimpleProcessor(
cpu_type=CPUTypes.KVM,
isa=ISA.X86,
num_cores=1,
)
motherboard = SimpleBoard(
clk_freq="3GHz",
processor=processor,
memory=memory,
cache_hierarchy=cache_hierarchy,
)
binary = obtain_resource("x86-hello64-static")
motherboard.set_se_binary_workload(binary)
simulator = Simulator(board=motherboard)
simulator.run()
print(
"Exiting @ tick {} because {}.".format(
simulator.get_current_tick(),
simulator.get_last_exit_event_cause()
)
)
~~~
At the same time, I run the sample script ??x86-ubuntu-run-with-kvm.py??
will get stuck in this:
~~~
in gem5/:
src/arch/x86/kvm/x86_cpu.cc:1653: warn: kvm-x86: MSR (0xc0010015) unsupported
by gem5. Skipping.
src/arch/x86/kvm/x86_cpu.cc:1653: warn: kvm-x86: MSR (0x4b564d05) unsupported
by gem5. Skipping.
20062000000000: board.pc.com_1.device: attach terminal 0
in gem5/util/term:
./m5term 3456
==== m5 terminal: Terminal 0 ====
~~~
And this simulation never run it again.
Thank you very much if you could help me answer my questions??
Best,
Chen SX
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org