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:
Leander Kohler
2026-02-09 15:28:03 +01:00
committed by Rob Bradford
parent 1a8c76b0dd
commit 0141635a5c
3 changed files with 82 additions and 47 deletions

View File

@@ -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(