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
