tools/fuzz: Add a cpu-policy fuzzing harness
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 3 Jan 2019 18:03:25 +0000 (18:03 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 6 Jun 2019 14:28:20 +0000 (15:28 +0100)
commita08243eb4a2626851e2e2c77465b49781710b490
treebac53f36c31dd3252de5da76d216ce2b88b235cd
parent93883a2eab17348fe6ad03273f30aa7526730460
tools/fuzz: Add a cpu-policy fuzzing harness

There is now enough complexity that a fuzzing harness is a good idea, and
enough supporting logic to implement one which AFL seems happy with.

Take the existing recalculate_synth() helper and export it as
x86_cpuid_policy_recalc_synth(), as it is needed by the fuzzing harness.

While editing the MAINTAINERS file, insert a related entry which was
accidentally missed from c/s 919ddc3c0 "tools/cpu-policy: Add unit tests", and
sort the lines.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
MAINTAINERS
tools/fuzz/cpu-policy/.gitignore [new file with mode: 0644]
tools/fuzz/cpu-policy/Makefile [new file with mode: 0644]
tools/fuzz/cpu-policy/afl-policy-fuzzer.c [new file with mode: 0644]
xen/include/xen/lib/x86/cpuid.h
xen/lib/x86/cpuid.c