Unverified Commit 24383acf authored by bors[bot]'s avatar bors[bot] Committed by GitHub
Browse files

Merge #28

28: QEMU: Enable xsaveopt cpu feature r=stlankes a=mkroening

See https://github.com/hermitcore/libhermit-rs/pull/278

.
Co-authored-by: Martin Kröning's avatarMartin Kröning <mkroening@posteo.net>
parents 2cf63cb3 892be5ec
Pipeline #543496 passed with stages
in 4 minutes and 43 seconds
......@@ -59,7 +59,7 @@ jobs:
- name: Install qemu (windows)
uses: crazy-max/ghaction-chocolatey@v1
with:
args: install qemu --version=2020.08.14
args: install qemu
if: ${{ matrix.os == 'windows-latest' }}
- name: Set path to qemu/nasm (Windows)
run: |
......@@ -80,4 +80,4 @@ jobs:
if: ${{ matrix.os == 'windows-latest' }}
- name: Test loader
run:
qemu-system-x86_64 -display none -smp 1 -m 64M -serial stdio -kernel target/x86_64-unknown-hermit-loader/debug/rusty-loader -initrd data/x86_64/hello_world -cpu qemu64,apic,fsgsbase,rdtscp,xsave,fxsr,rdrand
qemu-system-x86_64 -display none -smp 1 -m 64M -serial stdio -kernel target/x86_64-unknown-hermit-loader/debug/rusty-loader -initrd data/x86_64/hello_world -cpu qemu64,apic,fsgsbase,rdtscp,xsave,xsaveopt,fxsr,rdrand
......@@ -20,7 +20,7 @@ Afterwards, the loader is stored in `target/x86_64-unknown-hermit-loader/debug/`
As final step the unikernel application `app` can be booted with following command:
```bash
$ qemu-system-x86_64 -display none -smp 1 -m 64M -serial stdio -kernel path_to_loader/rusty-loader -initrd path_to_app/app -cpu qemu64,apic,fsgsbase,rdtscp,xsave,fxsr
$ qemu-system-x86_64 -display none -smp 1 -m 64M -serial stdio -kernel path_to_loader/rusty-loader -initrd path_to_app/app -cpu qemu64,apic,fsgsbase,rdtscp,xsave,xsaveopt,fxsr
```
It is important to enable the processor features _fsgsbase_ and _rdtscp_ because it is a prerequisite to boot RustyHermit.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment