Skip to content

QEMU: support UEFI via -bios #3176

New issue

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

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

Already on GitHub? # to your account

Closed
arixmkii opened this issue Jan 30, 2025 · 1 comment · Fixed by #3261
Closed

QEMU: support UEFI via -bios #3176

arixmkii opened this issue Jan 30, 2025 · 1 comment · Fixed by #3261

Comments

@arixmkii
Copy link
Contributor

arixmkii commented Jan 30, 2025

Description

Add configuration option to load UEFI firmware through -bios command line option. It is not really needed for the currently supported platforms, but on Windows WHPX acceleration experiencing issues with pflash mounted firmware https://gitlab.com/qemu-project/qemu/-/issues/513 Patch exists to workaround this, but using out of tree patches is a complication on its own. There is a workaround provided to load concatenated vars and code via -bios.

Current proposal:

  • add flag under Firmware section similar to LegacyBIOS
  • default value is false or false for non-windows OSes if this is possible/suitable
  • add code path to lookup vars counterpart (this is a bit trickier than code, because x86_64 is using vars of i386, but could be handled with trivial conditional reasoning)
  • generate concatenated version in the machine working directory
  • generate QEMU command line based on the flag

End goal - support upstream QEMU builds with Lima on Windows hosts.

I plan to work on this feature.

@arixmkii
Copy link
Contributor Author

Later, if the issue is fixed upstream, the introduced flag could be deprecated/discouraged and eventually removed, when the minimal supported version is bumped.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant