Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider adding an option to run under full-system emulation #242

Closed
nagisa opened this issue Dec 17, 2018 · 1 comment
Closed

Consider adding an option to run under full-system emulation #242

nagisa opened this issue Dec 17, 2018 · 1 comment
Labels
A-qemu Area: qemu runners enhancement

Comments

@nagisa
Copy link
Contributor

nagisa commented Dec 17, 2018

Something along the lines of

qemu-system-X -kernel kernel -initrd initrd -append init=executable

Should be sufficient, although it will be necessary to wrap executable into some sort of script that would

  1. cleanly terminate the system after it is done running the executable;
  2. transfer the exit code from the guest to the host somehow...

Obviously there are a number of complications as well (e.g. dynamic library dependencies), but for targets that do not work either way currently (s390x, sparc64, (to an extent) powerpc...) it may prove to be a viable alternative that gives significant stability boost.

As an extended future goal this could also support testing and building on various other kernels that aren’t linux!

@nagisa nagisa changed the title Consider adding a flag to run under full-system emulation Consider adding an option to run under full-system emulation Dec 17, 2018
@Alexhuszagh Alexhuszagh added enhancement A-qemu Area: qemu runners labels May 27, 2022
@Alexhuszagh
Copy link
Contributor

I believe this was implemented in #153 with the wrapper script of /linux-runner. Since you can also provide your own CARGO_TARGET_${TARGET}_RUNNER envvar to your custom runner if you use custom Dockerfiles, you can fine-tune this if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-qemu Area: qemu runners enhancement
Projects
None yet
Development

No branches or pull requests

2 participants