Skip to content

Commit 46e17a8

Browse files
author
Roy Lin
committed
fix(windows): ship reliable WHPX runtime
1 parent fa06c89 commit 46e17a8

7 files changed

Lines changed: 15 additions & 9 deletions

File tree

src/deps/libkrun-sys/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1717

1818
### Fixed
1919

20+
- Enable the boot-safe Hyper-V enlightenment surface by default on WHPX so
21+
current libkrunfw kernels reach Linux userspace.
22+
- Return fatal WHPX vCPU exits as failures instead of successful guest
23+
shutdowns.
24+
- Restore Linux `/` separators in Windows virtiofs `READLINK` replies so OCI
25+
rootfs links such as `/bin/sh -> /bin/busybox` remain executable.
2026
- Preserve guest-visible POSIX mode, UID, and GID values in the Windows
2127
virtiofs inode table so callers can capture and replay them across VM
2228
generations.

src/deps/libkrun-sys/SOURCE-PROVENANCE.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,23 @@ are lowercase SHA-256 unless noted otherwise.
77
## Packaged Windows runtime
88

99
The deterministic `vendor/krun-windows-x64.tar.xz` archive has SHA-256
10-
`f528d69284dc4b182851c2bc10ef060512306848f11a4e358a461556d81a7268`
10+
`c8d14bd0ceb86190effac9c9af12892f1dbb5b82f22123e8524dd375014d5493`
1111
and contains exactly:
1212

1313
| File | Bytes | SHA-256 |
1414
| --- | ---: | --- |
15-
| `krun.dll` | 7,428,608 | `3af54645aa675356d631839ec64b863b1ef45ff1d83fb7530ffd39a83b1ea17a` |
15+
| `krun.dll` | 7,428,608 | `e5debc685ae171e3f60a6e3b9c1c4e12a7c3eb943a68ceb1169e153f0cc6c255` |
1616
| `krun.lib` | 11,870 | `3ac760758158bd4d2d6570db58037d47cd370a8e6ea04ccf54a8b24fd1fdec3d` |
1717
| `libkrunfw.dll` | 21,473,280 | `44f25540f58155c01258fe123617636fdc6cff27873e38e71dbc75f139602077` |
1818

1919
`krun.dll` and its import library correspond to A3S-Lab/libkrun commit
20-
`e50683984386611f9a06d7a66d87976d8aa4bbcb`. The packaged
20+
`513268f40c83979b45f39410c3fe96888ddd60ea`. The packaged
2121
`libkrunfw.dll` wrapper remains from commit
2222
`2692169b7567363244fdd21cb83de3220ebf3021`. The required source is included
2323
in `vendor/libkrun-source.tar` (SHA-256
24-
`05f6d3137d424e131aafc9cd0fdef6cde019b4ede15b19cacf6435280748588e`).
24+
`8bb6ef324936c12bdb567b86072024f68dcd137d731bf2f6ef23ec90d9d90a1b`).
2525
The deterministic archive was generated from local tooling commit
26-
`e50683984386611f9a06d7a66d87976d8aa4bbcb`; its
26+
`513268f40c83979b45f39410c3fe96888ddd60ea`; its
2727
`corresponding-source/2692169` directory preserves the exact wrapper source
2828
for the packaged firmware DLL. The archive also contains the Apache-2.0
2929
license and the EDK2 source notices.

src/deps/libkrun-sys/build.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,16 @@ const LIBKRUN_BUILD_FEATURES: &[(&str, &str)] = &[("NET", "1"), ("BLK", "1")];
4545
// revision. Cargo does not recurse into Git submodules when creating a .crate,
4646
// so the archive is the source fallback for crates.io consumers.
4747
const LIBKRUN_SOURCE_ARCHIVE_SHA256: &str =
48-
"05f6d3137d424e131aafc9cd0fdef6cde019b4ede15b19cacf6435280748588e";
48+
"8bb6ef324936c12bdb567b86072024f68dcd137d731bf2f6ef23ec90d9d90a1b";
4949

5050
// Deterministic XZ archive containing the exact krun.dll, krun.lib, and
5151
// libkrunfw.dll combination exercised by the Windows WHPX test matrix.
5252
const KRUN_WINDOWS_ARCHIVE_SHA256: &str =
53-
"f528d69284dc4b182851c2bc10ef060512306848f11a4e358a461556d81a7268";
53+
"c8d14bd0ceb86190effac9c9af12892f1dbb5b82f22123e8524dd375014d5493";
5454
const KRUN_WINDOWS_FILE_SHA256: &[(&str, &str)] = &[
5555
(
5656
"krun.dll",
57-
"3af54645aa675356d631839ec64b863b1ef45ff1d83fb7530ffd39a83b1ea17a",
57+
"e5debc685ae171e3f60a6e3b9c1c4e12a7c3eb943a68ceb1169e153f0cc6c255",
5858
),
5959
(
6060
"krun.lib",
0 Bytes
Binary file not shown.
72.3 KB
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)