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.

---
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 (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 | 140 ++++++++++++++++++++++++++++++++++++++++-
 target/loongarch/cpu.h |  24 ++++++-
 3 files changed, 165 insertions(+), 5 deletions(-)


base-commit: b254e486242466dad881fc2bbfa215f1b67cd30f
-- 
2.39.3


Reply via email to