mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: Add required acpi entries for vtpm device
Add an TPM2 entry to DSDT ACPI table. Add a TPM2 table to guest's ACPI. Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com> Co-authored-by: Sean Yoo <t-seanyoo@microsoft.com>
This commit is contained in:
committed by
Rob Bradford
parent
7122e2989c
commit
af261f231c
+2
-2
@@ -2048,15 +2048,15 @@ impl Vm {
|
||||
if self.config.lock().unwrap().is_tdx_enabled() {
|
||||
return None;
|
||||
}
|
||||
|
||||
let mem = self.memory_manager.lock().unwrap().guest_memory().memory();
|
||||
|
||||
let tpm_enabled = self.config.lock().unwrap().tpm.is_some();
|
||||
let rsdp_addr = crate::acpi::create_acpi_tables(
|
||||
&mem,
|
||||
&self.device_manager,
|
||||
&self.cpu_manager,
|
||||
&self.memory_manager,
|
||||
&self.numa_nodes,
|
||||
tpm_enabled,
|
||||
);
|
||||
info!("Created ACPI tables: rsdp_addr = 0x{:x}", rsdp_addr.0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user