Hi all, 

I'm trying to boot Linux (from 
https://www.gem5.org/documentation/general_docs/fullsystem/guest_binaries) with 
multiple cores and KVM. The target ISA is aarch64, so I am running gem5 on an 
aarch64 host machine, with KVM support. I'm trying with the latest stable gem5 
version (v21.0.0.0) and the latest images from guest binaries.

I'm using the fs.py script, and the boot works if I run it with only one CPU:

```
./build/ARM/gem5.opt configs/example/fs.py --kernel 
$M5_PATH/binaries/vmlinux.arm64 --disk-image 
/scratch/pedro/ubuntu-18.04-arm64-docker.img --cpu-type ArmV8KvmCPU --mem-size 
8GB --script configs/boot/my_test_script.rcS --num-cpus 1
```

But if I run with `--num-cpus 2` (or 4 or 8), the terminal gets stuck at:

```
warn: Returning zero for read from miscreg pmevtyper2_el0
warn: Returning zero for read from miscreg pmevtyper3_el0
warn: Returning zero for read from miscreg pmevtyper4_el0
warn: Returning zero for read from miscreg pmevtyper5_el0
warn: Returning zero for read from miscreg pmccfiltr_el0
```

With only one CPU the terminal rapidly progresses after that part:
```
warn: Returning zero for read from miscreg pmevtyper1_el0
warn: Returning zero for read from miscreg pmevtyper2_el0
warn: Returning zero for read from miscreg pmevtyper3_el0
warn: Returning zero for read from miscreg pmevtyper4_el0
warn: Returning zero for read from miscreg pmevtyper5_el0
warn: Returning zero for read from miscreg pmccfiltr_el0
warn: SCReg: Access to unknown device dcc0:site0:pos0:fn7:dev0
warn: Tried to read RealView I/O at offset 0x60 that doesn't exist
warn: Tried to read RealView I/O at offset 0x48 that doesn't exist
warn: Tried to write RVIO at offset 0xa8 (data 0) that doesn't exist
warn: Tried to write RVIO at offset 0xa8 (data 0) that doesn't exist
warn: Tried to write RVIO at offset 0xa8 (data 0) that doesn't exist
warn: Tried to write RVIO at offset 0xa8 (data 0) that doesn't exist
warn: Tried to write RVIO at offset 0xa8 (data 0) that doesn't exist
warn: Tried to write RVIO at offset 0xa8 (data 0) that doesn't exist
warn: Tried to write RVIO at offset 0xa8 (data 0) that doesn't exist
warn: Tried to write RVIO at offset 0xa8 (data 0) that doesn't exist
warn: Tried to write RVIO at offset 0xa8 (data 0) that doesn't exist
warn: Tried to write RVIO at offset 0xa8 (data 0) that doesn't exist
warn: Tried to read RealView I/O at offset 0x8 that doesn't exist
warn: Tried to read RealView I/O at offset 0x48 that doesn't exist
warn: EnergyCtrl: Disabled handler, ignoring read from reg 0
```
And I can attach the terminal and see things are ok.

So questions:
Is KVM with multiple cores supported by gem5? I thought so by looking here 
http://www.gem5.org/documentation/benchmark_status/gem5-20
If it is, should I give any additional flags or perform additional steps in 
order to run KVM with multiple cores?

Thank you in advance for any suggestions,
Pedro.
_______________________________________________
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] Boot FS with ... Pedro Becker via gem5-users

Reply via email to