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

plat/xen/x86_64: Add missing segment alignment for xen #1166

Merged
merged 1 commit into from Dec 23, 2023

Conversation

andreistan26
Copy link
Contributor

Prerequisite checklist

  • Read the contribution guidelines regarding submitting new changes to the project;
  • Tested your changes against relevant architectures and platforms;
  • Ran the checkpatch.uk on your commit series before opening this PR;
  • Updated relevant documentation.

Base target

  • Architecture(s): x86_64
  • Platform(s): xen
  • Application(s): N/A

Additional configuration

Description of changes

Make the second segment in a xen/x86-64 ELF aligned to the page size.
This fixes a memory overlap issue that triggers an assert during
memory coalescing.

@andreistan26 andreistan26 requested a review from a team as a code owner November 20, 2023 22:10
@andreistan26 andreistan26 changed the title plat/xen/x86_64: Add missing segment alignement for xen on x86_84 plat/xen/x86_64: Add missing segment alignement for xen Nov 20, 2023
@PAN740623
Copy link

错误报告 阻止

@razvand razvand requested review from razvand and removed request for a team December 6, 2023 11:15
@razvand razvand added this to the v0.16.0 (Telesto) milestone Dec 6, 2023
Copy link
Member

@mogasergiu mogasergiu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, thanks for looking into this! Looks good! Just a couple of things 🤓:

  • s/alignement/alignment/
  • s/This fixes a memory overlap/This fixes a memory region overlap
  • no "Merge" commits! You probably got this from an attempt to rebase 😃. In the future you can simply git remote update; git pull origin staging --rebase. Now you will have to force push the branch your PR is based on ☝️ .

Make the second segment in a `xen/x86-64` ELF aligned to the page size.
This fixes a memory region overlap issue that triggers an assert during
memory coalescing.

Signed-off-by: Andrei Stan <andreistan2003@gmail.com>
@andreistan26 andreistan26 changed the title plat/xen/x86_64: Add missing segment alignement for xen plat/xen/x86_64: Add missing segment alignment for xen Dec 17, 2023
Copy link
Member

@mogasergiu mogasergiu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your work.

Reviewed-by: Sergiu Moga sergiu@unikraft.io
Approved-by: Sergiu Moga sergiu@unikraft.io

@razvand razvand added arch/x86_64 area/plat Unikraft Patform plat/xen Unikraft for Xen labels Dec 23, 2023
Copy link
Contributor

@razvand razvand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed-by: Razvan Deaconescu razvand@unikraft.io

@razvand razvand changed the base branch from staging to staging-1166 December 23, 2023 15:45
@razvand razvand merged commit b6aed72 into unikraft:staging-1166 Dec 23, 2023
10 checks passed
razvand pushed a commit that referenced this pull request Dec 23, 2023
Make the second segment in a `xen/x86-64` ELF aligned to the page size.
This fixes a memory region overlap issue that triggers an assert during
memory coalescing.

Signed-off-by: Andrei Stan <andreistan2003@gmail.com>
Approved-by: Sergiu Moga <sergiu@unikraft.io>
Reviewed-by: Sergiu Moga <sergiu@unikraft.io>
Reviewed-by: Razvan Deaconescu <razvand@unikraft.io>
GitHub-Closes: #1166
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch/x86_64 area/plat Unikraft Patform plat/xen Unikraft for Xen
Projects
Status: Done!
Development

Successfully merging this pull request may close these issues.

None yet

4 participants