Skip to content

Commit a7aa437

Browse files
authored
Merge branch 'main' into az-linux-3
Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com>
2 parents db5f27b + d2d78f6 commit a7aa437

File tree

31 files changed

+455
-387
lines changed

31 files changed

+455
-387
lines changed

.github/workflows/dep_rust.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ jobs:
7474
# with only one driver enabled (driver mshv/kvm feature is ignored on windows) + seccomp + inprocess
7575
just test-rust ${{ matrix.config }} inprocess,seccomp,${{ matrix.hypervisor == 'mshv' && 'mshv' || 'kvm' }}
7676
77+
# make sure certain cargo features compile
78+
cargo check -p hyperlight-host --features crashdump
79+
cargo check -p hyperlight-host --features print_debug
80+
7781
# without any driver (shouldn't compile)
7882
just test-rust-feature-compilation-fail ${{ matrix.config }}
7983

Cargo.lock

Lines changed: 44 additions & 49 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/debugging-hyperlight.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ cargo test --package hyperlight-host --test integration_test --features print_de
3939

4040
## Dumping the memory configuration, virtual processor register state and memory contents on a crash or unexpected VM Exit
4141

42-
To dump the details of the memory configuration, the virtual processors register state and the contents of the VM memory set the feature `dump_on_crash` and run a debug build. This will result in a dump file being created in the temporary directory. The name and location of the dump file will be printed to the console and logged as an error message.
42+
To dump the details of the memory configuration, the virtual processors register state and the contents of the VM memory set the feature `crashdump` and run a debug build. This will result in a dump file being created in the temporary directory. The name and location of the dump file will be printed to the console and logged as an error message.
4343

4444
There are no tools at this time to analyze the dump file, but it can be useful for debugging.

docs/hyperlight-metrics-logs-and-traces.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,21 +82,21 @@ In the [examples/otlp_tracing](../src/hyperlight_host/examples/otlp_tracing) dir
8282
#### Linux
8383

8484
```bash
85-
RUST_LOG='none,hyperlight-host=info,tracing=info' cargo run --example otlp_tracing
85+
RUST_LOG='none,hyperlight_host=info,tracing=info' cargo run --example otlp_tracing
8686
```
8787

8888
#### Windows
8989

9090
```powershell
91-
$env:RUST_LOG='none,hyperlight-host=info,tracing=info';cargo run --example otlp_tracing
91+
$env:RUST_LOG='none,hyperlight_host=info,tracing=info';cargo run --example otlp_tracing
9292
```
9393

9494
The sample will run and generate trace data until any key is pressed.
9595

9696
To view the trace data, leave the example running and use the jaegertracing/all-in-one container image with the following command:
9797

9898
```console
99-
docker run -d --name jaeger -e COLLECTOR_OTLP_ENABLED=true -p 4317:4317 -p 16686:16686 jaegertracing/all-in-one:1.51
99+
docker run -d --name jaeger -e COLLECTOR_OTLP_ENABLED=true -p 4317:4317 -p 16686:16686 jaegertracing/all-in-one:1.60
100100
```
101101

102102
NOTE: when running this on windows that this is a linux container, so you will need to ensure that docker is configured to run linux containers using WSL2. Alternatively, you can download the Jaeger binaries from [here](https://www.jaegertracing.io/download/). Extract the archive and run the `jaeger-all-in-one` executable as follows:

proposals/NNNN-hip-template/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# HIP NNNN - SKIP NAME
1+
# HIP NNNN - HIP NAME
22

33
<!-- toc -->
44
- [Summary](#summary)

src/hyperlight_common/Cargo.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,10 @@ workspace = true
1616

1717
[dependencies]
1818
flatbuffers = { version = "24.3.25", default-features = false }
19-
anyhow = { version = "1.0.72", default-features = false }
19+
anyhow = { version = "1.0.94", default-features = false }
2020
log = "0.4.20"
21-
tracing = { version = "0.1.27", optional = true }
22-
strum = {version = "0.25", default-features = false, features = ["derive"]}
23-
strum_macros = {version = "0.26", features =[]}
21+
tracing = { version = "0.1.41", optional = true }
22+
strum = {version = "0.26", default-features = false, features = ["derive"]}
2423

2524
[features]
2625
default = ["tracing"]

src/hyperlight_common/src/flatbuffer_wrappers/guest_log_level.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ limitations under the License.
1616

1717
use anyhow::{bail, Error, Result};
1818
use log::Level;
19-
use strum_macros::EnumIter;
19+
use strum::EnumIter;
2020
#[cfg(feature = "tracing")]
2121
use tracing::{instrument, Span};
2222

src/hyperlight_guest/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ printf = [] # compile printf
1919
alloca = [] # compile alloca wrapper
2020

2121
[dependencies]
22-
anyhow = { version = "1.0.45", default-features = false }
22+
anyhow = { version = "1.0.94", default-features = false }
2323
serde_json = { version = "1.0", default-features = false, features = ["alloc"] }
2424
buddy_system_allocator = "0.11.0"
2525
hyperlight-common = { workspace = true }
2626
spin = "0.9.8"
2727
log = { version = "0.4", default-features = false }
2828

2929
[build-dependencies]
30-
cc = "1.0"
30+
cc = "1.2"
3131
cfg-if = "1.0"

src/hyperlight_guest/build.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,6 @@ fn cargo_main() {
133133
cfg.define("__x86_64__", None);
134134
cfg.define("__LITTLE_ENDIAN__", None);
135135

136-
cfg.define("malloc", "hlmalloc");
137-
cfg.define("calloc", "hlcalloc");
138-
cfg.define("free", "hlfree");
139-
cfg.define("realloc", "hlrealloc");
140-
141136
// silence compiler warnings
142137
cfg.flag("-Wno-sign-compare");
143138
cfg.flag("-Wno-bitwise-op-parentheses");

0 commit comments

Comments
 (0)