Hi Zehan, This is a relatively common error. In fact, even on systems where kvm works, I sometimes get this error. You may want to try applying the following patch from reviewboard.
http://reviews.gem5.org/r/2613 Hopefully that solves the problem. If not, you can try this patch, from Nilay Vaish that I have applied to my gem5 that seems to make kvm work a little more reliably. https://github.com/powerjg/gem5/commit/d8f3e9d8fc63f2f6778df6b4dcc5338c3d36d33d Really, this whole branch on my github may be helpful: https://github.com/powerjg/gem5/commits/hacks/kvm Cheers, Jason On Wed, Oct 26, 2016, 2:30 AM Zehan Cui <[email protected]> wrote: Hi, I’m trying to run gem5 SE mode with X86KvmCPU, but get the following error: Cmdline: build/X86_MOESI_AMD_Base_KVM/gem5.opt --debug-flags=KvmAll configs/example/se.py --cpu-type=kvm --mem-type=SimpleMemory -c tests/test-progs/hello/bin/x86/linux/hello … panic: KVM: Unknown error when starting vCPU (hw reason: 0x80000021) @ tick 121227000 [handleKvmExitUnknown:build/X86_MOESI_AMD_Base_KVM/cpu/kvm/base.cc, line 1089] Memory Usage: 761456 KBytes Program aborted at tick 121227000 … (The whole error messages with debug-flag=KvmAll are attached.) Gem5 build options: PROTOCOL = 'MOESI_AMD_Base' TARGET_ISA = 'x86' USE_KVM = True CPU_MODELS = 'AtomicSimpleCPU,MinorCPU,O3CPU,TimingSimpleCPU' Host CPU: Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz Virtualization: VT-x OS & Kernel: Red Hat Enterprise Linux Server release 6.5 (Santiago) Linux localhost.localdomain 2.6.32-431.el6.x86_64 #1 SMP Sun Nov 10 22:19:54 EST 2013 x86_64 x86_64 x86_64 GNU/Linux I’ve tried to run Qemu with KVM acceleration and it succeeded, so it seems that the KVM installation in my system is OK. Any suggestions? Thanks, Zehan _______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
