Repository navigation
Conversation
Fixes #907. This change both produces an E820 table for OVMF to consult for highmem layout, and clamps the RTC CMOS bytes through which we communicate highmem size to OVMF. The E820 table supplants the RTC CMOS for OVMF's purposes, so in theory nothing will check those bytes anymore. Even so, clamping to them to `ffffff` seems more legible.
iximeow
commented
Jun 21, 2025
Comment on lines
+1238
to
+1240
| fwcfg | ||
| .insert_named("etc/e820", e820_entry) | ||
| .map_err(|e| MachineInitError::FwcfgInsertFailed("e820", e))?; |
Member
Author
There was a problem hiding this comment.
I don't really see a reason to make this optional, at least. Regardless of offering up an e820 map the guest OS will use UEFI services and get the map that OVMF builds of the system.
iximeow
commented
Jun 21, 2025
pfmooney
reviewed
Jun 23, 2025
pfmooney
left a comment
Contributor
There was a problem hiding this comment.
The broad strokes look good.
pfmooney
approved these changes
Jun 24, 2025
Member
Author
|
gave this a double-check on Alpine/Ubuntu/Windows Server 2022/OmniOS guests real quick on a whim and they all come up happy as expected. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #907.
This change both produces an E820 table for OVMF to consult for highmem layout, and clamps the RTC CMOS bytes through which we communicate highmem size to OVMF. The E820 table supplants the RTC CMOS for OVMF's purposes, so in theory nothing will check those bytes anymore. Even so, clamping to them to
ffffffseems more legible.