提交 9d718162 编写于 作者: J Jithu Joseph 提交者: Aichun Shi

x86/microcode/intel: Use a reserved field for metasize

mainline inclusion
from mainline-v6.2-rc1
commit 28377e56
category: feature
feature: Backport Intel In Field Scan(IFS) multi-blob images support
bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I6L337
CVE: N/A
Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
commit/?id=28377e56

Intel-SIG: commit 28377e56 ("x86/microcode/intel: Use a reserved field for metasize")

-------------------------------------

x86/microcode/intel: Use a reserved field for metasize

Intel is using microcode file format for IFS test images too.

IFS test images use one of the existing reserved fields in microcode
header to indicate the size of the region in the file allocated for
metadata structures.

In preparation for this, rename first of the existing reserved fields
in microcode header to metasize. In subsequent patches IFS specific
code will make use of this field while parsing IFS images.
Signed-off-by: NJithu Joseph <jithu.joseph@intel.com>
Signed-off-by: NBorislav Petkov <bp@suse.de>
Reviewed-by: NTony Luck <tony.luck@intel.com>
Reviewed-by: NAshok Raj <ashok.raj@intel.com>
Reviewed-by: NSohil Mehta <sohil.mehta@intel.com>
Link: https://lore.kernel.org/r/20221117035935.4136738-10-jithu.joseph@intel.comSigned-off-by: NAichun Shi <aichun.shi@intel.com>
上级 e42d1f53
......@@ -14,7 +14,8 @@ struct microcode_header_intel {
unsigned int pf;
unsigned int datasize;
unsigned int totalsize;
unsigned int reserved[3];
unsigned int metasize;
unsigned int reserved[2];
};
struct microcode_intel {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册