cirosantilli2 / gem5-issues

This repo can be used for gem5 usage questions. If you have a bug instead, just open a ticket at: https://gem5.atlassian.net/jira/software/c/projects/GEM5/issues gem5 info is being moved to: https://cirosantilli.com/linux-kernel-module-cheat/#gem5 Alternative usage question locations are: gem5-users mailing list and Stack Overflow.
4 stars 1 forks source link

How to use 9p virtio mounts in gem5? #24

Open cirosantilli2 opened 5 years ago

cirosantilli2 commented 5 years ago

I had asked this at: https://stackoverflow.com/questions/49268571/how-to-use-9p-virtio-mounts-in-gem5 but it was freaking auto deleted due to inactivity, please don't do that Stack Overflow!!!

I want to mount folders from host without networking on a Linux guest, much as explained for QEMU at: https://superuser.com/questions/628169/how-to-share-a-directory-with-the-host-without-networking-in-qemu

I have tried to apply the patch mentioned at: http://gem5.org/WA-gem5 on top of fbe63074e3a8128bdbe1a5e8f6509c565a3abbd4 to reach this commit.

Then I try to run gem5 ARM with a working setup, and adding the --workload-automation-vio=$(pwd) option.

But then I get the error message:

fatal: system.realview.viopci.vio.socketPath without default or user set value

and gem5 exits.

Are there other options that I have to pass? Why isn't that patch merged upstream?

My full gem5 CLI is:

M5_PATH='/home/ciro/bak/git/linux-kernel-module-cheat/buildroot/output.arm-gem5~/build/gem5-1.0/system'  '/home/ciro/bak/git/linux-kernel-module-cheat/buildroot/output.arm-gem5~/build/gem5-1.0/gem5/build/ARM/gem5.opt'  '/home/ciro/bak/git/linux-kernel-module-cheat/buildroot/output.arm-gem5~/build/gem5-1.0/gem5/configs/example/fs.py' --checkpoint-dir='./m5out/cpts/arm' --disk-image='/home/ciro/bak/git/linux-kernel-module-cheat/buildroot/output.arm-gem5~/images/rootfs.ext2' --kernel='/home/ciro/bak/git/linux-kernel-module-cheat/buildroot/output.arm-gem5~/build/linux-custom/vmlinux' --num-cpus='1'  --command-line='earlyprintk=pl011,0x1c090000 console=ttyAMA0 lpj=19988480 rw loglevel=8 mem=512MB root=/dev/sda nokaslr norandmaps printk.devkmsg=on printk.time=y' --dtb-file='/home/ciro/bak/git/linux-kernel-module-cheat/buildroot/output.arm-gem5~/build/gem5-1.0/gem5/system/arm/dt/armv7_gem5_v1_1cpu.dtb' --machine-type=VExpress_GEM5_V1  --workload-automation-vio=/home/ciro/bak/git/linux-kernel-module-cheat 

The Workload Automation tools claims to make it work, but I want to find out the raw command needed to set it up manually.

https://www.mail-archive.com/gem5-users@gem5.org/msg15199.html