public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH 0/3] CloudHv:arm: Enable direct kernel boot
@ 2022-09-16  2:46 Jianyong Wu
  2022-09-16  2:46 ` [PATCH 1/3] CloudHv:arm: add kernel load fs driver Jianyong Wu
                   ` (3 more replies)
  0 siblings, 4 replies; 19+ messages in thread
From: Jianyong Wu @ 2022-09-16  2:46 UTC (permalink / raw)
  To: devel, Sami.Mujawar; +Cc: ardb+tianocore, justin.he, jianyong.wu

Direct kernel boot removes the dependency of retrieving kernel image
from block device. For Cloud Hypervisor, we use the following way to
support it.

1. Cloud Hypervisor store kernel image into memory and put kernel info,
   including the memory base and size, into DT;
2. When init memory in edk2, the kernel memory region is retrieved from
   DT and set it as read only memory region;
3. Edk2 fetches kernel from memory and prepare a image handle;
4. Load kernel using LoadImage in the end.

1 is done in Cloud Hypervisor, 2 and 3 is done in this patch set, 4 is
not affected.

github PR link: https://github.com/tianocore/edk2/pull/3339

Signed-off-by: Jianyong Wu <jianyong.wu@arm.com>

Jianyong Wu (3):
  CloudHv:arm: add kernel load fs driver
  CloudHv:arm: build hob for kernel image memory as read-only
  CloudHv:arm: add kernel loader lib dsc/fdf

 ArmVirtPkg/ArmVirtCloudHv.dsc                 |   8 +-
 ArmVirtPkg/ArmVirtCloudHv.fdf                 |   1 +
 .../CloudHvKernelLoaderFsDxe.c                | 969 ++++++++++++++++++
 .../CloudHvKernelLoaderFsDxe.inf              |  55 +
 .../CloudHvVirtMemInfoLib.c                   |  66 +-
 5 files changed, 1094 insertions(+), 5 deletions(-)
 create mode 100644 ArmVirtPkg/CloudHvKernelLoaderFsDxe/CloudHvKernelLoaderFsDxe.c
 create mode 100644 ArmVirtPkg/CloudHvKernelLoaderFsDxe/CloudHvKernelLoaderFsDxe.inf

-- 
2.17.1


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

end of thread, other threads:[~2023-05-23  6:49 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-16  2:46 [PATCH 0/3] CloudHv:arm: Enable direct kernel boot Jianyong Wu
2022-09-16  2:46 ` [PATCH 1/3] CloudHv:arm: add kernel load fs driver Jianyong Wu
2022-11-22 15:44   ` Sami Mujawar
2022-11-22 15:46   ` Sami Mujawar
2022-11-23  6:26     ` Jianyong Wu
2022-09-16  2:46 ` [PATCH 2/3] CloudHv:arm: build hob for kernel image memory as read-only Jianyong Wu
2022-11-22 15:47   ` Sami Mujawar
2022-11-23  2:56     ` Jianyong Wu
2022-09-16  2:46 ` [PATCH 3/3] CloudHv:arm: add kernel load driver into dsc/fdf Jianyong Wu
2022-11-22 15:48   ` Sami Mujawar
2022-11-23  5:44     ` Jianyong Wu
     [not found]     ` <172A2070EC93BBE5.3230@groups.io>
2023-01-11  8:12       ` [edk2-devel] " Jianyong Wu
2023-01-11  8:35         ` Sami Mujawar
2023-01-11  9:27           ` Jianyong Wu
     [not found]           ` <17393714CBDB554C.25137@groups.io>
2023-04-24  2:36             ` Jianyong Wu
2023-05-23  6:48               ` Jianyong Wu
2022-11-15  3:00 ` [PATCH 0/3] CloudHv:arm: Enable direct kernel boot Jianyong Wu
2022-11-15  8:51   ` Sami Mujawar
2022-11-15  9:01     ` Jianyong Wu

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