From 3b8a01725785058b51acc97393e5fef37a47f00f Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Mon, 21 Mar 2022 10:58:13 +0000 Subject: [PATCH] vmm: acpi: Print total size of ACPI tables This can already be calculated by the summing the tables reported by the Linux kernel but this is more convenient. Signed-off-by: Rob Bradford --- vmm/src/acpi.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vmm/src/acpi.rs b/vmm/src/acpi.rs index f09eaba29..bee890838 100644 --- a/vmm/src/acpi.rs +++ b/vmm/src/acpi.rs @@ -771,8 +771,9 @@ pub fn create_acpi_tables( .expect("Error writing RSDP"); info!( - "Generated ACPI tables: took {}µs", - Instant::now().duration_since(start_time).as_micros() + "Generated ACPI tables: took {}µs size = {}", + Instant::now().duration_since(start_time).as_micros(), + xsdt_offset.0 + xsdt.len() as u64 - rsdp_offset.0 ); rsdp_offset }