Skip to content

Commit b50b0e2

Browse files
authored
add npuvm tool for turning a helios vm into an npu vm (#150)
1 parent 07bcda4 commit b50b0e2

5 files changed

Lines changed: 1300 additions & 1 deletion

File tree

.github/buildomat/jobs/build-and-test.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,16 @@
2828
#: series = "image"
2929
#: name = "npuzone.sha256.txt"
3030
#: from_output = "/work/release/npuzone.sha256.txt"
31+
#:
32+
#: [[publish]]
33+
#: series = "image"
34+
#: name = "npuvm"
35+
#: from_output = "/work/release/npuvm"
36+
#:
37+
#: [[publish]]
38+
#: series = "image"
39+
#: name = "npuvm.sha256.txt"
40+
#: from_output = "/work/release/npuvm.sha256.txt"
3141

3242
set -o errexit
3343
set -o pipefail
@@ -49,7 +59,9 @@ do
4959
mkdir -p /work/$x
5060
cp target/$x/softnpu /work/$x/
5161
cp target/$x/npuzone /work/$x/
62+
cp target/$x/npuvm /work/$x/
5263
digest -a sha256 /work/$x/softnpu > /work/$x/softnpu.sha256.txt
5364
digest -a sha256 /work/$x/npuzone > /work/$x/npuzone.sha256.txt
65+
digest -a sha256 /work/$x/npuvm > /work/$x/npuvm.sha256.txt
5466
done
5567

Cargo.lock

Lines changed: 179 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,10 @@ octocrab = "0.49"
3333
libnet = { git = "https://github.com/oxidecomputer/netadm-sys", branch = "main" }
3434
p4rs = { git = "https://github.com/oxidecomputer/p4", branch = "main" }
3535
sha256 = "1.6.0"
36+
camino = "1.2.2"
37+
thiserror = "2.0.17"
38+
flate2 = "1.0"
39+
tar = "0.4"
40+
fs_extra = "1.3"
41+
tempfile = "3.8"
42+
smf = { git = "https://github.com/illumos/smf-rs" }

client/Cargo.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ name = "npuzone"
1515
test = false
1616
doctest = false
1717

18+
[[bin]]
19+
name = "npuvm"
20+
test = false
21+
doctest = false
22+
1823
[dependencies]
1924
softnpu.workspace = true
2025
serde.workspace = true
@@ -42,3 +47,10 @@ curl.workspace = true
4247
octocrab.workspace = true
4348
libnet.workspace = true
4449
sha256.workspace = true
50+
camino.workspace = true
51+
thiserror.workspace = true
52+
flate2.workspace = true
53+
tar.workspace = true
54+
fs_extra.workspace = true
55+
tempfile.workspace = true
56+
smf.workspace = true

0 commit comments

Comments
 (0)