-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When the magic command `-` is passed, and we are running in kernel mode, get a shell prompt in the VM. To do this, we can re-use the existing `run` framework with some changes: - standard streams to the qemu command are not changed and instead are inherited - child std is not streamed to the UI anymore. - the command is not sent over qga anymore, we just wait for the qemu command to return (e.g when user exit its bash prompt) and exit Fixes #54 Tested by running ``` RUST_LOG=debug cargo run -- -k kernels/bzImage-x86_64 - ``` and confirming no existing tests are broken. Also could get it to work cross-platform: ``` cargo run -- -k ./kernels/Image-arm64 -r ./rootfs/ubuntu-lunar-arm64 -a aarch64 - ``` Signed-off-by: Manu Bretelle <chantr4@gmail.com>
- Loading branch information
Showing
1 changed file
with
36 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters