mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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:
committed by
Rob Bradford
parent
3d5f06ff03
commit
f5089c705b
+5
-2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user