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

td-shim-interface: support large ffs and section #691

Conversation

gaojiaqi7
Copy link
Member

No description provided.

@@ -38,17 +38,6 @@ pub fn read_fv_header(fv_data: &[u8]) -> Option<FirmwareVolumeHeader> {
Some(header)
}

// Validate Ffs File header
pub fn validate_ffs_file_header(header: FfsFileHeader) -> bool {
Copy link
Member

Choose a reason for hiding this comment

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

why remove public file?

@@ -264,14 +263,6 @@ impl FfsFileHeader {
self.integrity_check.file = FFS_FIXED_CHECKSUM;
self.state = EFI_FILE_HEADER_CONSTRUCTION | EFI_FILE_HEADER_VALID | EFI_FILE_DATA_VALID;
}

// Validate the checksum of the FfsFileHeader
pub fn validate_checksum(&self) -> bool {
Copy link
Member

Choose a reason for hiding this comment

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

why remove public function?

@gaojiaqi7 gaojiaqi7 force-pushed the 0509/support_large_ffs_and_section branch 3 times, most recently from 1b5000f to d344cf6 Compare May 15, 2024 08:24
Align the definition, implementation and derive of the `FfsFileHeader2`
and `CommonSectionHeader2` with `FfsFileHeader` and `CommonSectionHeader`.

Signed-off-by: Jiaqi Gao <[email protected]>
@gaojiaqi7 gaojiaqi7 force-pushed the 0509/support_large_ffs_and_section branch from d344cf6 to b604ca0 Compare May 15, 2024 08:31
Add support for parsing ffs and sections that have size larger than
16MiB.

Signed-off-by: Jiaqi Gao <[email protected]>
@gaojiaqi7 gaojiaqi7 force-pushed the 0509/support_large_ffs_and_section branch from b604ca0 to 1cef3d8 Compare May 15, 2024 08:37
@jyao1 jyao1 merged commit 2c5c43c into confidential-containers:main May 22, 2024
19 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.

2 participants