mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
smbios: get rid of smbios_legacy global
clean up smbios_set_defaults() which is reused by legacy and non legacy machines from being aware of 'legacy' notion and need to turn it off. And push legacy handling up to PC machine code where it's relevant. Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Ani Sinha <anisinha@redhat.com> Acked-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com> Tested-by: Fiona Ebner <f.ebner@proxmox.com> Message-Id: <20240314152302.2324164-7-imammedo@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
e94e0a833b
commit
b3854ce8a7
6 changed files with 23 additions and 27 deletions
|
@ -1650,7 +1650,7 @@ static void virt_build_smbios(VirtMachineState *vms)
|
|||
}
|
||||
|
||||
smbios_set_defaults("QEMU", product,
|
||||
vmc->smbios_old_sys_ver ? "1.0" : mc->name, false,
|
||||
vmc->smbios_old_sys_ver ? "1.0" : mc->name,
|
||||
true, SMBIOS_ENTRY_POINT_TYPE_64);
|
||||
|
||||
/* build the array of physical mem area from base_memmap */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue