kernel icon indicating copy to clipboard operation
kernel copied to clipboard

feat(uhyve): use v2 interface, MmioWrite exits on x86_64

Open n0toose opened this issue 2 months ago • 3 comments

Companion PR to https://github.com/hermit-os/uhyve/pull/1145

n0toose avatar Oct 25 '25 16:10 n0toose

Small status update: This can't work as-is yet, because we use GuestVirtAddr for the write and read implementations inside src/fd/stdio.rs and src/fs/uhyve.rs, whereas uhyve-interface v2 should now use GuestPhysAddr instead.

n0toose avatar Nov 12 '25 17:11 n0toose

The issue causing the CI to fail was technically fixed in https://github.com/hermit-os/kernel/pull/2066/files, but we don't expect a new release for v1 of uhyve-interface (in which https://github.com/hermit-os/kernel/pull/2066/files would've helped.)

We can work around this by using @fogti's work that effectively shifts this responsibility onto hermit-entry:

  • https://github.com/hermit-os/hermit-entry/pull/64
  • https://github.com/hermit-os/kernel/pull/2066

Alternatively, we can use [patch.crates-io] and force the kernel to use the latest commit for Uhyve.

CC: @jounathaen, @mkroening

n0toose avatar Nov 14 '25 14:11 n0toose

but we don't expect a new release for v1 of uhyve-interface

Note that we don't need a new release of uhyve-interface because the error itself only manifests if we use the faulty macro from uhyve-interface.

fogti avatar Dec 02 '25 14:12 fogti