openvmm_core/loaders: load linux on arm64 based on memory layout#3416
Open
chris-oo wants to merge 1 commit intomicrosoft:mainfrom
Open
openvmm_core/loaders: load linux on arm64 based on memory layout#3416chris-oo wants to merge 1 commit intomicrosoft:mainfrom
chris-oo wants to merge 1 commit intomicrosoft:mainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the ARM64 Linux direct-boot loader in openvmm_core to place the initrd/EFI/ACPI structures relative to the start of guest RAM (from the configured MemoryLayout), instead of assuming RAM begins at GPA 0. This makes ARM64 direct kernel boot work with memory layouts whose first RAM range starts at a higher address (e.g. 1 GB).
Changes:
- Compute
mem_startfromcfg.mem_layout.ram()[0].range.start()and place the initrd atmem_start + 16MB. - In ACPI mode, place EFI + ACPI tables at
mem_start + 8MB(and deriversdp_addrfrom that), rather than fixed addresses from 0. - Keep the kernel minimum load address above the initrd and aligned to 2 MB.
jstarks
approved these changes
May 1, 2026
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.
Load the direct linux kernel based on the smallest address in the memory layout, to account for memory layouts which do not start at address 0.
Tested via private changes that start the memory layout at 1GB.