x86/ucode/intel: Clean up microcode_sanity_check()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 20 Mar 2020 17:41:39 +0000 (17:41 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 1 Apr 2020 13:00:12 +0000 (14:00 +0100)
commit5ebb8e7ea15b5ff5a09dec1d45b776ec56721e42
tree28476a2d11877371bd3da5938a83aa517c40ae40
parente54b20ef50e15b0875f9fd51166cf4e4d5937ce3
x86/ucode/intel: Clean up microcode_sanity_check()

Rewrite the size checks in a way which doesn't depend on Xen being compiled as
64bit.

Introduce a check missing from the old code, that total_size is a multiple of
1024 bytes, and drop unnecessary defines/macros/structures.

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