Kexec Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCHv5 0/8] arm64: zboot support
@ 2023-07-17 13:07 Pingfan Liu
  2023-07-17 13:07 ` [PATCHv5 1/8] arm64: Fix some issues with zImage _probe() Pingfan Liu
                   ` (8 more replies)
  0 siblings, 9 replies; 15+ messages in thread
From: Pingfan Liu @ 2023-07-17 13:07 UTC (permalink / raw)
  To: kexec; +Cc: Pingfan Liu, horms, ardb, jeremy.linton

As more complicated capsule kernel format occurs like zboot, where the
compressed kernel is stored as a payload. The straight forward
decompression can not meet the demand.

As the first step, on aarch64, reading in the kernel file in a probe
method and decide how to unfold the content by the method itself.

This series introduce a new image probe interface probe2(), which
returns three factors: kernel buffer, kernel size and kernel fd through
a struct parsed_info.
-1. the parsed kernel_buf should be returned so that it can be used by
the image load method later.
-2. the final fd passed to sys_kexec_file_load, since aarch64 kernel can
only work with Image format, the outer payload should be stripped and a
temporary file of Image should be created.


To ease the review, a branch is accessable at https://github.com/pfliu/kexec-tools.git
branch zbootV5

To: kexec@lists.infradead.org
Cc: horms@verge.net.au
Cc: ardb@kernel.org
Cc: jeremy.linton@arm.com
---

v4 -> v5:
Amend label 'error' to 'err' in [4/8]


v3 -> v4:
Give up the method to change the image probe method prototype
system-wide, instead, introducing a probe2() for the affected arch





Jeremy Linton (4):
  arm64: Fix some issues with zImage _probe()
  kexec/zboot: Add arch independent zboot support
  arm64: Add ZBOOT PE containing compressed image support
  arm64: Hook up the ZBOOT support as vmlinuz

Pingfan Liu (4):
  kexec: Isolate probe method
  kexec: Introduce a new image probe method 'probe2'
  arm64: Transfer from probe() to probe2()
  kexec: Drop condition macro for aarch64

 include/kexec-pe-zboot.h               |  15 +++
 kexec/Makefile                         |   1 +
 kexec/arch/arm64/Makefile              |   3 +-
 kexec/arch/arm64/image-header.h        |   1 +
 kexec/arch/arm64/kexec-arm64.c         |  10 +-
 kexec/arch/arm64/kexec-arm64.h         |  11 +-
 kexec/arch/arm64/kexec-elf-arm64.c     |   7 +-
 kexec/arch/arm64/kexec-image-arm64.c   |  16 ++-
 kexec/arch/arm64/kexec-uImage-arm64.c  |  15 ++-
 kexec/arch/arm64/kexec-vmlinuz-arm64.c | 102 +++++++++++++++++++
 kexec/arch/arm64/kexec-zImage-arm64.c  |  41 ++------
 kexec/kexec-pe-zboot.c                 | 133 +++++++++++++++++++++++++
 kexec/kexec.c                          |  86 ++++++++++------
 kexec/kexec.h                          |   9 ++
 14 files changed, 367 insertions(+), 83 deletions(-)
 create mode 100644 include/kexec-pe-zboot.h
 create mode 100644 kexec/arch/arm64/kexec-vmlinuz-arm64.c
 create mode 100644 kexec/kexec-pe-zboot.c

-- 
2.31.1


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2023-07-20 10:07 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-17 13:07 [PATCHv5 0/8] arm64: zboot support Pingfan Liu
2023-07-17 13:07 ` [PATCHv5 1/8] arm64: Fix some issues with zImage _probe() Pingfan Liu
2023-07-17 13:07 ` [PATCHv5 2/8] kexec: Isolate probe method Pingfan Liu
2023-07-17 13:07 ` [PATCHv5 3/8] kexec: Introduce a new image probe method 'probe2' Pingfan Liu
2023-07-17 13:07 ` [PATCHv5 4/8] arm64: Transfer from probe() to probe2() Pingfan Liu
2023-07-17 13:07 ` [PATCHv5 5/8] kexec: Drop condition macro for aarch64 Pingfan Liu
2023-07-17 13:07 ` [PATCHv5 6/8] kexec/zboot: Add arch independent zboot support Pingfan Liu
2023-07-17 13:07 ` [PATCHv5 7/8] arm64: Add ZBOOT PE containing compressed image support Pingfan Liu
2023-07-17 13:07 ` [PATCHv5 8/8] arm64: Hook up the ZBOOT support as vmlinuz Pingfan Liu
2023-07-19  3:02 ` [PATCHv5 0/8] arm64: zboot support Dave Young
2023-07-20  2:04   ` Pingfan Liu
2023-07-20  7:29     ` Dave Young
2023-07-20  8:59       ` Pingfan Liu
2023-07-20 10:08         ` Dave Young
2023-07-20 10:08           ` Dave Young

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox