Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cirosantilli2 opened this issue Apr 10, 2019 · 0 comments
Open

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

cirosantilli2 opened this issue Apr 10, 2019 · 0 comments

Comments

@cirosantilli2
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant