You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's currently hard to use the guest library. For instance, it defines a panic handler, which will
cause compilation errors if a user of the library already has one defined. This commit creates a new crate to
house the opinionated bits of the guest library to make its base functionality (i.e., causing
VM exits, calling host functions) easier to consume without sacrificing functionality that currently exists in
guest lib that makes writing guest apps easier.
Aside from creating the crate, this commit also fixes up some doc references that referenced the guest lib
alone.
Signed-off-by: danbugs <[email protected]>
@@ -145,9 +143,9 @@ the [./src/tests/rust_guests](./src/tests/rust_guests) directory for Rust guests
145
143
-[src/hyperlight_host](./src/hyperlight_host) - This is the Rust Hyperlight host library.
146
144
147
145
- Hyperlight Guest Libraries (i.e., the ones to make it easier to create guests that run inside the VMs)
148
-
-[src/hyperlight_guest](./src/hyperlight_guest) - This is the Rust Hyperlight guest library.
149
-
-[src/hyperlight_guest_capi](./src/hyperlight_guest_capi) - This is the C compatible wrapper for the Hyperlight
150
-
guest library.
146
+
-[src/hyperlight_guest](./src/hyperlight_guest) - The core Rust library for Hyperlight guests. It provides only the essential building blocks for interacting with the host environment, including the VM exit mechanism (`outb`), abstractions for calling host functions and receiving return values, and the input/output stacks used for guest-host communication.
147
+
-[src/hyperlight_guest_bin](./src/hyperlight_guest_bin/) - A minimal shim that allows using `hyperlight_guest` without adopting its more opinionated components (e.g., panic handler, heap initialization, musl-specific imports, logging, and exception handling).
148
+
-[src/hyperlight_guest_capi](./src/hyperlight_guest_capi) - A C-compatible wrapper around `hyperlight_guest_bin`, exposing its core functionality for use in C programs and other languages via FFI.
151
149
152
150
- Hyperlight Common (functionality used by both the host and the guest)
0 commit comments