Skip to content

arm64: add CCA policy and VP context support#106

Open
jiong-microsoft wants to merge 2 commits into
microsoft:mainfrom
jiong-microsoft:arm64-cca
Open

arm64: add CCA policy and VP context support#106
jiong-microsoft wants to merge 2 commits into
microsoft:mainfrom
jiong-microsoft:arm64-cca

Conversation

@jiong-microsoft
Copy link
Copy Markdown

@jiong-microsoft jiong-microsoft commented Mar 3, 2026

Add Arm CCA as a supported AArch64 isolation platform and define the
corresponding IGVM policy and VP context wire formats.

Introduce IGVM_VHT_CCA_POLICY, IGVM_VHS_CCA_POLICY, CCA policy attribute
bits, hash algorithm and LFA policy enums, and the AArch64 CCA VP context
structure. Add parser, serializer, merge-mask fixup, and validation support
for CCA policy headers, including reserved-field checks, ones/zeroes mask
conflict detection, and validation that CCA policy compatibility masks refer
to CCA platform headers.

Add AArch64 CCA VP context directive handling and round-trip tests for CCA
IGVM files. Expose the new CCA definitions through cbindgen and add the C API
error mapping for invalid CCA policy compatibility masks.

@jiong-microsoft jiong-microsoft requested a review from a team as a code owner March 3, 2026 09:51
Copy link
Copy Markdown
Member

@chris-oo chris-oo left a comment

Choose a reason for hiding this comment

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

Is it possible to have more links to the corresponding ARM specification for each header?

Comment thread igvm_defs/src/lib.rs
Comment thread igvm_defs/src/lib.rs Outdated
Comment thread igvm_defs/src/lib.rs Outdated
Add Arm CCA as a supported AArch64 isolation platform and define the
corresponding IGVM policy and VP context wire formats.

Introduce IGVM_VHT_CCA_POLICY, IGVM_VHS_CCA_POLICY, CCA policy attribute
bits, hash algorithm and LFA policy enums, and the AArch64 CCA VP context
structure. Add parser, serializer, merge-mask fixup, and validation support
for CCA policy headers, including reserved-field checks, ones/zeroes mask
conflict detection, and validation that CCA policy compatibility masks refer
to CCA platform headers.

Add AArch64 CCA VP context directive handling and round-trip tests for CCA
IGVM files. Expose the new CCA definitions through cbindgen and add the C API
error mapping for invalid CCA policy compatibility masks.
@jiong-microsoft jiong-microsoft changed the title arm64: initial support for CCA in specification and parser arm64: add CCA policy and VP context support May 29, 2026
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.

2 participants