aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQiang Ma <maqianga@uniontech.com>2025-06-03 11:18:13 +0800
committerSong Gao <gaosong@loongson.cn>2025-06-10 11:57:58 +0800
commit93282c8a890b1d318668d9a0cf82c0af793ae441 (patch)
tree067b80cbad1ba9c96bac2e88f0c07ed88011433a
parent1e043baf15241f18a35f050fb2a2beb3fd7c7906 (diff)
downloadqemu-93282c8a890b1d318668d9a0cf82c0af793ae441.zip
qemu-93282c8a890b1d318668d9a0cf82c0af793ae441.tar.gz
qemu-93282c8a890b1d318668d9a0cf82c0af793ae441.tar.bz2
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>
-rw-r--r--hw/loongarch/virt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/loongarch/virt.c b/hw/loongarch/virt.c
index 1b50404..a3d449c 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,