freebsd-dev/stand/efi/loader
Toomas Soome 4914ee11ae loader: implement map-vdisk and unmap-vdisk commands
illumos update: https://www.illumos.org/issues/10598

Add map-vdisk and unmap-vdisk commands to create virtual disk interface on top of file. This will allow to use disk image from file system to load and start the kernel.

By mapping file, we create vdiskX device, the device will be listed by lsdev [-v] and can be accessed directly as ls vdisk0p1:/path or can be used as value for currdev variable.

vdisk strategy function does not use bcache as we have bcache used with backing file. vdisk can be unmapped when all consumers have closed the open files.

In first iteration we do not support the zfs images because zfs pools do keep the device open (there is no "zpool export" mechanism). Adding zfs support is relatively simple, we just need to run zfs disk probe after mapping is done.

Differential Revision:	https://reviews.freebsd.org/D19733
2019-04-26 17:58:44 +00:00
..
arch EFI: don't call printf after ExitBootServices, since it uses Boot Services 2019-03-02 04:02:11 +00:00
autoload.c loader: fdt: Add fdt_is_setup function 2019-04-25 20:08:43 +00:00
bootinfo.c Add retry loop around GetMemoryMap call to fix fragmentation bug 2019-03-06 05:39:40 +00:00
conf.c loader: implement map-vdisk and unmap-vdisk commands 2019-04-26 17:58:44 +00:00
copy.c Add retry loop around GetMemoryMap call to fix fragmentation bug 2019-03-06 05:39:40 +00:00
efi_main.c Cast error message in efi_main.c to CHAR16* to avoid build error 2018-12-13 23:49:20 +00:00
framebuffer.c efi-autoresizecons: Don't fail the boot w/o GOP or UGA 2018-08-04 06:40:18 +00:00
framebuffer.h
loader_efi.h
main.c Add the proper range of years for Netflix's copyright on this 2019-04-25 20:23:13 +00:00
Makefile Extend libsecureboot(old libve) to obtain trusted certificates from UEFI and implement revocation 2019-03-06 06:39:42 +00:00
Makefile.depend
version