mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
arch: x86_64: refactor SMBIOS helpers
Split the System Information write into helper functions and reuse the string writer so the table layout and inputs are unchanged. On-behalf-of: SAP leander.kohler@sap.com Signed-off-by: Leander Kohler <leander.kohler@cyberus-technology.de>
This commit is contained in:
committed by
Rob Bradford
parent
1a8c76b0dd
commit
0141635a5c
@@ -1879,10 +1879,6 @@ impl Vm {
|
||||
.as_ref()
|
||||
.and_then(|p| p.oem_strings.clone());
|
||||
|
||||
let oem_strings = oem_strings
|
||||
.as_deref()
|
||||
.map(|strings| strings.iter().map(|s| s.as_ref()).collect::<Vec<&str>>());
|
||||
|
||||
let topology = self.cpu_manager.lock().unwrap().get_vcpu_topology();
|
||||
|
||||
arch::configure_system(
|
||||
|
||||
Reference in New Issue
Block a user