[PATCH v4 07/19] efi/libstub: Avoid reserve_addr/_size in efi_kaslr_relocate_kernel()
Jason Gunthorpe
jgg at nvidia.com
Fri Nov 20 09:29:22 PST 2026
> Avoid reserve_addr and reserve_size to carry the information about the
> allocated space for the relocated kernel, and instead, use a single
> alloc_size output parameter that is wired to image_size.
I was a bit worried about this patch since the DRTM series uses
reserved for the in place trailing allocation
But after all the changes I made a patch that just renames the
variables in the entire caller chain:
efi_status_t efi_kaslr_relocate_kernel(unsigned long *free_addr,
unsigned long *free_size,
And nothing looks at free_addr/size except to free it. It is all now
described by image_info. The DRTM case uses it to free the trailing
allocation..
So this turned into a nice cleanup
Reviewed-by: Jason Gunthorpe <jgg at nvidia.com>
--
Jason
More information about the linux-riscv
mailing list