[PATCH v2 0/4] target/loongarch: Add host CPU type support

Bibo Mao posted 4 patches 1 month ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260104022905.2120787-1-maobibo@loongson.cn
Maintainers: Song Gao <gaosong@loongson.cn>, Bibo Mao <maobibo@loongson.cn>, Jiaxun Yang <jiaxun.yang@flygoat.com>
There is a newer version of this series
hw/loongarch/virt.c    |   6 +-
target/loongarch/cpu.c | 135 ++++++++++++++++++++++++++++++++++++++++-
target/loongarch/cpu.h |  24 +++++++-
3 files changed, 160 insertions(+), 5 deletions(-)
[PATCH v2 0/4] target/loongarch: Add host CPU type support
Posted by Bibo Mao 1 month ago
Host CPU model is basically the same with max CPU model, except Product
ID and CPU model name. With host CPU model, Product ID comes from
cpucfg0 on host machine and CPU model from /proc/cpuinfo, also some
CPUCFG bits which are irrelative with KVM hypervisor somes from host
machine.

---
v1 ... v2:
  1. Add some CPUCFG capability bits from host machine.
---
Bibo Mao (4):
  target/loongarch: Add detailed information with CPU Product ID
  target/loongarch: Add generic CPU model information
  target/loongarch: Add host CPU model in kvm mode
  target/loongarch: Add some CPUCFG bits with host CPU model

 hw/loongarch/virt.c    |   6 +-
 target/loongarch/cpu.c | 135 ++++++++++++++++++++++++++++++++++++++++-
 target/loongarch/cpu.h |  24 +++++++-
 3 files changed, 160 insertions(+), 5 deletions(-)


base-commit: 667e1fff878326c35c7f5146072e60a63a9a41c8
-- 
2.39.3