x86,amd_ucode: verify max allowed patch size before apply
authorAravind Gopalakrishnan <aravind.gopalakrishnan@amd.com>
Tue, 6 May 2014 11:39:05 +0000 (13:39 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 6 May 2014 11:39:05 +0000 (13:39 +0200)
commitc42a3154a03c1d57cfa67988d109501cf4f35ae8
tree51c524293379889ebd1674299b40360dedee9015
parent4e97214b0a60e0c29348d1435341ad7e83c87398
x86,amd_ucode: verify max allowed patch size before apply

Each family has a stipulated max patch_size. Use this as
additional sanity check before we apply it.

Also, tone down the amount of debug messages and
Follow microcode_intel's implementation of pr_debug.

While at it, fix comment at very top to indicate we support ucode
patch loading from fam10h and higher.

Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@amd.com>
Reviewed-by: Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>
xen/arch/x86/microcode_amd.c