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

UefiCpuPkg: Fixing page table handling for non-present pages. [202405] #1081

Merged

Conversation

apop5
Copy link
Contributor

@apop5 apop5 commented Jul 30, 2024

Description

This change will add logic to populate the address and propagate bits for the non-present pages.

Without this change, the issue can be seen as when a smaller page is marked present from a big non-present page, the remainder of the non-present pages will return EFI_UNSUPPORTED when using get attributes function though protocols like CPU arch.

4ca95f2

  • Impacts functionality?
  • Functionality - Does the change ultimately impact how firmware functions?
  • Examples: Add a new library, publish a new PPI, update an algorithm, ...
  • Impacts security?
  • Security - Does the change have a direct security impact on an application,
    flow, or firmware?
    • Examples: Crypto algorithm change, buffer overflow fix, parameter validation improvement, ...
  • Breaking change?
  • Breaking change - Will anyone consuming this change experience a break
    in build or boot behavior?
  • Examples: Add a new library class, move a module to a different repo, call
    a function in a new library class in a pre-existing module, ...
  • Includes tests?
    • Tests - Does the change include any explicit test code?
    • Examples: Unit tests, integration tests, robot tests, ...
  • Includes documentation?
  • Documentation - Does the change contain explicit documentation additions
    outside direct code modifications (and comments)?
  • Examples: Update readme file, add feature readme file, link to documentation
    on an a separate Web page, ...

How This Was Tested

This was tested on QEMU Q35 platform and booted to OS. N/A

Integration Instructions

N/A

@apop5 apop5 changed the title Fixing page table handling for non-present pages. (#617) UefiCpuPkg: Fixing page table handling for non-present pages. [202405] Jul 30, 2024
@apop5 apop5 requested review from kuqin12 and os-d July 30, 2024 22:41
@codecov-commenter
Copy link

codecov-commenter commented Jul 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (release/202405@433da20). Learn more about missing BASE report.

Additional details and impacted files
@@               Coverage Diff                @@
##             release/202405   #1081   +/-   ##
================================================
  Coverage                  ?   4.77%           
================================================
  Files                     ?     133           
  Lines                     ?   26097           
  Branches                  ?     535           
================================================
  Hits                      ?    1245           
  Misses                    ?   24828           
  Partials                  ?      24           
Flag Coverage Δ
UefiCpuPkg 4.77% <100.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@apop5 apop5 force-pushed the personal/apop5/fixpagetablenonpresent branch from c6fb9d5 to 32f8b07 Compare July 30, 2024 23:50
Copy link
Contributor

@os-d os-d left a comment

Choose a reason for hiding this comment

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

Is this a 2311 cherry-pick? If so can you add which commit it was cherry-picked from?

@makubacki
Copy link
Member

The old PR link could be removed from the commit subject. This commit will link to this PR which will explain it was a cherry-pick. Going directly to the original PR via that link might be confusing.

…t pages.

This change will add logic to populate the address and propagate bits
for the non-present pages.

Without this change, the issue can be seen as when a smaller page is
marked present from a big non-present page, the remainder of the
non-present pages will return `EFI_UNSUPPORTED` when using get
attributes function though protocols like CPU arch.
@apop5 apop5 force-pushed the personal/apop5/fixpagetablenonpresent branch from 32f8b07 to c7f6228 Compare August 1, 2024 04:29
@apop5 apop5 merged commit a4f627e into microsoft:release/202405 Aug 1, 2024
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants