Hi Zhiwei! I have two observations:
- this API doesn't play well with KVM as is. In a KVM environment, asking for
the
enabled extensions of the 'host' CPU returns:
$ ./mnt/qemu/bin/qemu-system-riscv64 -cpu host,help
Enable extension:
rv64imafdch_zicbom_zicboz_zicsr_zifencei_zihintntl_z
Some times we want to know what is the really mean of one cpu option.
For example, in RISC-V, we usually specify a cpu in this way:
-cpu rv64,v=on
If we don't look into the source code, we can't get the ISA extensions
of this -cpu command line.
In this patch set, we add one list_cpu_props API for