x86/ucode/intel: Reimplement get_{data,total}size() helpers
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 19 Mar 2020 15:47:31 +0000 (15:47 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 1 Apr 2020 13:00:12 +0000 (14:00 +0100)
commitd0e5da642c6b3024b87fcf445eb89b048e7c8150
tree36a6489c4e9121281afae1d06c1f768266fd11a6
parentb362416637d1121e4c0bd25c48becb8b73765844
x86/ucode/intel: Reimplement get_{data,total}size() helpers

Every caller actually passes a struct microcode_header_intel *, but it is more
helpful to us longterm to take struct microcode_patch *.  Implement the
helpers with proper types, and leave a comment explaining the Pentium Pro/II
behaviour with empty {data,total}size fields.

No functional change.

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