On 12/7/18 4:14 PM, Wainer dos Santos Moschetta wrote:
The x86_cpu_class_check_missing_features() returns a list
of unavailable features compared to the host CPU. Currently it may
return empty strings for unamed features as well as duplicated
s/unamed/unnamed/
names.
For example, the qmp "query-cpu-definitions" below shows one empty
string and repeated "mpx" entries:
+++ b/target/i386/cpu.c
@@ -3615,19 +3615,29 @@ static void
x86_cpu_class_check_missing_features(X86CPUClass *xcc,
x86_cpu_filter_features(xc);
+ /* Uses an auxiliar dictionary to ensure the list of features has not
s/auxiliar/auxiliary/
+ repeated name. */
+ QDict *unique_feats_dict = qdict_new();
+
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org