Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 1.17 KB

README.md

File metadata and controls

42 lines (27 loc) · 1.17 KB

rusty-loader

rusty-loader is a loader to run RustyHermit within Qemu.

Requirements

Building

$ cargo xtask build --arch x86_64

Afterwards, the loader is located at target/x86_64/debug/rusty-loader.

Running

Boot a hermit application:

qemu-system-x86_64 -smp 1 \
    -cpu qemu64,apic,fsgsbase,rdtscp,xsave,xsaveopt,fxsr \
    -device isa-debug-exit,iobase=0xf4,iosize=0x04 \
    -display none -m 64M -serial stdio -enable-kvm \
    -kernel path_to_loader/rusty-loader \
    -initrd path_to_app/app

It is important to enable the processor features fsgsbase and rdtscp because it is a prerequisite to boot RustyHermit.

Please read the README of RustyHermit for more information.

License

Licensed under either of

at your option.