smbios: get rid of smbios_legacy global
authorIgor Mammedov <imammedo@redhat.com>
Thu, 14 Mar 2024 15:22:47 +0000 (16:22 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 18 Mar 2024 12:42:45 +0000 (08:42 -0400)
commitb3854ce8a77f14b40a59c4fcef234f4af04504d5
treef713f7473888c7a74e7fda09338623bc20271936
parente94e0a833b9d909e239829a2030dbb6e7c2db01d
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>
hw/arm/virt.c
hw/i386/fw_cfg.c
hw/loongarch/virt.c
hw/riscv/virt.c
hw/smbios/smbios.c
include/hw/firmware/smbios.h