From: Qiang Ma Date: Tue, 3 Jun 2025 03:18:13 +0000 (+0800) Subject: hw/loongarch/virt: inform guest of kvm X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=93282c8a890b1d318668d9a0cf82c0af793ae441;p=thirdparty%2Fqemu.git 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 Reviewed-by: Bibo Mao Reviewed-by: Song Gao Message-Id: <20250603031813.31794-1-maqianga@uniontech.com> Signed-off-by: Song Gao --- diff --git a/hw/loongarch/virt.c b/hw/loongarch/virt.c index 1b504047db..a3d449ca8b 100644 --- a/hw/loongarch/virt.c +++ b/hw/loongarch/virt.c @@ -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,