-
Notifications
You must be signed in to change notification settings - Fork 0
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
Infrastructure for running MPS under pKVM #58
Merged
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
0ba8962
initial commit of vm_runner
spernsteiner 43f2c09
vm_runner: factor out config::Process -> Command builder
spernsteiner b5c11b7
vm_runner: rename [[processes]] -> [[process]]
spernsteiner dffc171
vm_runner: add support for running vms
spernsteiner 48cf97f
vm_runner: refactor: make library `main` take config path as argument
spernsteiner 11df5ab
vm_runner: add opensut_boot binary
spernsteiner 46f74ec
vm_runner: add scripts for building and installing inside a VM
spernsteiner fb4bf4e
pkvm_setup: build separate disk images for development/interactive use
spernsteiner 66c514a
pkvm_setup: enable passwordless sudo in guest images
spernsteiner f0198f2
vm_runner: update {build,install}_config.toml for pkvm_setup image ch…
spernsteiner ae41718
vm_runner: add build_application_image.py
spernsteiner d16f7f6
vm_runner: add hello world test case
spernsteiner d5de6ec
vm_runner: add read_only option for vm disks
spernsteiner f58393f
vm_runner: nested version of hello world test
spernsteiner 66a5a19
vm_runner: add config file for installing into the guest image
spernsteiner 552dbd6
vm_runner: add support for configuring serial ports
spernsteiner ad48cac
vm_runner: add mps test configs
spernsteiner 5aad5c7
mps: update self_test_data/test_to_c.py for cryptol output format cha…
spernsteiner e8a6d60
mps: update tests/runner.py to support testing through a socket
spernsteiner d2122e8
mps: add reset (`R`) command
spernsteiner 13614db
mps: support running tests through a unix socket
spernsteiner 04ff67a
vm_runner: use PathBuf instead of String in Config fields
spernsteiner 877ba07
vm_runner: add cwd field to ShellCommand
spernsteiner b217774
vm_runner: interpret paths relative to the config file's parent dir
spernsteiner fb8fe18
vm_runner: mark gpio devices as not yet implemented
spernsteiner 10c4e67
vm_runner: add README.md
spernsteiner 1c42ed9
mps: report pass/fail/skip counts after running test suite
spernsteiner c269923
mps: update tests/README.md with instructions for testing with vm_runner
spernsteiner cc6ea96
vm_runner: rearrange test files
spernsteiner 1dd5c4e
vm_runner: add configs for running the MPS test suite
spernsteiner 0fa8304
mps: test runner: adjust delays when waiting for replies
spernsteiner a2f7dac
vm_runner: minor updates to mps config files
spernsteiner f9fc26c
mps: add build_aarch64.sh script
spernsteiner f6ecfb0
mps: update instructions for running tests under pKVM
spernsteiner 70f610c
Run VM scripts in the CI (#60)
podhrmic f5474f1
vm_runner: update comments in install_helper.sh
spernsteiner File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[target.aarch64-unknown-linux-gnu] | ||
linker = "aarch64-linux-gnu-gcc" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
cd "$(dirname "$0")/src" | ||
make clean | ||
make CC=aarch64-linux-gnu-g++ CXX=aarch64-linux-gnu-g++ SENSORS=NotSimulated SELF_TEST=Disabled | ||
cp -v rts rts.no_self_test.aarch64 | ||
make clean | ||
make CC=aarch64-linux-gnu-g++ CXX=aarch64-linux-gnu-g++ SENSORS=NotSimulated SELF_TEST=Enabled | ||
cp -v rts rts.self_test.aarch64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
200 changes: 190 additions & 10 deletions
200
components/mission_protection_system/src/self_test_data/test.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,190 @@ | ||
0x1 [[0xb56b, 0x9b67], [0x116d, 0x305e], [0x1e6a, 0x6d2b], [0x4278, 0x3cac]] [[0xbea4, 0x8cff, 0x8276], [0x73c1, 0x3306, 0x4b66], [0x1306, 0x8017, 0x061b], [0x0681, 0xe654, 0x563f]] 0x1 0x2 | ||
0x1 [[0xb4bf, 0xf2a5], [0xb729, 0x0592], [0xc445, 0x3267], [0xdb63, 0x98d5]] [[0x0af4, 0xb1ce, 0xa1c2], [0x3042, 0x23f3, 0x50b6], [0x578e, 0xc16a, 0xad24], [0xebd5, 0xc4b4, 0x6ea9]] 0x2 0x3 | ||
0x1 [[0x9e64, 0x646e], [0xec38, 0xa171], [0x8b17, 0x26fa], [0x6e11, 0x13e9]] [[0x4301, 0xeed8, 0x407c], [0xbdd9, 0x5e64, 0x978f], [0x337e, 0xb6b8, 0xc261], [0xf272, 0xbec3, 0xe020]] 0x3 0x3 | ||
0x1 [[0xc707, 0x909b], [0x5950, 0x5023], [0x2174, 0x7fbc], [0x9c8e, 0xb1c5]] [[0x450a, 0x5387, 0x4251], [0x54f7, 0x7331, 0x610c], [0x2246, 0xc23c, 0xe353], [0xd742, 0x11f0, 0x5c9b]] 0x2 0x2 | ||
0x1 [[0x64a7, 0xfc58], [0x73c5, 0x0dca], [0x76be, 0x322f], [0xf275, 0x856e]] [[0x71fb, 0xe1fc, 0xc226], [0xdca3, 0x47de, 0x2a2c], [0x365b, 0xe8d8, 0x5e63], [0x7d75, 0xf509, 0x0d46]] 0x0 0x0 | ||
0x1 [[0x3379, 0x097d], [0x8d0a, 0xf187], [0xb18d, 0x6bde], [0x31b3, 0x1656]] [[0x2a5f, 0xa347, 0xfd69], [0x99a0, 0xb82f, 0x9554], [0x2106, 0x7623, 0x08dd], [0xabf1, 0xc54c, 0x1237]] 0x0 0x2 | ||
0x1 [[0xe71e, 0x506e], [0x84a3, 0xf7d7], [0x3c66, 0xfdb7], [0x354c, 0xa3bb]] [[0x79e7, 0xec8c, 0x73c2], [0x9d4c, 0x395b, 0x4a52], [0x783c, 0xf1cc, 0xd0ee], [0x8171, 0xc116, 0x08bd]] 0x0 0x0 | ||
0x1 [[0x33fe, 0x41d3], [0x1842, 0xce9e], [0xa731, 0x6312], [0xbabb, 0xaa2e]] [[0xd683, 0x8077, 0x2d0d], [0x0c50, 0xa354, 0xb23e], [0xc806, 0xa680, 0x25d1], [0x965f, 0xba1f, 0x7f91]] 0x1 0x3 | ||
0x3 [[0x8f55, 0xa308], [0x8910, 0xc8f3], [0xed53, 0xa96e], [0x6b72, 0xb094]] [[0x8024, 0x2af2, 0x8a77], [0xd392, 0x6b95, 0xc5e4], [0xd167, 0x78eb, 0xae62], [0xd786, 0x2183, 0xeda3]] 0x3 0x3 | ||
0x1 [[0x03a4, 0x7579], [0xfef5, 0x193e], [0x8381, 0xbdd3], [0x649d, 0xae79]] [[0xc42c, 0xd33a, 0x2cc9], [0xa687, 0x657b, 0xbf3b], [0x48d2, 0xc9b1, 0x2b48], [0xb123, 0x8814, 0x497c]] 0x2 0x3 | ||
0x1 [[0x753c, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Given these are re-generated every time you build the MPS, maybe we should just add them to |
||
0x8567], | ||
[0x9941, | ||
0x9047], | ||
[0x010f, | ||
0x619e], | ||
[0x6c16, | ||
0xa5e2]] [[0xbe86, | ||
0x2ac0, | ||
0x508e], | ||
[0xf929, | ||
0x7f97, | ||
0x2e07], | ||
[0x92f3, | ||
0xdec1, | ||
0xe896], | ||
[0xca3a, | ||
0x4532, | ||
0x67ac]] 0x1 0x3 | ||
0x1 [[0xe2bc, | ||
0x48ad], | ||
[0x20ab, | ||
0x6b44], | ||
[0x5074, | ||
0x8063], | ||
[0x74b5, | ||
0xfadb]] [[0xe5ce, | ||
0x151f, | ||
0x69fc], | ||
[0x933a, | ||
0xe0e5, | ||
0x372d], | ||
[0x52d0, | ||
0x5320, | ||
0x6273], | ||
[0x6d2a, | ||
0xc90a, | ||
0x6c50]] 0x3 0x1 | ||
0x3 [[0xaf29, | ||
0xfb7f], | ||
[0xd293, | ||
0xcaa6], | ||
[0x101d, | ||
0xb852], | ||
[0x10da, | ||
0xfa5c]] [[0x1f9b, | ||
0xf7d2, | ||
0x64c2], | ||
[0xfa38, | ||
0x35e3, | ||
0xd88e], | ||
[0x0660, | ||
0xe4b8, | ||
0xb256], | ||
[0x5071, | ||
0x5b45, | ||
0xa947]] 0x3 0x1 | ||
0x3 [[0xfd39, | ||
0x21d4], | ||
[0xdb77, | ||
0xff43], | ||
[0x899b, | ||
0xd07b], | ||
[0x576c, | ||
0xe806]] [[0xf591, | ||
0x3092, | ||
0xdeab], | ||
[0x53b7, | ||
0xcdd8, | ||
0x3125], | ||
[0x71c2, | ||
0x375c, | ||
0x4d54], | ||
[0xf62f, | ||
0xe4f1, | ||
0x7d1a]] 0x0 0x3 | ||
0x1 [[0x2111, | ||
0x72a4], | ||
[0x5ef8, | ||
0xc6af], | ||
[0x702d, | ||
0x1f3f], | ||
[0x7030, | ||
0x1828]] [[0x70bd, | ||
0xa499, | ||
0xb6a4], | ||
[0x3749, | ||
0x0bc8, | ||
0x0170], | ||
[0x90ef, | ||
0x1291, | ||
0xf908], | ||
[0x66b2, | ||
0xc0a7, | ||
0x4c86]] 0x0 0x2 | ||
0x1 [[0x205c, | ||
0x813b], | ||
[0xdfcc, | ||
0xb70d], | ||
[0x877f, | ||
0x930a], | ||
[0x4300, | ||
0x3a90]] [[0x1966, | ||
0xf30a, | ||
0x1237], | ||
[0xcbb6, | ||
0xdf45, | ||
0xb3a7], | ||
[0xb5d1, | ||
0x9b11, | ||
0x1e04], | ||
[0x4ca2, | ||
0xa2c5, | ||
0xe2b2]] 0x2 0x1 | ||
0x1 [[0x64f6, | ||
0x2140], | ||
[0x839a, | ||
0x55a7], | ||
[0x6255, | ||
0x27ed], | ||
[0x9baa, | ||
0xb966]] [[0xc51d, | ||
0x1552, | ||
0xc126], | ||
[0x86c1, | ||
0x66ae, | ||
0x8294], | ||
[0xb374, | ||
0x4385, | ||
0x5ffb], | ||
[0x3ff4, | ||
0x9a3c, | ||
0xb897]] 0x2 0x0 | ||
0x1 [[0x77b9, | ||
0x9969], | ||
[0x648b, | ||
0x1459], | ||
[0x1c41, | ||
0x5f5e], | ||
[0x30a9, | ||
0x9941]] [[0xa6c2, | ||
0xc89c, | ||
0x854d], | ||
[0xbff7, | ||
0xd30a, | ||
0xae30], | ||
[0x733a, | ||
0xacbc, | ||
0x5680], | ||
[0xde27, | ||
0x0ba9, | ||
0xcc1c]] 0x1 0x2 | ||
0x3 [[0x95a8, | ||
0xecfd], | ||
[0x617d, | ||
0xeb9b], | ||
[0x74c8, | ||
0xfb58], | ||
[0x73e2, | ||
0x378c]] [[0x1674, | ||
0x53e5, | ||
0xabbd], | ||
[0x6ee4, | ||
0xe0c2, | ||
0xdd77], | ||
[0x26ab, | ||
0x9e64, | ||
0x6e96], | ||
[0x0c21, | ||
0x13a3, | ||
0x9d27]] 0x3 0x1 | ||
0x3 [[0xd477, | ||
0x4235], | ||
[0xa5b1, | ||
0xf5e3], | ||
[0x30ec, | ||
0xf265], | ||
[0x014e, | ||
0x8fd2]] [[0x31b9, | ||
0x7d86, | ||
0x15e4], | ||
[0xea39, | ||
0xf888, | ||
0x9fbe], | ||
[0x8247, | ||
0x7fbd, | ||
0x5b29], | ||
[0xdb42, | ||
0x301d, | ||
0x7ed8]] 0x2 0x0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets refactor the makefile in lieu of this script, as mentioned in #49