Probably what I would recommend is to use the instructions described in the 
Workload Automation page (http://www.gem5.org/WA-gem5) to set up 9P filesystem 
over VirtIO. Although it does not explicitly state how to do it, with a bit of 
work you will be able to access the host file system from inside gem5.

After you get it set up and working, the procedure is as you describe: boot up 
to after login, create a checkpoint; restore the checkpoint, mount the host 
file system over VirtIO, copy the files you need into the guest, make your 
final checkpoint (either at the console or from inside the workload).

Hope that helps.

From: gem5-users [mailto:[email protected]] On Behalf Of Hanhwi Jang
Sent: Friday, December 08, 2017 3:27 AM
To: [email protected]
Subject: [EXT] [gem5-users] Efficiently way put workloads in the full system 
image?

Hi,

I am fairly new to gem5 and trying to setup some workloads in a full-system 
image.
The given image from the official website works fine,
but my own image and kernel (ubuntu 16.04) are suffering from really slow 
booting.

It is really painful to wait a system to boot every time and make checkpoints 
for a new workload.
I want to make a checkpoint right after booting and reuse that checkpoint to 
setup a new workload.
Is there any way to upload file to system image in the middle of simulation, 
such as,
making some disk image having a workload and connecting that image to the 
simulated system as a new disk?

Thanks,
Hanhwi
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to