diff options
author | Stephen Cprek <smcprek@us.ibm.com> | 2017-04-10 16:32:00 -0500 |
---|---|---|
committer | William G. Hoffa <wghoffa@us.ibm.com> | 2017-05-01 17:53:46 -0400 |
commit | 863b78e70f9b11e9948c380e1d5cd5790d8d9962 (patch) | |
tree | 37e0685a747c34d2bc4e58018eb2ac7f1910072a /src/include | |
parent | 142a25c1a3453d0cc5bac4a93a2765e60a281d2d (diff) | |
download | talos-hostboot-863b78e70f9b11e9948c380e1d5cd5790d8d9962.tar.gz talos-hostboot-863b78e70f9b11e9948c380e1d5cd5790d8d9962.zip |
Port P8 HBI page verification functionality
Verify HBI pages via its securely signed hash page table
Change-Id: I86d29ee393c19aa0d9c5270b0b6c561a9fc4ab51
RTC: 167668
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/39071
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com>
Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/sys/vfs.h | 7 | ||||
-rw-r--r-- | src/include/usr/vfs/vfs_reasoncodes.H | 6 |
2 files changed, 11 insertions, 2 deletions
diff --git a/src/include/sys/vfs.h b/src/include/sys/vfs.h index 7bbe73e30..fabe546cc 100644 --- a/src/include/sys/vfs.h +++ b/src/include/sys/vfs.h @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2010,2015 */ +/* Contributors Listed Below - COPYRIGHT 2010,2017 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -44,6 +44,7 @@ #define VFS_EXTENDED_MODULE_VADDR (1 * 1024 * 1024 * 1024) #define VFS_EXTENDED_MODULE_TABLE_ADDRESS (VFS_EXTENDED_MODULE_VADDR) #define VFS_EXTENDED_MODULE_TABLE_OFFSET 0 +// Note: VFS_EXTENDED_MODULE_MAX used in src/build/buildpnor/buildpnor.pl #define VFS_EXTENDED_MODULE_MAX 128 #define VFS_MODULE_NAME_MAX 64 #define VFS_SYMBOL_INIT _init @@ -82,6 +83,8 @@ enum VfsMessages VFS_MSG_UNLOAD, //!< Message to vfsrp to unload a module }; +// Note: size of VfsSystemModule (VFS_MODULE_TABLE_ENTRY_SIZE) used in +// src/build/buildpnor/buildpnor.pl struct VfsSystemModule { char module[VFS_MODULE_NAME_MAX]; //!< Module name @@ -97,6 +100,8 @@ extern VfsSystemModule VFS_MODULES[VFS_MODULE_MAX]; extern uint64_t VFS_LAST_ADDRESS; +#define VFS_MODULE_TABLE_SIZE (VFS_EXTENDED_MODULE_MAX * sizeof(VfsSystemModule)) + // Offset for TLS "dtv-relative displacement". // See http://www.uclibc.org/docs/tls-ppc64.txt #define VFS_PPC64_DTPREL_OFFSET 0x8000 diff --git a/src/include/usr/vfs/vfs_reasoncodes.H b/src/include/usr/vfs/vfs_reasoncodes.H index 2d29aba58..99c78c2da 100644 --- a/src/include/usr/vfs/vfs_reasoncodes.H +++ b/src/include/usr/vfs/vfs_reasoncodes.H @@ -5,7 +5,9 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* COPYRIGHT International Business Machines Corp. 2011,2014 */ +/* Contributors Listed Below - COPYRIGHT 2011,2017 */ +/* [+] International Business Machines Corp. */ +/* */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); */ /* you may not use this file except in compliance with the License. */ @@ -35,6 +37,7 @@ namespace VFS VFS_WATCHER = 0x03, VFS_MODULE_LOAD_MONITOR = 0x04, VFS_MODULE_EXEC_MONITOR = 0x05, + VFS_VERIFY_PAGE = 0x06, }; enum VfsReasonCode @@ -46,6 +49,7 @@ namespace VFS VFS_MODULE_DOES_NOT_EXIST = VFS_COMP_ID | 0x05, VFS_INVALID_DATA_MODULE = VFS_COMP_ID | 0x06, VFS_TASK_CRASHED = VFS_COMP_ID | 0x07, + VFS_PAGE_VERIFY_FAILED = VFS_COMP_ID | 0x08, }; }; |