hw/loongarch: Add smbios support

Add smbios support for loongarch virt machine, and put them into fw_cfg
table so that bios can parse them quickly. The weblink of smbios spec:
https://www.dmtf.org/dsp/DSP0134, the version is 3.6.0.

Acked-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Xiaojuan Yang <yangxiaojuan@loongson.cn>
Message-Id: <20220712083206.4187715-5-yangxiaojuan@loongson.cn>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
Xiaojuan Yang 2022-07-12 16:32:04 +08:00 committed by Richard Henderson
parent fb1cd3a292
commit 3efa6fa1e6
3 changed files with 38 additions and 0 deletions

View file

@ -33,6 +33,7 @@ struct LoongArchMachineState {
bool bios_loaded;
/* State for other subsystems/APIs: */
FWCfgState *fw_cfg;
Notifier machine_done;
};
#define TYPE_LOONGARCH_MACHINE MACHINE_TYPE_NAME("virt")