mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-11-04 19:11:11 +00:00
vmm: acpi: Use Aml::append_aml_bytes() to generate DSDT
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
d96d98d88e
commit
751e76db08
@ -176,9 +176,12 @@ pub fn create_dsdt_table(
|
||||
// DSDT
|
||||
let mut dsdt = Sdt::new(*b"DSDT", 36, 6, *b"CLOUDH", *b"CHDSDT ", 1);
|
||||
|
||||
dsdt.append_slice(device_manager.lock().unwrap().to_aml_bytes().as_slice());
|
||||
dsdt.append_slice(cpu_manager.lock().unwrap().to_aml_bytes().as_slice());
|
||||
dsdt.append_slice(memory_manager.lock().unwrap().to_aml_bytes().as_slice());
|
||||
let mut bytes = Vec::new();
|
||||
|
||||
device_manager.lock().unwrap().append_aml_bytes(&mut bytes);
|
||||
cpu_manager.lock().unwrap().append_aml_bytes(&mut bytes);
|
||||
memory_manager.lock().unwrap().append_aml_bytes(&mut bytes);
|
||||
dsdt.append_slice(&bytes);
|
||||
|
||||
dsdt
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user