hw/loongarch/virt: inform guest of kvm
Commit bab27ea2e3 ("hw/arm/virt: smbios:
inform guest of kvm") fixes the same issue
on arm.
without this patch:
[root@localhost ~]# virt-what
qemu
with this patch:
[root@localhost ~]# virt-what
kvm
Signed-off-by: Qiang Ma <maqianga@uniontech.com>
Reviewed-by: Bibo Mao <maobibo@loongson.cn>
Reviewed-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20250603031813.31794-1-maqianga@uniontech.com>
Signed-off-by: Song Gao <gaosong@loongson.cn>
This commit is contained in:
parent
1e043baf15
commit
93282c8a89
1 changed files with 4 additions and 0 deletions
|
|
@ -136,6 +136,10 @@ static void virt_build_smbios(LoongArchVirtMachineState *lvms)
|
|||
return;
|
||||
}
|
||||
|
||||
if (kvm_enabled()) {
|
||||
product = "KVM Virtual Machine";
|
||||
}
|
||||
|
||||
smbios_set_defaults("QEMU", product, mc->name);
|
||||
|
||||
smbios_get_tables(ms, SMBIOS_ENTRY_POINT_TYPE_64,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue