Config: Make disk-image option support mutiple disks
Review Request #1183 - Created May 9, 2012 and updated
| Information | |
|---|---|
| Jayneel Gandhi | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
Changeset 9008:940d21e358ea --------------------------- Config: Make disk-image option support mutiple disks Added support to specify mutiple disks provided on command line with disk-image option. Made the required changes to SysConfig to support that. Updated regressions to accomodate the stat name changes and change in SysConfig. When you use this option, you have to specify disks in specific order and the default disks for the system also needs to be specified. The operating system disk is to be specified first in the comma-spearated list. The new disks that you specify can be mounted by using mount command once the operating system is booted. Like for X86 linux, you can mount the new disk from /dev/hdc, if the option was used as --mem-disk=linux disk,swap disk,new disk.
All FS test passed except SPARC FS (FS files for SPARC no available) All SE tests passed except eio tests.
Issue Summary
9
2
7
0
| Description | From | Last Updated | Status |
|---|---|---|---|
| So why have you bothered adding the swap disk if you're going to just undo that here? | Ali Saidi | May 20, 2012, 6:18 a.m. | Open |
| if you specify more than one disk this is likely going to break sparc in general. | Ali Saidi | May 20, 2012, 12:28 a.m. | Open |
Posted (May 17, 2012, 11:03 p.m.)
-
configs/common/Benchmarks.py (Diff revision 1) -
Leave one space after the comma.
-
configs/common/FSConfig.py (Diff revision 1) -
The code for creation of disk array seems to be common to all the architectures. Can you pull this out into a separate function?
-
configs/common/FSConfig.py (Diff revision 1) -
Is there any difference between the class CowMmDisk and CowIdeDisk?
-
tests/configs/pc-o3-timing.py (Diff revision 1) -
Space between comma and the next object.
Review request changed
Updated (May 18, 2012, 6:23 a.m.)
Description: |
|
|||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Diff: |
Revision 2 (+157 -151) |
Review request changed
Updated (May 18, 2012, 6:26 a.m.)
Change Summary:
Incorporated Nilay's changes
Testing Done: |
|
|---|
Posted (May 18, 2012, 11:53 p.m.)
Unless required, try to not include the stat updates in patches. They kind of clutter the patch.
-
configs/common/FSConfig.py (Diff revision 2) -
I think you inadvertently deleted a line here.
-
configs/example/fs.py (Diff revision 2) -
Can the comma appear on the previous line?
Review request changed
Updated (May 19, 2012, 1:29 a.m.)
Description: |
|
|||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Diff: |
Revision 3 (+157 -150) |
Posted (May 20, 2012, 12:28 a.m.)
This still seems like a a not completely adequate bandaid for a problem that goes a lot deeper than just specifying disk images on the command line.
-
configs/common/Benchmarks.py (Diff revision 3) -
This appears to be the least pythonesque way to do this. how about for dn in self.diskname: disks.append(dn.strip()) return disks
-
configs/common/FSConfig.py (Diff revision 3) -
So why have you bothered adding the swap disk if you're going to just undo that here?
-
configs/common/FSConfig.py (Diff revision 3) -
if you specify more than one disk this is likely going to break sparc in general.
Review request changed
Updated (May 30, 2012, 2:15 a.m.)
Description: |
|
|||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Diff: |
Revision 4 (+157 -150) |
