[PATCH v4 0/5] target/loongarch: Add host CPU type support

Bibo Mao posted 5 patches 2 days, 19 hours ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260204081803.1414452-1-maobibo@loongson.cn
Maintainers: Song Gao <gaosong@loongson.cn>, Bibo Mao <maobibo@loongson.cn>, Jiaxun Yang <jiaxun.yang@flygoat.com>
hw/loongarch/virt.c    |   6 +-
target/loongarch/cpu.c | 160 ++++++++++++++++++++++++++++++++++++++++-
target/loongarch/cpu.h |  29 +++++++-
3 files changed, 190 insertions(+), 5 deletions(-)
[PATCH v4 0/5] target/loongarch: Add host CPU type support
Posted by Bibo Mao 2 days, 19 hours 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 cannot be controlled by KVM hypervisor and these bits
come from host machine directly.

---
v3 ... v4:
  1. Add default value with CPUCFG3[0:16] with LA464 CPU type in new
     patch 2.
  2. Add bit ALDORDER_STA/ASTORDER_STA/SLDORDER_STA with CPUCFG3 which
     comes from host.

v2 ... v3:
  1. Modify comments explaining why some bits are not checked by KVM
     hypervisor and come from host CPUCFG information in patch 4.

v1 ... v2:
  1. Add some CPUCFG capability bits from host machine.
---
Bibo Mao (5):
  target/loongarch: Add detailed information with CPU Product ID
  target/loongarch: Add default cpucfg3 with LA464 CPU
  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 | 160 ++++++++++++++++++++++++++++++++++++++++-
 target/loongarch/cpu.h |  29 +++++++-
 3 files changed, 190 insertions(+), 5 deletions(-)


base-commit: b377abc220fc53e9cab2aac3c73fc20be6d85eea
-- 
2.39.3