I'm afraid I can't help you with this directly, but one idea might be to run your commands through 'strace' and see how gem5 is trying to access /dev/kvm and how the kernel is reacting to these accesses.
From: gem5-users [mailto:gem5-users-boun...@gem5.org] On Behalf Of Qureshi Yasir Mahmood Sent: Thursday, October 19, 2017 12:24 PM To: gem5 users mailing list <gem5-users@gem5.org> Subject: [EXT] Re: [gem5-users] ARM v8 KVM - GEM5 Hi All, Any idea why the ARM KVM model is not running in the following, please ? If I need to debug this, can someone suggest what debug flags should I be looking out for ? Thank you Regards Yasir From: gem5-users [mailto:gem5-users-boun...@gem5.org] On Behalf Of Qureshi Yasir Mahmood Sent: 18 October 2017 16:07 To: gem5-users@gem5.org<mailto:gem5-users@gem5.org> Subject: [gem5-users] ARM v8 KVM - GEM5 Hi All, I am trying to use the ARMv8 KVM CPU model in FS mode. My gem5 is compiled and running on Cavium ThunderX machine (ARMv8 architecture). When I run the following without any sudo, ./build/ARM/gem5.fast --remote-gdb-port=0 -d kvzr/kvzr_base configs/example/fs.py --kernel=vmlinux --machine-type=VExpress_GEM5_V1 --dtb-file=/home/epfl/gem5/system/arm/dt/armv8_gem5_v1_16cpu.dtb --disk-image=test_kvzr.img -n 16 --cpu-clock=2GHz --caches --l2cache --l1i_size=64kB --l1d_size=32kB --l1i_assoc=2 --l1d_assoc=2 --l2_size=16MB --l2_assoc=16 --mem-type=DDR4_2400_4x16 --mem-ranks=4 --mem-size=16GB --sys-clock=1600MHz --cpu-type=ArmV8KvmCPU fatal: KVM: Failed to open /dev/kvm Memory Usage: 87808 Kbytes If I put a sudo just at the start of the command, the error is as follows Global frequency set at 1000000000000 ticks per second info: kernel located at: /home/epfl/full_system_images/binaries/vmlinux warn: Highest ARM exception-level set to AArch32 but bootloader is for AArch64. Assuming you wanted these to match. panic: KVM: Failed to create device (errno: 19) Memory Usage: 17142380 KBytes Program aborted at tick 0 --- BEGIN LIBC BACKTRACE --- ./build/ARM/gem5.fast(_Z15print_backtracev+0x38)[0x18f1498] ./build/ARM/gem5.fast(_Z12abortHandleri+0x5c)[0x18fe8d4] [0xffff9b0ec510] /lib/aarch64-linux-gnu/libc.so.6(gsignal+0x38)[0xffff9a7e94e8] --- END LIBC BACKTRACE --- Aborted I ran kvm-ok, and the output was the following INFO: /dev/kvm exists KVM acceleration can be used My host kernel version is 4.4 and the simulated kernel version is 4.3 Any ideas, why KVM CPU model is not running on for ARM FS ? Regards Yasir
_______________________________________________ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users