vmm: use acpi_tables helpers for PPTT

Use the helpers from the acpi_tables crate to construct the PPTT. This
is in preparation for adding cache hierarchy info to the PPTT which is
simpler using the helpers.

Signed-off-by: Anirudh Rayabharam <anrayabh@microsoft.com>
This commit is contained in:
Anirudh Rayabharam
2026-03-13 11:34:52 +00:00
committed by Rob Bradford
parent 3d5f06ff03
commit f5089c705b
2 changed files with 25 additions and 62 deletions
+5 -2
View File
@@ -938,9 +938,12 @@ fn create_acpi_tables_internal(
{
let pptt = cpu_manager.create_pptt();
let pptt_addr = prev_tbl_addr.checked_add(prev_tbl_len).unwrap();
tables_bytes.extend_from_slice(pptt.as_slice());
let mut pptt_bytes = Vec::new();
pptt.to_aml_bytes(&mut pptt_bytes);
tables_bytes.extend_from_slice(&pptt_bytes);
xsdt_table_pointers.push(pptt_addr.0);
prev_tbl_len = pptt.len() as u64;
prev_tbl_len = pptt_bytes.len() as u64;
prev_tbl_addr = pptt_addr;
}