x86/ucode/intel: Clean up microcode_update_match()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 20 Mar 2020 18:11:52 +0000 (18:11 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 1 Apr 2020 13:00:12 +0000 (14:00 +0100)
commite54b20ef50e15b0875f9fd51166cf4e4d5937ce3
treed5c0471a081aa202c067a6c30fe73e4659171652
parentd0e5da642c6b3024b87fcf445eb89b048e7c8150
x86/ucode/intel: Clean up microcode_update_match()

Implement a new get_ext_sigtable() helper to abstract the logic for
identifying whether an extended signature table exists.  As part of this,
rename microcode_intel.bits to data and change its type so it can be usefully
used in combination with the datasize header field.

Also, replace the sigmatch() macro with a static inline with a more useful
API, and an explanation of why it is safe to drop one of the previous
conditionals.

No practical change in behaviour.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/cpu/microcode/intel.c