refactor(policy): centralize shared execution policy state#369
Merged
Conversation
Move shared execution-policy knobs out of scattered globals into a dedicated acs_execution_policy_t with explicit reset and accessor APIs. This keeps execution policy separate from run-request selection state, routes defaults and overrides through one place, and removes direct global and header coupling across VAL, PAL, baremetal, and UEFI paths. - add acs_execution_policy.[ch] as the canonical shared policy object for print, PCIe, timeout, crypto, SLC, and EL1 trap settings - replace direct policy g_* globals across VAL, PAL, test pool, baremetal, and UEFI code with policy fields or acs_policy_get_*() accessors - update baremetal and UEFI entry paths to reset, populate, and consume execution policy explicitly - split generic policy reset defaults from baremetal target overrides, and expose target defaults through acs_get_platform_execution_policy_defaults() - update compile-time and EL3 override helpers to write execution policy separately from run-request filtering state - remove duplicated policy declarations from PAL and UEFI headers and keep the shared policy API in one canonical header - wire acs_execution_policy.c into the relevant VAL build files for baremetal and UEFI flows - keep headers self-contained with shared fixed-width types and drop local scalar typedef wrappers that no longer add value - retain documentation for sys_last_lvl_cache values and el1skiptrap_mask usage in the canonical policy definition Change-Id: I1e320c46aaab9a6479b189d433a0a3d8f7a62258
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.
Move shared execution-policy knobs out of scattered globals into a dedicated acs_execution_policy_t with explicit reset and accessor APIs. This keeps execution policy separate from run-request selection state, routes defaults and overrides through one place, and removes direct global and header coupling across VAL, PAL, baremetal, and UEFI paths.
Change-Id: I1e320c46aaab9a6479b189d433a0a3d8f7a62258