diff options
author | Dave Young <dyoung@redhat.com> | 2023-09-14 16:49:59 +0800 |
---|---|---|
committer | Simon Horman <horms@kernel.org> | 2023-09-20 12:44:30 +0100 |
commit | 8f08e3b51f25f585dc62f8e7aadc6095e06417cc (patch) | |
tree | aed660518902f50fa5d2a4e05cfdbec7e05c7245 /include | |
parent | c3f35ff06e54daf452ac49a4381cf2643c934866 (diff) | |
download | kexec-tools-8f08e3b51f25f585dc62f8e7aadc6095e06417cc.tar.gz |
zboot: enable arm64 kexec_load for zboot image
kexec_file_load support of zboot kernel image decompressed the vmlinuz,
so in kexec_load code just load the kernel with reading the decompressed
kernel fd into a new buffer and use it directly.
Signed-off-by: Dave Young <dyoung@redhat.com>
Tested-by: Baoquan He <bhe@redhat.com>
Reviewed-by: Pingfan Liu <piliu@redhat.com>
Signed-off-by: Simon Horman <horms@kernel.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/kexec-pe-zboot.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/kexec-pe-zboot.h b/include/kexec-pe-zboot.h index e2e0448a..374916cb 100644 --- a/include/kexec-pe-zboot.h +++ b/include/kexec-pe-zboot.h @@ -11,5 +11,6 @@ struct linux_pe_zboot_header { uint32_t compress_type; }; -int pez_prepare(const char *crude_buf, off_t buf_sz, int *kernel_fd); +int pez_prepare(const char *crude_buf, off_t buf_sz, int *kernel_fd, + off_t *kernel_size); #endif |