hw/loongarch/virt: inform guest of kvm
PATCH 1/1 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 <[email protected]>
--- hw/loongarch/virt.c | 4 ++++ 1 file changed, 4 insertions(+)
hw/loongarch/virt.c +4 -0
@@ -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,
Signature · 1 line
2.20.1
Reviewed-by Bibo Mao <[email protected]>
Quoted 33 lines · Qiang Ma
Commit
bab27ea2e3("hw/arm/virt: smbios:
inform guest of kvm") fixes the same issue
on arm.without this patch:
[root@localhost ~]# virt-what
qemuwith this patch:
[root@localhost ~]# virt-what
kvmSigned-off-by Qiang Ma <[email protected]>--- hw/loongarch/virt.c | 4 ++++ 1 file changed, 4 insertions(+)hw/loongarch/virt.c +4
-0@@ -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,
Quoted 8 lines · Qiang Ma
Commit
bab27ea2e3("hw/arm/virt: smbios:
inform guest of kvm") fixes the same issue
on arm.without this patch:
[root@localhost ~]# virt-what
qemu
Quoted 8 lines
with this patch:
[root@localhost ~]# virt-what
kvmSigned-off-by Qiang Ma <[email protected]>--- hw/loongarch/virt.c | 4 ++++ 1 file changed, 4 insertions(+)
Reviewed-by Song Gao <[email protected]>
thanks.
Song Gao
Quoted 15 lines
hw/loongarch/virt.c +4
-0@@ -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,