x86/ucode/amd: Alter API for microcode_fits()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 30 Mar 2020 16:44:17 +0000 (17:44 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 1 Apr 2020 13:00:12 +0000 (14:00 +0100)
commite6ac4d1b4584581255bb1b4bdf98ca469c4f1837
tree7659168ac5ab08bde77720daee1b7e17f7d19ed6
parent98eb0c994ca828da7f38f0ee04c57a0ae24068a5
x86/ucode/amd: Alter API for microcode_fits()

Although it is logically a step in the wrong direction overall, it simplifies
the rearranging of cpu_request_microcode() substantially for microcode_fits()
to take struct microcode_header_amd directly, and not require an intermediate
struct microcode_amd pointing at it.

Make this change (taking time to rename 'mc_amd' to its eventual 'patch' to
reduce the churn in the series), and a later cleanup will make it uniformly
take a struct microcode_patch.

No functional change.

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