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: use fixed-size array for ACPI table installation #704

Conversation

gaojiaqi7
Copy link
Member

Replace the vector with a fixed-array to record the table offsets of ACPI tables. The maximum number of ACPI tables is 128 according to Linux Kernel implementation.

Related issue: #685

@gaojiaqi7 gaojiaqi7 force-pushed the 0524/remove_heap_for_acpi_installation branch from 5576869 to 1c44bff Compare May 27, 2024 01:07
Replace the vector with a fixed-array to record the table offsets
of ACPI tables. The maximum number of ACPI tables is 128 according to
Linux Kernel implementation.

Signed-off-by: Jiaqi Gao <jiaqi.gao@intel.com>
@gaojiaqi7 gaojiaqi7 force-pushed the 0524/remove_heap_for_acpi_installation branch from 1c44bff to 2d2ed06 Compare May 27, 2024 01:20
use td_shim_interface::acpi::{calculate_checksum, Rsdp, Xsdt};

use super::*;

#[derive(Default)]
const ACPI_MAX_TABLES: usize = 128;
Copy link
Member

Choose a reason for hiding this comment

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

what if VMM inputs more table number > ACPI_MAX_TABLES?

@jyao1 jyao1 merged commit 92f5989 into confidential-containers:main May 28, 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