x86/CPUID: fill all fields in x86_cpuid_policy_fill_native()
authorJan Beulich <jbeulich@suse.com>
Thu, 25 Jun 2020 07:12:21 +0000 (09:12 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 25 Jun 2020 07:12:21 +0000 (09:12 +0200)
commite4d2207165b379ec13c8b512936f63982af62d13
tree19b499198e7a6d56b654bb565ba1fc3de0ee3600
parentf325d2477eef8229c47d97031d314629521c70ab
x86/CPUID: fill all fields in x86_cpuid_policy_fill_native()

Coverity validly complains that the new call from
tools/tests/cpu-policy/test-cpu-policy.c:test_cpuid_current() leaves
two fields uninitialized, yet they get then consumed by
x86_cpuid_copy_to_buffer(). (All other present callers of the function
pass a pointer to a static - and hence initialized - buffer.)

Coverity-ID: 1464809
Fixes: c22ced93e167 ("tests/cpu-policy: Confirm that CPUID serialisation is sorted")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Release-acked-by: Paul Durrant <paul@xen.org>
xen/lib/x86/cpuid.c