freebsd-dev/stand/i386/libi386
Simon J. Gerraty afc571b1a6 veloader use vectx API for kernel and modules
The vectx API, computes the hash for verifying a file as it is read.
This avoids the overhead of reading files twice - once to verify, then
again to load.

For doing an install via loader, avoiding the need to rewind
large files is critical.

This API is only used for modules, kernel and mdimage as these are the
biggest files read by the loader.
The reduction in boot time depends on how expensive the I/O is
on any given platform.  On a fast VM we see 6% improvement.

For install via loader the first file to be verified is likely to be the
kernel, so some of the prep work (finding manifest etc) done by
verify_file() needs to be factored so it can be reused for
vectx_open().

For missing or unrecognized fingerprint entries, we fail
in vectx_open() unless verifying is disabled.

Otherwise fingerprint check happens in vectx_close() and
since this API is only used for files which must be verified
(VE_MUST) we panic if we get an incorrect hash.

Reviewed by:	imp,tsoome
MFC after:	1 week
Sponsored by:	Juniper Networks
Differential Revision:	https://reviews.freebsd.org//D23827
2020-03-08 17:42:42 +00:00
..
amd64_tramp.S
bio.c Add Copyright. 2018-12-30 15:34:12 +00:00
biosacpi.c Prefer uintXX_t to u_intXX_t 2018-03-13 16:33:00 +00:00
biosdisk.c loader: bc_add can not use any other probes than ah=0x4b 2020-02-03 11:33:33 +00:00
biosmem.c Add Dell Chromebook to the list of devices with E820 extmem quirk enabled 2019-01-14 01:30:48 +00:00
biospci.c Regularize the Netflix copyright 2019-02-04 21:28:25 +00:00
biospnp.c Prefer uintXX_t to u_intXX_t 2018-03-13 16:33:00 +00:00
biossmap.c
bootinfo32.c loader: create separate lists for fd, cd and hd, merge bioscd with biosdisk 2018-11-30 08:01:11 +00:00
bootinfo64.c Add support for Hygon Dhyana Family 18h processor. 2020-01-21 13:22:35 +00:00
bootinfo.c Transition to boot_env_to_howto and boot_howto_to_env in the boot 2018-07-13 16:43:29 +00:00
comconsole.c loader: libi386/comconsole.c cstyle cleanup 2019-11-02 10:53:23 +00:00
devicename.c i386_parsedev() needs to support fd devices 2019-01-02 20:31:15 +00:00
elf32_freebsd.c
elf64_freebsd.c Prefer uintXX_t to u_intXX_t 2018-03-13 16:33:00 +00:00
i386_copy.c veloader use vectx API for kernel and modules 2020-03-08 17:42:42 +00:00
i386_module.c
libi386.h veloader use vectx API for kernel and modules 2020-03-08 17:42:42 +00:00
Makefile Move smbios.c to libsa. 2020-02-20 00:46:22 +00:00
Makefile.depend
multiboot_tramp.S
multiboot.c Prefer uintXX_t to u_intXX_t 2018-03-13 16:33:00 +00:00
multiboot.h
nullconsole.c
pread.c
pxe.c Backout 356693. The libsa malloc does provide necessary alignment and 2020-01-13 20:02:27 +00:00
pxe.h Drop "All rights reserved" from my copyright statements. 2019-03-06 22:11:45 +00:00
pxetramp.S stand/i386/libi386: rename .s file to .S to use Clang IAS 2018-11-26 19:29:18 +00:00
relocater_tramp.S
spinconsole.c
time.c
vidconsole.c loader: fix indentation in efi_console and vidconsole 2019-09-25 07:36:35 +00:00